This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Error : Spring + Jms Application deployed on Oc4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error : Spring + Jms Application deployed on Oc4j " Watch "Error : Spring + Jms Application deployed on Oc4j " New topic

Error : Spring + Jms Application deployed on Oc4j

sridhanya ganapathy

Joined: Jun 03, 2006
Posts: 14
Hi All,
My Application has the below Jms setup in the oc4j Server.
destination ==> jms/interactionLoggingQueue
connectionFactory ==> jms/QCF_interactionLogging

To work on the messages posted to the queue i used "org.springframework.jms.listener.DefaultMessageListenerContainer".

Bean config info

<bean id="CommonConnectionFactory"
<property name="jndiTemplate" ref="JndiTemplate"></property>
<property name="jndiName">

<bean id="queue1"
<property name="jndiTemplate" ref="JndiTemplate"></property>
<property name="jndiName">

<bean id="listenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="concurrentConsumers" value="5" />
<property name="connectionFactory" ref="CommonConnectionFactory" />
<property name="destination" ref="queue1" />
<property name="messageListener" ref="messageListener" />

<bean id="messageListener" class="org.springframework.jms.listener.adapter.MessageListenerAdapter">
<bean class="message.listen.SampleMDP" />
<property name="defaultListenerMethod"
value="receive" />
<property name="messageConverter">
<bean class="">

When i deploy the application in oc4j i get the below error.Is there i missing any configuration in application or oc4j or else.Please guide me how to proceed further.


2007-05-21 15:04:06,901 ERROR [org.springframework.jms.listener.DefaultMessageListenerContainer] - Setup of JMS message listener invoker failed - trying to recover
javax.jms.JMSException: Connection[Oc4jJMS.Connection.pc-0031.-45e74155:112adfa58e9:-8000.1]: cannot create new session inside J2EE container when Session[Oc4jJMS.Session.pc-0031.-45e74155:112adfa58e9:-8000.2,false,AUTO_ACKNOWLEDGE] is currently active.
at com.evermind.server.jms.JMSUtils.make(
at com.evermind.server.jms.JMSUtils.toJMSException(
at com.evermind.server.jms.JMSUtils.toJMSException(
at com.evermind.server.jms.EvermindConnection.assertSession(
at com.evermind.server.jms.EvermindConnection.createSession(
at org.springframework.jms.listener.AbstractMessageListenerContainer.createSession(
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.initResourcesIfNecessary(
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(
at org.springframework.jms.listener.DefaultMessageListenerContainer$
at org.springframework.core.task.SimpleAsyncTaskExecutor$

I agree. Here's the link:
subject: Error : Spring + Jms Application deployed on Oc4j
It's not a secret anymore!