users@glassfish.java.net

EJB Module & JMS

From: <glassfish_at_javadesktop.org>
Date: Mon, 29 Oct 2007 17:00:13 PST

Guys,
      I have a java util class inside my EJB module. This util class has to post a message to a JMS topic. I have trouble in specifying the resource-ref & resource-env-ref in ejb-jar.xml & sun-ejb-jar.xml.

I also tried the annotation and couldn't even able to compile it:
@Resource(mappedName = "jms/OutboundTopicConnectionFactory")
            TopicConnectionFactory topicCF;
            
            @Resource(mappedName = "jms/OutboundTopic")
            Topic topic;

Can some one shed some light here? ( i am able to connect to the JMS queue from my servlet).

Thanks,
-Uday.
[Message sent by forum member 'udaysubbarayan' (udaysubbarayan)]

http://forums.java.net/jive/thread.jspa?messageID=242808