The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise ...

learn more… | top users | synonyms

-1
votes
0answers
14 views

Need a help to write code in loginBean.java…Please help me [on hold]

Can you please review my below code which i have written userDao.java ,userbean.java, userService.java but i am not able get how to proceed further in loginBean.java. For the below requriement "need ...
4
votes
2answers
122 views

Eliminating duplicated code blocks

I have an abstract PersonDao class, extended by several other DAO classes, for example EmployeeDao, ...
2
votes
1answer
28 views

Logging a message and the stack trace of caught exceptions

Using Spring's JdbcTemplate to load a specific object by ID if exists, I have this code: ...
5
votes
1answer
217 views

Create better Base DAO class

I created a DAO class which is base class for all other DAO classes. I use Spring Framework 4 and Hibernate 4. Question: Is there anything that could be done better? ...
5
votes
1answer
43 views

JMS configuration — client exclusive messages

I am SURE this is somehow easy but reading the docs isn't bringing it to light. The problem: I am trying to setup a JMS message listener and what I need is for the first client to have exclusive ...
3
votes
1answer
85 views

Class naming conventions

I have the following scenario: The (web-) application is built with Java/Spring. I have several REST-endpoints which deliver data prepared to be consumed by a frontend by ...
6
votes
2answers
340 views

Spring password validator library

I recently got rejected at a job interview for submitting this: https://bitbucket.org/gnerr/password-validator The interviewer asked for a password validation library that was configurable via ...
1
vote
1answer
123 views

factory pattern in spring

I have the following factory class, wonder if this code can be implemented in better way. I saw few discussions about spring factory bean, but don't find good examples. ...
2
votes
1answer
246 views

JettyGwtSpringSample web application

I just created a sample project using Spring 3.x, Jetty 9.x, GWT 2.5.1 and Gradle here. It's a slightly modified version of the 'Greeting' GWT application from Google, the only change being that RPC ...
2
votes
1answer
412 views

Managing Data access layer exceptions

I am developing a webapp using Spring MVC + Hibernate. I created a GenericDao class that implements basic data access methods, to be extended by all my concrete daos in the app. What I want advice or ...
5
votes
2answers
2k views

Spring autowiring in managed beans with support for serialization - is this safe?

Im trying to solve two problems I see with JSF2 and Spring. First @Autowired in @ManagedBean does not work Nor does ...
6
votes
1answer
140 views

Circular dependencies between immutable objects; the Freeze Pattern

Generally, I structure small threadsafe immutable objects like this: ...
4
votes
1answer
151 views

Avoiding using strings when using Spring.Net by incorporating instantiation in class

Totally new to MVP and Spring, and I have what seems to be typical MVP application that uses Spring, where the presenter is instantiated like: ...
1
vote
1answer
202 views

Java API code with Spring

Model: ...