• 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
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
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
 
Clowns were never meant to be THAT big! We must destroy it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic