• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Error : Spring + Jms Application deployed on Oc4j

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
My Application has the below Jms setup in the oc4j Server.
Queue
=====
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"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="JndiTemplate"></property>
<property name="jndiName">
<value>jms/QCF_interactionLogging</value>
</property>
</bean>

<bean id="queue1"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate" ref="JndiTemplate"></property>
<property name="jndiName">
<value>jms/interactionLoggingQueue</value>
</property>
</bean>

<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>

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

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.

Error
=====

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(JMSUtils.java:1072)
at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1152)
at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1123)
at com.evermind.server.jms.EvermindConnection.assertSession(EvermindConnection.java:511)
at com.evermind.server.jms.EvermindConnection.createSession(EvermindConnection.java:222)
at org.springframework.jms.listener.AbstractMessageListenerContainer.createSession(AbstractMessageListenerContainer.java:1002)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.initResourcesIfNecessary(DefaultMessageListenerContainer.java:915)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:903)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:857)
at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThrottlingRunnable.run(SimpleAsyncTaskExecutor.java:203)
at java.lang.Thread.run(Thread.java:595)

Thanks
Sridhanya
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic