users@glassfish.java.net

issues in Spring JMS integration with Glassfish V2

From: <glassfish_at_javadesktop.org>
Date: Sat, 09 Jan 2010 04:36:49 PST

Hi All,

We are tryring to implement jms in our application which has been developed using spring framework.We are [B]using glassfish v2 as jms provider[/B](no third party message broker like ActiveMQ or openMQ).
 Also the sender and receiver clients are implemented [B]without using Spring JMS framework[/B]( i.e. no use of spring jmstemplate etc.).[B]Application also uses Spring ioC(dependency injection)[/B] to create objects to be used later.

[B]The issue arises when the receiver client which is asynchronous(implements message listener) ,receives message and onmessage function is called.Here we are using Spring ioC created object to do further processing relevant with the message received.This object is null(null pointer exception is thrown),This spring ioc created object is null although it was created successfully during the startup of the receiver.Similarly other Spring ioC created objects in application are null during this call back once the message is received.[/B]

What can be the issue that Spring ioc created objects are not available once the receiver receives a message and further processing needs to be done.is there some context related issue?Will this issue be resolved by using Sprng JMS framework? can spring JMS framework used with Glassfish v2 as message broker without using other brokers like ActiveMQ and OpenMQ which then require integrating with Glassfish.

Please find attached jms receiver class used.There is no issue with Spring application context file which is used to create objects(dependancy injection)

Any pointers to resolve this will be appreciated ,waiting for reponses. mail me @ [email]apurv_agnihotri_at_infosys.com[/email].
[Message sent by forum member 'apurv888' (apurv_agnihotri_at_infosys.com)]

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