I find that Hibernate takes a few seconds to initialize here. YMMV
http://www.hibernate.org/194.html
Type: Posts; User: mperham; Keyword(s):
I find that Hibernate takes a few seconds to initialize here. YMMV
http://www.hibernate.org/194.html
My advice? Below is your problem. :) Performance tuning should ALWAYS be done with hard data, not guesses. Use a profiler or even use the poor man's profiler (System.currentTimeMillis()) and find...
[junit] 2004-10-20 16:54:43,284 [main] ERROR factory.support.DefaultListableBeanFactory - Couldn't find a method named 'stop' on bean with name 'csaIncomingConnectionFactory'
To verify, right...
I've found what I consider a problem with ContextSingletonBeanFactoryLocator. The problem is that it is difficult to write POJOs which use that class without them knowing the filename (or "selector"...
Found this through Google but have not tried it yet:
http://article.gmane.org/gmane.comp.java.springframework.user/2182
Note the params set in the web.xml. These are not documented AFAIK.
This is what I am talking about. How do I do what is mentioned in bold?
Spring docs 3.16:
I'm using ContextSingletonBeanFactoryLoader with my EAR to have a logic context at the EAR level. I'd like my WAR context to extend that logic context but I can't see how to configure the war to use...
I'm getting a quartz error about being unable to shutdown datasource 'dummy' when Spring tries to shutdown the quartz SchedulerFactoryBean. I noticed that this only happens when I set the dataSource...
Duh, it seems obvious in retrospect. The SchedulerFactoryBean is the QuartzScheduler object. It's a FactoryBean so the getObject method returns the QuartzScheduler object. You just define a...
+1
I'm trying to do the exact same thing. I have a pre-defined Job but need to create unique Triggers and JobExecutionContexts so users in my system can run the job at a frequency of their own...
But I don't have a single line of conditional logic. And I think that is the common case.
Why on earth would you want to support all those configuration permutations? I have a production...
Overriding is allowed. That's the whole point - your test context just overrides the few beans which need to change for your unit tests. 90% of your context stays the same and you don't have to...
Barry, why wouldn't your integration context just look like this? Seems like you are making it harder than it needs to be?
<bean id="com.its.marketdata.realtimeCurrentPriceService"
...
But spring already supports this in a much cleaner method (IMO) without conditionals by just specifying the context files you want to use:
ClassPathXmlApplicationContext ctx = new...
I just did exactly what you want. You want an applicationContext-services.xml in your services jar and then just specify that xml file in each webapp's web.xml:
<context-param>
...
Spring 1.1 has support for factory methods so you can prevent "new" access.
The problem is that the usage shown uses Java code, not Spring context initialization. Instead I decided to use Sun's reference file system context and link to that in the appContext with a...
This does not work, I assume because <map> returns a non-Hashtable Map whereas the SimpleNamingContext constructor expects a Hashtable.
<bean id="csaDocumentConnectionFactoryImpl" ...
Also, why does this mock use constructor injection instead of the standard setter-based DI pattern that other Spring beans use?
Do you have an example of such usage? I've looked at it once or twice today but it's not obvious to me how to use it.
<property name="environment">
<props>
<prop key="foo">bar</prop>
</props>
</property>
What is the recommended way to test JNDI accessed objects within a basic unit test framework? I have a JMS topic and connection factory that I retrieve at runtime. I'd like to be able to configure...
We have our application broken into three layers:
domain (database beans)
common (services)
webapp (tapestry components and pages)
each of which is a maven project. I'd like to be able to...
You might find this interesting also:
http://opensource.atlassian.com/confluence/spring/display/DISC/Spring-enabled+test+case
Index: SimpleMessageConverter.java
===================================================================
RCS file:...