Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
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
Paul Clapham
Ron McLeod
Jeanne Boyarsky
Tim Cooke
Sheriffs:
Liutauras Vilda
paul wheaton
Henry Wong
Saloon Keepers:
Tim Moores
Tim Holloway
Stephan van Hulst
Carey Brown
Frits Walraven
Bartenders:
Piet Souris
Himai Minh
Forum:
EJB and other Jakarta /Java EE Technologies
Spring+JMS+OC4J
Joshua Antony
Ranch Hand
Posts: 254
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am trying to use JMS(1.1) with Spring(2.5) in OC4J(10g). A part of the configuration is as shown:
<!-- JMS Destination --> <bean id="destination" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiTemplate"> <ref bean="jndiTemplate"/> </property> <property name="jndiName"> <value>java:comp/env/jms/demoQueue</value> </property> </bean>
However it is not able to lookup the Queue throwing an exception :
javax.naming.NameNotFoundException:
java
:comp/env/jms/demoQueue not found
I have this queue defined in OC4J as shown:
<queue name="Demo Queue" location="java:comp/env/jms/demoQueue"> <description>A dummy queue</description> </queue> <queue-connection-factory location="java:comp/env/jms/QueueConnectionFactory"> </queue-connection-factory>
I tried using Spring, JMS and
JBoss
and it worked fine.
What could be the issue?
Regards,
Joshua
SCJP,SCWCD, Into ATG now!
Sunglasses. AKA Coolness prosthetic. This tiny ad doesn't need shades:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
can't create connection to JBoss MQ using Spring JMS
Spring JMS with IBM Websphere MQ5.3.1
MDB deployed in WebLogic and Queues in IBM MQ
Error : Spring + Jms Application deployed on Oc4j
Spring configuration for Testing JMS using Junit
More...