I don't think there's a way to configure the CachingConnectionFactory to proactively close the connection after a period of time. One custom solution is to implement a timer in your code which...
Type: Posts; User: monahanky; Keyword(s):
I don't think there's a way to configure the CachingConnectionFactory to proactively close the connection after a period of time. One custom solution is to implement a timer in your code which...
Ok so the place where the exception is thrown could be key. It happens when sending a message to the queue. So the flow is as follows...
Initially the shared connection and session are created....
My app is not configured using Spring so putting it in the appContext is not an option. Also I use vanilla JMS, not the JmsTemplate. I just wanted to hook in the CachingConnectionFactory for...
Hi,
I'm using the CachingConnectionFactory in standalone mode (outside of spring context) to cache connections and session for my jms application. All works well and the connections and sessions...
Hi,
I'm looking for a clarification on what I think is a discrepancy between api documentation and the code base. Looking at the CachingConnectionFactory api, I see a constructor which takes a...
The problem was solved by altering transactional attributes on the data source driver.
Hi,
I'm using a MDB which extends AbstractJmsMessageDrivenBean. I need to write a unit test for receiving a message from a configured queue. I've configured activemq as the messaging provider and...
Thanks for the reply.
Sure, I understand what you are saying. I updated to the following configuration and still get the same behavior.
<bean id="dataSource"...
Hi,
I'm using Spring to configure my container managed datasource. My container is Websphere which is used to set up and define a connection to the underlying datasource and Spring then looks up...
Hi,
I'm using Spring to initialize an EJB. I have the following configuration setup
beanRefContext.xml - references additional spring configuration as follows
<bean id="earContextId"...
Hi all,
Apologies if this is a novice question. I've some custom log4j appenders in my application & i need access to the spring context in them so that i can do some application monitoring. How...
Hi,
I implemented a webAppRootKey in my web.xml using the context param & the WebAppRootListener. In my spring configuration i set up PropertyPlaceholderConfigurer as follows
<bean...