Which part of my post in particular?
I never suggested doing this.
Where there is possibly duplication is in the authentication DAO and the service layer, depending on whether it's re-used or...
Type: Posts; User: katentim; Keyword(s):
Which part of my post in particular?
I never suggested doing this.
Where there is possibly duplication is in the authentication DAO and the service layer, depending on whether it's re-used or...
Sure you do. I'm just pointing out that you can avoid duplication :)
I think it's just because the PetClinic application has no delete functionality.
The connection is usually managed by the connection pooling provider (e.g. Vendor JNDI or Apache Commons DBCP), so the connections will be reused between requests.
Well you'll need a configuration for each application, but you won't want to configure duplicate logic in each of the applications. You can define common logic in a single JAR that is re-useable...
It's also referred to as the business layer. It usually fits in something like this:
UI (Web or Remoting) Layer - Service/Business Layer - DAO Layer
This is a logical layer which where it's often...
Yes. BASIC authentication requires some repository to authenticate, and the implementation should be completely pluggable.
For example, your basicProcessingFilter has a authenticationManager...
Depends what you want to secure, and how your application is designed. If you have a single service layer that is shared, you should be able to apply method level security once as well.
I assume you mean for the same field.
Yes, but you can't use the CustomDateEditor (if it's for the same field). Take a look at the source though - it'd be easy to write your own to do what you...
BTW, posting the relevant code and configuration would help.
Did you use this doco: AOP Alliance (MethodInvocation) Security Interceptor
Can you get the contacts sample running and compare?
Hey, go easy on yourself. ;)
Take a look at setPostInterceptors and setPreInterceptors.
This is one of Spring's core values. Some examples are:
Transactional services - no Spring APIs required (cf EJB which were hugely invasive)
DI (cf EJB 2.x Apache Avalon)
Lifecycle - can...
If you're after the file name on the client's machine, try MultipartFile.getOriginalFilename()
OK, so both you service and advice are singletons. Your advice doesn't maintain any state, so there is no threading issue - unless "//Do some business logic" needs to be sequential (e.g. if method...
Can you post the code. Is this method storing state? If not, you don't need to do anything. If so, you make it thread safe by specifying certain regions of code as synchronized - to prevent multiple...
You might find this informative: http://discuss.joelonsoftware.com/default.asp?joel.3.309321.3
I haven't read Spring in Action, so can't comment on it.
Pro Spring is an excellent pure Spring functionality book with heaps of useful examples (easily navigated and run from Eclipse).
From a...
You might find these threads helpful:
http://forum.springframework.org/showthread.php?t=16501
http://forum.springframework.org/showthread.php?t=9748
The samples and reference documentation are a great start.
There's a list of resources (including a link to books) here: http://www.springframework.org/documentation
You must be using a collection associated with one session in another session. Would have to look at the code to determine where.
You find a better explanation here: http://forum.hibernate.org/
Did you try finding a solution here or on the Hibernate forum?
You might find something in these links. The first one has a feature matrix.
...
NAFAIK. Without knowing why it's setup this way, you could include that mapping file in the the first datasource as well.
Can you elaborate? Dao is just a pattern. What do you want to leverage from Spring? What are you trying to achieve.
Try using import.
Take a look at this section of the reference manual: 3.2.2.1. Composing XML-based configuration metadata