users@glassfish.java.net

Re: JMS Using Spring

From: <glassfish_at_javadesktop.org>
Date: Tue, 20 Apr 2010 04:28:20 PDT

Sahoo,

  No, I don't care how I can get it done, as long as it works. I also tried the following:

@MessageDriven(mappedName="jmsTopic")
public class MsgConsumer implements MessageListener
{
    public void onMessage(Message message)
    {
        TextMessage msg = (TextMessage) message;
        ...
    }
}

but that did nothing. With these annotations, I'm not familiar with what needs to be put in the sun-ejb-jar.xml file (or whatever the config file should be) and where it needs to be in an OSGI bundle. I know with all the Spring config files, we just throw them in META-INF/spring and they get scanned.

If we don't need all the CachingFactory and JNDIEnvironment stuff, that's fine. I would like to streamline the code as much as possible.
[Message sent by forum member 'ltouve']

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