I'm sorry I must have misread your post. Anyway, since your endpoint code is always tightly coupled to the ObjectFactory class I would choose not to inject it. When injecting it you would couple your...
Type: Posts; User: bjpbakker; Keyword(s):
I'm sorry I must have misread your post. Anyway, since your endpoint code is always tightly coupled to the ObjectFactory class I would choose not to inject it. When injecting it you would couple your...
In general for me it depends on the type of factory whether to inject it or not. When I use a method factory I do not inject it but instead implement it as a singleton. In case of abstract factories...
I assume that you are referring to a desktop application rather than a webapp. A common way of doing this is by opening a ServerSocket on some port first thing when the application starts. When the...
For a brief explanation of cross-cutting concerns, see http://en.wikipedia.org/wiki/Cross-cutting_concern.
You might need to provide some more information for the only help I can give you with this description is that you can delegate the handling of a request:
public ModelAndView...
Do not use 'classpath' in your resource location but use the path to your resource. You do not need to include '/classes' since your working directory will, most likely, be classes (judging by the...
Well then you need to set up two different security configurations, each covering a different set of URLs.
Are you sure though that groups is not the thing you need? I don't know your use-case but...
First of all, the latter post does not really relate to Transaction Management IMHO. It would be better if you start a new post on a new question :)
Anyway, you specify the command class that...
If the file is on your classpath you should be able to import it just time, no matter whether it's packaged in a JAR or not. I probably didn't clarify this much in my previous post but you should use...
In your WEB-INF/springContext.xml you can import the correct Spring configuration from the JAR file using
<import resource="path/to/resource" />
About your Maven related question; you could use...
Great, good luck with it :)
It will help big time if you could tell more about the use-case for having multiple connection pools. I.e. what is the separation between the pools, when do you need to use a pool and how do you know...
I'm not sure if I understand your actual model. As I understand it Bar has-a Info and Bar has-multiple Foo's. Is this correct? If so, I think the Infodata entity should not be necessary but instead...
Are you sure that you are using the entity manager factory from Spring, and not some other instance instead? The code you posted looks fine to me.
Could you post a stacktrace?
Create a META-INF folder in your src/ folder and add persistence.xml in there.
Isn't the OpenSessionInViewFilter an Servlet Filter that is configured in web.xml? If so, you cannot use Spring for dependency injections, because the servlet container won't get an instance of your...
META-INF/persistence should exist in your classpath. Please refer to hibernate.org/hib_docs/entitymanager/reference/en/html/configuration.html for details about persistence.xml. (I asume you use...
Hibernate will take care of initialization and assignments. Hibernate instantiates your classes using reflection. Please clean your constructors and try it without any manual set construction etc.
If you have split your mappings and queries in two files, make sure your mappings are loaded before your queries. For example, start your mapping files with an 'm' and your query files with a 'q'. I...
Well, without persistence.xml your JPA driver ORM won't work indeed. The persistence.xml is a deployment descriptor and therefore should be placed in META-INF.
Does Hibernate actually execute the queries against your database? You can watch the queries being logged when you set property hibernate.show_sql to true.
You should BTW remove the initialization...
In order to fetch data you have to open a session and a transaction first. Either bind a transaction to the session programmatically or use managed transactions.
The pointcut matches all methods in *..RantService.*. Therefore the advice will be applied to all methods. The transactional advice will use its configured attributes to do its job. When the advisor...
If you have the packages com.domain and com.domain.subdomain, the expression **/*/*.hbm.xml won't match package com.domain. Try **/*.hbm.xml. Or, if you want to make sure you only load your own...
1. since persistence.xml is a deployment descriptor, it always resides in META-INF.
2. if you refer to dependency injection AFAIC there is no difference when using JPA, except that you will use...