Service layer « Web Service « Spring Q&A





1. Making a Service Layer call from Presentation layer    stackoverflow.com

I have to choose a technology to connect my Application/Presentation Layer (Java Based) with the Service Layer (Java Based). Basically looking up appropriate Spring Service from the Business Delegate Object. There are ...

2. What naming convention do you use for the service layer in a Spring MVC application?    stackoverflow.com

I'm stuck with figuring out a good naming convention for the service layer in a spring application. For each class in the service layer I first write the interface it should ...

3. Reduce frequency of deployments in a Java web application using Spring-MVC    stackoverflow.com

Is there a simple way to have your "Service Layer" deployed separately from your web layer, so that I can reduce the number of times per week that I have to, ...

4. Passing Request Object into Service Layer    stackoverflow.com

In a spring mvc + spring core app, we have have a view layers, a facade, a service layer, a dao layer and a stored-proc based persistance layer. The service layer is ...

5. how to call service inside service layer    stackoverflow.com

in my service layer

public class  MyServiceLayerImpl{   
    public void method1(){
       MyServicelayer.method();  //is this correct?
    }

 ...

6. Should I duplicate validation in my MVC layer and Service layer?    stackoverflow.com

I'm feeling a little conflicted at the moment. I have a web application using Stripes for an MVC framework and Spring/Hibernate for the back-end. I have an account registration method in ...

7. Passing errors back to the view from the service layer    stackoverflow.com

Edit: I have looked into Spring 3's @ExceptionHandler annotation and combining this with Option 1 below looks to be a pretty clean solution. See http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-exceptionhandlers I also found this to be ...

8. mvc call service layer method    stackoverflow.com

i have a method inside service layer that is called by view layer to save content. the model is annotated with @Version JPA so support concurrent-update. but during web application ...

9. simple spring app - why use service layer?    stackoverflow.com

i looked at the example on http://solitarygeek.com/java/developing-a-simple-java-application-with-spring/comment-page-1#comment-1639 because i'm just getting started with spring. And, i'm trying to figure out why the service layer is needed in the ...





10. Why the need for a strict enforcement of interfaces for classes in a Spring MVC service layer?    stackoverflow.com

In the Spring web app I am working on, there is a service layer that relates to the rest of the web app structure like this:

com/
    myapp/
  ...

11. Separating service layer from web layer in a Spring application    stackoverflow.com

I am currently learning Spring. So far I have created a basic application consisting of Hibernate/JPA entities, DAOs and classes that perform business logic. This I am calling the ...

12. service layer are bound to DB tecnology in a spring application    stackoverflow.com

my question is: Are your service layer bound to tecnology you use? For example, if you using hibernate, you put into your service layer some hql-queries or criteria-queries that are only hibernate ...

13. Service layer in java swing application    stackoverflow.com

i'm thinking if i really need a service layer. I'm using spring + hibernate for a desktop swing application and at this moment i have gui/swing layer->service layer->dao layer. I use spring ...

14. Which functions or what things to write in service layer Java Spring MVC    stackoverflow.com

Suppose i have class USER with attributes. In some examples i see UserService class defined for some functions. I am confused which things or functions should written in User Class and which things ...

15. which part of function should go in DAO layer and which in service layer    stackoverflow.com

Initially I had the all the DAO in service layer. But to go the proper way i am making the separate DAO layer but i am little bit confused as to ...

16. Load .jasper in the service layer with spring 2.5    stackoverflow.com

I am developing a web application with maven, spring 2.5 and some other technologies. The application it is composed of 3 layer dao service and web, the dao and service are packed ...





17. Should Service Layer know about Stored procedures and parameters?    stackoverflow.com

We have an application in Hibernate3.6-Spring 3.1. I have my generic DAO impl like this,( http://www.ibm.com/developerworks/java/library/j-genericdao/index.html)

public abstract class  GenericDaoImpl<T, ID extends Serializable>  implements     ...

18. Doing validation in service layer    forum.springsource.org

Doing validation in service layer Hi, I am writing application with many different presentation platforms (web mvc is one of them), which implies that all functionality should be served through service ...

19. Why does it need to use an DAO layer (@Repository) and an Service Layer (@Service) ?    forum.springsource.org

Hi all, my question is a theoretical questions. I have done a project with only Service layer (without DAO layer). All look like works well. So, Why does it need to ...

20. object committed in service layer - no call to dao?    forum.springsource.org

object committed in service layer - no call to dao? Hello All, I am a little confused as to why my objects are being saved from the service layer, without a ...

21. Automatic validations in service layer like with mvc    forum.springsource.org

Automatic validations in service layer like with mvc Spring MVC does automatic validation as long as we pass the paramters alongwith the @Valid annotation and use the annotations in javax.validation.constraints and ...

22. Scheduler and Service Layer    forum.springsource.org

hi, i need to manage the scheduler from my service layer in order to add, remove / modify jobs which are define in the applicationContexte.xml file. How to pass a ref ...

23. View layer for REST-based Web Services    forum.springsource.org

What is the preferred view layer for REST web services implemented using Spring MVC? I sort of hacked it to use a servlet that generates XML as the view layer in ...

24. Thoughts on passing HttpRequest and HttpResponse to service layer?    forum.springsource.org

Thoughts on passing HttpRequest and HttpResponse to service layer? I have a CommerceService module to help with common order processing functionality, which includes things like payment authorization through providers like Authorize.net, ...

25. Calling an existing service layer method every hour    forum.springsource.org

I would like to reuse my service layer call(running within Spring container @Service) and invoke it every hour as a batch job since normal run fails because the request times out. ...

26. Creating a proper service layer?    forum.springsource.org

Creating a proper service layer? So I got my hands on J2EE without EJB Great read so far! And am understading how to fit my existing architecture into a more enterprise ...

27. Service layer question    forum.springsource.org

Service layer question Hi, I'm currently converting an application that uses SLSB and Entity Beans into an app that uses Spring and Hibernate for all the standard reasons. I'm starting to ...

28. Service layer design issue    forum.springsource.org

Service layer design issue Hey all, relatively new to Spring/Hibernate and have the following issue: Just curious about the proper way to do the following in my app. I have a ...

29. Base implementation for DAO and services layer    forum.springsource.org

Acegi Security CVS has a Domain subproject which has a base implementation of a DAO and services layer. I think it's very interesting and I am wandering if you have any ...

30. Business Service layer ?    forum.springsource.org

Business Service layer ? Hi, I am reasonably new to spring many of the concepts it introduces to java web development (additionally I have never used EJB's). After reading this article ...

31. Can't catch exceptions in service layer    forum.springsource.org

Nov 2nd, 2005, 02:19 AM #1 craigchapman1975 View Profile View Forum Posts Private Message Member Join Date Oct 2005 Posts 67 Can't catch exceptions in service layer I'm delegating my Struts ...

32. Trapping DataAccessExceptions in the service layer    forum.springsource.org

Trapping DataAccessExceptions in the service layer I know there are several threads on this but I am still unclear. I want to trap DataAccessExceptions in the service layer: Code: public void ...

33. Service Layer - Web    forum.springsource.org

Service Layer - Web Hi, I m creating a service layer in which I populate the list of transfer objects that hold the data to be displayed on the jsp. I ...

34. Another Service Layer question    forum.springsource.org

Another Service Layer question I am working on an application with an old framework in place. The framework provides a controller which redirects to a "proc" (I think of these as ...

35. Confused with Service Layer    forum.springsource.org

Confused with Service Layer So, I've got a "rich domain model" sorted for a fun little app Im playing with at home. All the "business rules" are in the model. So, ...

36. Separating Service Configuration Files From Web layer configurations    forum.springsource.org

Separating Service Configuration Files From Web layer configurations I am working on a typical 3 tier architecture. I have business layer which is made up of services implemented as POJOs. They ...

37. Hibernate Lazy Initialization in Spring DAO and service layer    forum.springsource.org

Hibernate Lazy Initialization in Spring DAO and service layer The Spring documentation describes the "OpenSessionInView" pattern and its variations for dealing with Hibernate 3.2.1 lazy initialization at the web request level. ...

38. Can you place a Manager/Service Layer object in a validator?    forum.springsource.org

Since a validator is typically configured as a Spring-managed bean, it is sensible to inject a stateless "service" object to which it can delegate. Something like... Code:

39. Spring&JSF - How to Separate Presentation from Service layer    forum.springsource.org

Spring&JSF - How to Separate Presentation from Service layer Hello, i decided to go for a component based presentation layer: JSF. my architecture looks like this app.domain = business objects, POJOs ...

40. Question on the 'service' layer.    forum.springsource.org

Question on the 'service' layer. i have DAOs. I use DAO inside my services. the DAOs are not transactioned proxied, the services are. the DAOs are not nested, no DAO is ...

41. Loading Services From Web Layer    forum.springsource.org

Loading Services From Web Layer I have a 3 tiered architecture including a Web, Service and Domain projects. Each project manages it's own beans in an etc/service.xml or etc/domain.xml spring config ...

42. aop & async processing in service layer    forum.springsource.org

aop & async processing in service layer I have service layer which calls dao layer to persist some entities but sometimes number of entities to persist is too much to block ...

43. Omitting service layer?    forum.springsource.org

Hi, I have a DAO (Interface + Impl) which has CRUD methods and one find method. In a web controller I only need the find method. The CRUD methods are used ...

44. service layer    forum.springsource.org

Hi, I have a mode object which requires one of its fields to be set. This field can only be set providing a call is made to an external CRM system. ...

45. How to test the service layer?    forum.springsource.org

What is the best way (with using spring 2.0) to test the service layer? Currently I test my dao layer with the abstractTransactionalDataSourceSpringContextTests Class, in the same way as in the ...

46. feedback to UI from service layer    forum.springsource.org

feedback to UI from service layer I need opinions. We have a potentially long-running operation in the service layer. We would like to provide accurate feedback of progress to the UI, ...

47. Handling exception thrown in service layer    forum.springsource.org

I am using SimpleMappingExceptionResolver, but somehow I cannot get any exception message in JSP. The exception is not thrown by any Web component, but a service layer component(EJB). I need to ...

48. Put this code in the Service Layer or DAOs?    forum.springsource.org

Put this code in the Service Layer or DAOs? Hi all, I am wondering where to put code that automatically modifies some fields of an entity object everytime an entity of ...

49. Integrating Service Layer business services that need nested application services    forum.springsource.org

Integrating Service Layer business services that need nested application services Hi, I am creating our service layer to wrap our data access layer by DI of DAO's. I have moved transaction ...

50. service layer method with no db interaction inside    forum.springsource.org

service layer method with no db interaction inside given the config below for fooService, what happens if a method doesn't have any interaction with the database (in my case, no calls ...

51. Help needed on separating DAO-Layer from the Service Layer    forum.springsource.org

Hi holly, thank you for your reply. I searched a little bit about getSqlMapClientTemplate(). But does it only goes with iBatis and not Hibernate. Please if this isn't so, could you ...

52. how to separate logics in dao and service layer ?    forum.springsource.org

how to separate logics in dao and service layer ? hi friends, sometimes i don't know which place is better to codding some logic. for example my entity has a property ...

53. HibernateTransactionManager - exception in service layer (with OSIVF and Hibernate)    forum.springsource.org

HibernateTransactionManager - exception in service layer (with OSIVF and Hibernate) I'm using the Spring's OpenSessionInViewFilter with Hibernate and org.springframework.orm.hibernate3.HibernateTransa ctionManager. At the web layer, I'm finding that the LockCount on refetchedItem ...

54. service layer definition    forum.springsource.org

Hi, I have recently read the reference manual. There is some @Service things mentioned, but there isnt any explicit definition over "service layer", which was the subject of our talk with ...

55. Transfering internationalization between web layer and service layer    forum.springsource.org

Hello I am using Spring MVC in my web application. The architecture for the application is quite straight forward with the following layers: web front (Web MVC) Service layer Repository The ...

56. service layer problem    forum.springsource.org

Can someone give me an exmaple of a class which implements the "service layer", and annotated with @Service. I just want to get the @Service and "service layer" semantics (and design ...

57. Service layer and DAO layer merged    forum.springsource.org

Hi. I dont need DAOs. I want to use the benefits of the service layer though. Can I merge them as follows? : Code: // FOR EXAMPLE - hypothetical class import ...

58. JPA - Service layer merging records without Dao    forum.springsource.org

JPA - Service layer merging records without Dao I am using Hibernate 3.2.1.ga and Spring 2.0.6. I have configured transaction on my service layer. When my service layer call mydao.findRecordById and ...

59. How to get StepExecution in service layer ?    forum.springsource.org

How to get StepExecution in service layer ? I have a scenario as explained below: I have a Itemwriter class which calls service layer (manager) class and this will in turn ...

60. Spring based shared business services layer    forum.springsource.org

Spring based shared business services layer In the IBM Programming Portlets book page 193 it talks about separation of concerns and creating a local service layer for business services that may ...

61. Merging service layer and DAO layer into single layer    forum.springsource.org

Merging service layer and DAO layer into single layer I would like to here some opinion on following topic. I used to build my application with service layer and DAO layer ...

62. get HttpServletRequest from service layer or DAO    forum.springsource.org

How do your HTTP requests get to the application in the first place? If you have an MVC based framework, such as Spring MVC, Struts etc, the HttpServletRequest object is available ...

63. service layers    forum.springsource.org

service layers Hi there, I am new to Spring, so excuse the coming primitive questions, whereas I am utmost grateful for any help! I am using Spring along with NetBeans. My ...

64. Service Layer Exceptions    forum.springsource.org

Service Layer Exceptions - I had a question regarding architecture(design practices) of the service layers. - Generally speaking, is it best for services to throw exceptions(checked or unchecked), or to catch ...

65. Sharing test fixtures between test layers - DAO, Service, MVC    forum.springsource.org

Sharing test fixtures between test layers - DAO, Service, MVC Hi, I'd like to share an opinion on how to merge test fixtures to get a unique source of fixtures for ...

66. Service layer/DTO question    forum.springsource.org

Service layer/DTO question 1. Does the @Service layer know about DTO's (can on of its methods return it or take it as an argument)?If not, that which layer know about them? ...

67. Interaction of Service Layer    forum.springsource.org

Interaction of Service Layer Hi there! I'm newbie to spring. I read the spring-mvc-step-by-step tutorial and successfully integrated hibernate to that example I could make it run without problems. From the ...

68. What is the best way to manage multiple service layer objects?    forum.springsource.org

What is the best way to manage multiple service layer objects? I have a project where I am going to have multiple service layer objects - perhaps at least 10, and ...

69. Is there a way to physically separate Spring-ws layer from actual services?    forum.springsource.org

Is there a way to physically separate Spring-ws layer from actual services? For security reasons, I'm trying to find out if Spring-ws can be tweaked to have the core spring-ws layer ...

70. Accessing messages.properties in service layer    forum.springsource.org

Accessing messages.properties in service layer In my application I am sending out emails, for example, when a user asks for a password reset. I don't want to hardcode the text of ...

71. Which is the protocol used in the transport layer in case of web services like e-comm    forum.springsource.org

Is typical SSL(Secure Socket Layer) protocol still in use? Has any new technique to curb the overhead problem in SSL been implemented in recent years? What is the current scenario? If ...

72. Connecting Two REST Service Layers    forum.springsource.org

Connecting Two REST Service Layers I have written a REST web service layer that communicates almost exclusively JSON over HTTP. I must now integrate with another application written by a third ...

73. how can I write service layer?    forum.springsource.org

how can I write service layer? if I want add a class in the service layer,for example,in the petclinc: ReportService com.springsource.petclinic.service; @Service public class ReportService { private Owner owner; @Autowired public ...

74. legacy spring service layer    seamframework.org