Hi,
within my session bean i want to lookup a ConnectionFactory:
| jndi = new InitialContext();
| topicFactory = (TopicConnectionFactory)
jndi.lookup("java:comp/env/topic/MailTopicFactory");
|
but the following exception is thrown:
15:13:25,932 INFO [STDOUT] javax.naming.NameNotFoundException: comp not bound
the important entries in the ejb-jar.xml and jboss.xml are:
ejb-jar.xml:
| <resource-ref>
| <res-ref-name>MailTopicFactory</res-ref-name>
| <res-type>javax.jms.TopicConnectionFactory</res-type>
| <res-auth>Container</res-auth>
| </resource-ref>
|
jboss.xml:
| <res-ref-name>MailTopicFactory</res-ref-name>
| <jndi-name>java:/JmsXA</jndi-name>
| </resource-ref>
|
I have no idea what´s the problem?
Does anybody know how to solve this?
Thanks a lot for any suggestions!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882842#3882842
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882842
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user