ProxyFactory pf = new ProxyFactory();
pf.addAdvice((MyInterceptor) ClassFactory.getInstance().getObjectById("myInterceptor"));
pf.setTarget(concreteObject);
ObjectIF returnObject =...
Type: Posts; User: rpark68; Keyword(s):
ProxyFactory pf = new ProxyFactory();
pf.addAdvice((MyInterceptor) ClassFactory.getInstance().getObjectById("myInterceptor"));
pf.setTarget(concreteObject);
ObjectIF returnObject =...
So ultimately I need to / want to use getBean(myObject, MyObject.class, args), but we're using a BeanFactory derived from the ContextSingletonBeanFactoryLocator
protected BeanFactory...
thanks... the manual overrided seems to have done the trick. :D
1. With <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">, <bean id="commonDataSource"
class="com.zenodata.shared.db.PooledDataSource"
...
thanks very much for the info :D
and the other question I guess is just with the connection.close is that effectively just a release back to the pool? ... how does one know vs. is it actually a close of the connection?
And if I don't have a transaction? I'm just doing read-only queries...
If you set the data source to say DBCP BasicDataSource and use a MappingSqlQuery, I assume that Spring calls bds.getConnection(), but how does that connection get released. Why don't we need some...
Are there any recommendations for validating your various Spring XMLs for code changes such as renaming a class or removing a setter from a class? The concern is mostly related to the production...
I'm concerned about maintaining the 2 xml files as our system grows. If I rename classes or add dependencies for example, I can easily work the kinks out of the spring-test.xml, but is there a way...
Option 2 sounds preferable to me at this point...
WRT entry points: I was just referring to something like
AppClass {
...
public void setShared(Shared shared) {
this.shared = shared;
}...
For option 1, where the shared code has its own context, I assume that the entry point classes in shared.jar need to lookup there own ApplicationContext?
For option 2, can Spring assemble the...
I'm starting to implement Spring into our existing codebase. We have 2 swing apps and a web app that all have some shared code... let's say in shared.jar. My current enhancement only needs to...