Announcement Announcement Module
Collapse
No announcement yet.
Problems while using JmsTemplate : topic is null Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems while using JmsTemplate : topic is null

    I have a problem in sending a message using the JmsTemplate. The topic object is returned null , thus causing a NullPointerException in jmsTemplate.send () method.

    The config file contents are as below.

    <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
    <property name="environment">
    <props>
    <prop key="java.naming.factory.initial">org.jnp.interfac es.NamingContextFactory</prop>
    <prop key="java.naming.provider.url">jnp://localhost:1099</prop>
    <prop key="java.naming.factory.url.pkgs">org.jboss.namin g:org.jnp.interfaces</prop>
    </props>
    </property>
    </bean>

    <bean id="topicConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryB ean">
    <property name="jndiName">
    <value>java:/ConnectionFactory</value>
    </property>
    <property name="jndiTemplate">
    <ref bean="jndiTemplate"/>
    </property>
    </bean>

    <bean id="destination" class="org.springframework.jndi.JndiObjectFactoryB ean">
    <property name="jndiName">
    <value>topic/EventTopic</value>
    </property>

    <property name="jndiTemplate">
    <ref bean="jndiTemplate"/>
    </property>

    <property name="resourceRef">
    <value>false</value>
    </property>
    </bean>

    <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
    <property name="connectionFactory">
    <ref bean="topicConnectionFactory"/>
    </property>
    </bean>

    <bean id="ngsJmsSender" class="com.sitraffic.ngs.messaging.NgsMessageSende r">
    <property name="jmsTemplate">
    <ref bean="jmsTemplate"/>
    </property>

    <property name="connectionFactory">
    <ref bean="topicConnectionFactory"/>
    </property>

    <property name="eventTopic">
    <ref bean="destination"/>
    </property>
    </bean>

    The code using it as follows

    public void publishConfiguredEvent ( final ConfiguredEvent configuredEvent ) {

    System.out.println ( "configuredEvent " + configuredEvent );
    System.out.println ( "topic " + eventTopic );

    this.jmsTemplate.setDestinationResolver ( new JndiDestinationResolver () );
    this.jmsTemplate.send ( eventTopic ,
    new MessageCreator () {
    public Message createMessage ( Session session ) throws JMSException {
    return session.createObjectMessage ( configuredEvent );
    }
    }
    );
    }

    I am using a JBoss App. Server and the contents of jbossmq-eventtopic-service.xml file are as below which defines the topic object

    <?xml version="1.0" encoding="UTF-8"?>

    <!--
    | This file defines the Event Topic
    | You can add other destinations to this file, or you can create other
    | *-service.xml files to contain your application's destinations.
    -->

    <server>
    <mbean code="org.jboss.mq.server.jmx.Topic"
    name="jboss.mq.destination:service=Topic,name=Even tTopic">
    <depends optional-attribute-name="DestinationManager">jboss.mq:service=Destina tionManager</depends>
    </mbean>
    </server>

    I can see that all the beans are initialised as also is the destination bean. But some how the eventTopic is null thus throwing NullPointerException.

    Can somebody please tell me what is going wrong here.

  • #2
    Re: Problems while using JmsTemplate : topic is null

    Hi Ganesh,

    Could you post the stacktrace for your problem ?

    Greetz
    Leo

    Originally posted by Ganesh
    I have a problem in sending a message using the JmsTemplate. The topic object is returned null , thus causing a NullPointerException in jmsTemplate.send () method.

    The config file contents are as below.

    <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
    <property name="environment">
    <props>
    <prop key="java.naming.factory.initial">org.jnp.interfac es.NamingContextFactory</prop>
    <prop key="java.naming.provider.url">jnp://localhost:1099</prop>
    <prop key="java.naming.factory.url.pkgs">org.jboss.namin g:org.jnp.interfaces</prop>
    </props>
    </property>
    </bean>

    <bean id="topicConnectionFactory" class="org.springframework.jndi.JndiObjectFactoryB ean">
    <property name="jndiName">
    <value>java:/ConnectionFactory</value>
    </property>
    <property name="jndiTemplate">
    <ref bean="jndiTemplate"/>
    </property>
    </bean>

    <bean id="destination" class="org.springframework.jndi.JndiObjectFactoryB ean">
    <property name="jndiName">
    <value>topic/EventTopic</value>
    </property>

    <property name="jndiTemplate">
    <ref bean="jndiTemplate"/>
    </property>

    <property name="resourceRef">
    <value>false</value>
    </property>
    </bean>

    <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
    <property name="connectionFactory">
    <ref bean="topicConnectionFactory"/>
    </property>
    </bean>

    <bean id="ngsJmsSender" class="com.sitraffic.ngs.messaging.NgsMessageSende r">
    <property name="jmsTemplate">
    <ref bean="jmsTemplate"/>
    </property>

    <property name="connectionFactory">
    <ref bean="topicConnectionFactory"/>
    </property>

    <property name="eventTopic">
    <ref bean="destination"/>
    </property>
    </bean>

    The code using it as follows

    public void publishConfiguredEvent ( final ConfiguredEvent configuredEvent ) {

    System.out.println ( "configuredEvent " + configuredEvent );
    System.out.println ( "topic " + eventTopic );

    this.jmsTemplate.setDestinationResolver ( new JndiDestinationResolver () );
    this.jmsTemplate.send ( eventTopic ,
    new MessageCreator () {
    public Message createMessage ( Session session ) throws JMSException {
    return session.createObjectMessage ( configuredEvent );
    }
    }
    );
    }

    I am using a JBoss App. Server and the contents of jbossmq-eventtopic-service.xml file are as below which defines the topic object

    <?xml version="1.0" encoding="UTF-8"?>

    <!--
    | This file defines the Event Topic
    | You can add other destinations to this file, or you can create other
    | *-service.xml files to contain your application's destinations.
    -->

    <server>
    <mbean code="org.jboss.mq.server.jmx.Topic"
    name="jboss.mq.destination:service=Topic,name=Even tTopic">
    <depends optional-attribute-name="DestinationManager">jboss.mq:service=Destina tionManager</depends>
    </mbean>
    </server>

    I can see that all the beans are initialised as also is the destination bean. But some how the eventTopic is null thus throwing NullPointerException.

    Can somebody please tell me what is going wrong here.

    Comment


    • #3
      Hi Leo,
      Here is the stack trace from the client

      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
      INFO: Loading XML bean definitions from file [E:\ITS\Development\SEM\bean.xml]
      Dec 29, 2004 10:19:32 AM org.springframework.context.support.AbstractXmlApp licationContext refreshBeanFactory
      INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlA pplicationContext;hashCode=27196165]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [systemEventHandlerSlsb,systemEventHandler,semDataS ource,jdbcEventHandlerDao,jdbcTemplate,jndiTemplat e,topicConnectionFactory,destination,jmsTemplate,n gsJmsSender]; Root of BeanFactory hierarchy
      Dec 29, 2004 10:19:32 AM org.springframework.context.support.AbstractApplic ationContext refresh
      INFO: 10 beans defined in ApplicationContext [org.springframework.context.support.FileSystemXmlA pplicationContext;hashCode=27196165]
      Dec 29, 2004 10:19:32 AM org.springframework.context.support.AbstractApplic ationContext initMessageSource
      INFO: No MessageSource found for context [org.springframework.context.support.FileSystemXmlA pplicationContext;hashCode=27196165]: using empty default
      Dec 29, 2004 10:19:32 AM org.springframework.context.support.AbstractApplic ationContext initApplicationEventMulticaster
      INFO: No ApplicationEventMulticaster found for context [org.springframework.context.support.FileSystemXmlA pplicationContext;hashCode=27196165]: using default
      Dec 29, 2004 10:19:32 AM org.springframework.context.support.AbstractApplic ationContext refreshListeners
      INFO: Refreshing listeners
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.DefaultL istableBeanFactory preInstantiateSingletons
      INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [systemEventHandlerSlsb,systemEventHandler,semDataS ource,jdbcEventHandlerDao,jdbcTemplate,jndiTemplat e,topicConnectionFactory,destination,jmsTemplate,n gsJmsSender]; Root of BeanFactory hierarchy]
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'systemEventHandlerSlsb'
      Dec 29, 2004 10:19:32 AM org.springframework.jndi.JndiLocatorSupport lookup
      INFO: Located object with JNDI name [systemEventHandlerSlsb]: value=[systemEventHandlerSlsbHome]
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'systemEventHandler'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'jdbcEventHandlerDao'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'semDataSource'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'jdbcTemplate'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
      INFO: Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'DB2'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'HSQL'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'MS-SQL'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'MySQL'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'Oracle'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'Informix'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'PostgreSQL'
      Dec 29, 2004 10:19:32 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'Sybase'
      Dec 29, 2004 10:19:32 AM org.springframework.jdbc.support.SQLErrorCodesFact ory <init>
      INFO: SQLErrorCodes loaded: [HSQL Database Engine, Oracle, Sybase SQL Server, Microsoft SQL Server, Informix Dynamic Server, PostgreSQL, DB2*, MySQL]
      Dec 29, 2004 10:19:32 AM org.springframework.jdbc.support.SQLErrorCodesFact ory getErrorCodes
      INFO: Looking up default SQLErrorCodes for DataSource
      Dec 29, 2004 10:19:33 AM org.springframework.jdbc.support.SQLErrorCodesFact ory getErrorCodes
      INFO: Database Product Name is Oracle
      Dec 29, 2004 10:19:33 AM org.springframework.jdbc.support.SQLErrorCodesFact ory getErrorCodes
      INFO: Driver Version is 9.2.0.1.0
      Dec 29, 2004 10:19:33 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'jndiTemplate'
      Dec 29, 2004 10:19:33 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'topicConnectionFactory'
      Dec 29, 2004 10:19:33 AM org.springframework.jndi.JndiLocatorSupport lookup
      INFO: Located object with JNDI name [java:/ConnectionFactory]: value=[org.jboss.mq.SpyConnectionFactory@c8376b]
      Dec 29, 2004 10:19:33 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'destination'
      Dec 29, 2004 10:19:33 AM org.springframework.jndi.JndiLocatorSupport lookup
      INFO: Located object with JNDI name [topic/EventTopic]: value=[TOPIC.EventTopic]
      Dec 29, 2004 10:19:33 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'jmsTemplate'
      Dec 29, 2004 10:19:33 AM org.springframework.beans.factory.support.Abstract BeanFactory getBean
      INFO: Creating shared instance of singleton bean 'ngsJmsSender'
      Hey finally Gotcha !!! ( Happily inside POJO )
      org.springframework.remoting.RemoteAccessException : Cannot access remote service [systemEventHandlerSlsb]; nested exception is java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      java.rmi.ServerException: RuntimeException; nested exception is:
      java.lang.NullPointerException
      java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      java.rmi.ServerException: RuntimeException; nested exception is:
      java.lang.NullPointerException
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:292)
      at sun.rmi.transport.Transport$1.run(Transport.java:1 48)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport. java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:534)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(StreamRemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(Str eamRemoteCall.java:223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:1 33)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub. invoke(Unknown Source)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerPr oxy.invoke(JRMPInvokerProxy.java:135)
      at org.jboss.invocation.InvokerInterceptor.invoke(Inv okerInterceptor.java:96)
      at org.jboss.proxy.TransactionInterceptor.invoke(Tran sactionInterceptor.java:46)
      at org.jboss.proxy.SecurityInterceptor.invoke(Securit yInterceptor.java:45)
      at org.jboss.proxy.ejb.StatelessSessionInterceptor.in voke(StatelessSessionInterceptor.java:100)
      at org.jboss.proxy.ClientContainer.invoke(ClientConta iner.java:85)
      at $Proxy2.createSystemEvent(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.springframework.remoting.rmi.RmiClientIntercep torUtils.doInvoke(RmiClientInterceptorUtils.java:9 8)
      at org.springframework.ejb.access.SimpleRemoteSlsbInv okerInterceptor.doInvoke(SimpleRemoteSlsbInvokerIn terceptor.java:73)
      at org.springframework.ejb.access.AbstractRemoteSlsbI nvokerInterceptor.invoke(AbstractRemoteSlsbInvoker Interceptor.java:72)
      at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :138)
      at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:152)
      at $Proxy1.createSystemEvent(Unknown Source)
      at test.TestSpringClient.main(TestSpringClient.java:1 04)
      Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
      java.lang.NullPointerException
      at org.jboss.ejb.plugins.LogInterceptor.handleExcepti on(LogInterceptor.java:361)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:195)
      at org.jboss.ejb.plugins.ProxyFactoryFinderIntercepto r.invoke(ProxyFactoryFinderInterceptor.java:122)
      at org.jboss.ejb.StatelessSessionContainer.internalIn voke(StatelessSessionContainer.java:331)
      at org.jboss.ejb.Container.invoke(Container.java:700)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.i nvoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:546)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invok e(JRMPInvoker.java:367)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:261)
      at sun.rmi.transport.Transport$1.run(Transport.java:1 48)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport. java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:460)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:701)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.lang.NullPointerException
      at com.sitraffic.ngs.messaging.NgsMessageSender.publi shConfiguredEvent(NgsMessageSender.java:78)
      at com.sitraffic.ngs.sysinfo.eventmgnt.eventhandler.d ao.JdbcEventHandlerDao.createSystemEvent(JdbcEvent HandlerDao.java:239)
      at com.sitraffic.ngs.sysinfo.eventmgnt.eventhandler.p ojo.SystemEventHandler.createSystemEvent(SystemEve ntHandler.java:54)
      at com.sitraffic.ngs.sysinfo.eventmgnt.eventhandler.e jb.SystemEventHandlerSlsb.createSystemEvent(System EventHandlerSlsb.java:59)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.ejb.StatelessSessionContainer$ContainerI nterceptor.invoke(StatelessSessionContainer.java:6 83)
      at org.jboss.resource.connectionmanager.CachedConnect ionInterceptor.invoke(CachedConnectionInterceptor. java:185)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInte rceptor.invoke(StatelessSessionInstanceInterceptor .java:72)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invoke Next(AbstractTxInterceptor.java:84)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTran sactions(TxInterceptorCMT.java:267)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxIn terceptorCMT.java:128)
      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(S ecurityInterceptor.java:118)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:191)
      ... 21 more
      Exception in thread "main"

      Comment


      • #4
        The main problem is that the ConnectionFactory itself is returned null.

        Can any one tell me what is going wrong here ?

        Comment


        • #5
          Is the JNDI ref correct?
          Code:
          java&#58;/ConnectionFactory

          Comment


          • #6
            [quote="Ganesh"]Hi Leo,
            Here is the stack trace from the client

            Ganesh,

            You dont need to add java: for the name of your connectionfactory as far as i am aware of. Here is a snippet from my applicationcontext wich i use on JMS against JBOSS :

            <bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryB ean">
            <property name="jndiName"><value>ConnectionFactory</value></property>
            <property name="jndiTemplate">
            <ref local="JNDITemplate"/>
            </property>
            <property name="resourceRef"><value>false</value></property>
            </bean>

            <bean id="destination" class="org.springframework.jndi.JndiObjectFactoryB ean">
            <property name="jndiName"><value>queue/YARDEN.IN</value></property>
            <property name="jndiTemplate">
            <ref local="JNDITemplate"/>
            </property>
            <property name="resourceRef"><value>false</value></property>
            </bean>
            <bean id="JBOSSMQDAO" class="com.yarden.dao.JBOSSMQDAO">
            <property name="connectionFactory">
            <ref local="connectionFactory"/>
            </property>
            <property name="destination">
            <ref local="destination"/>
            </property>
            </bean>
            <bean id="JNDITemplate" class="org.springframework.jndi.JndiTemplate">
            <property name="environment">
            <props>
            <prop key="java.naming.factory.initial">org.jnp.interfac es.NamingContextFactory</prop>
            <prop key="java.naming.provider.url">jnp://localhost:1099</prop>
            <prop key="java.naming.factory.url.pkgs">org.jboss.namin g:org.jnp.interfaces</prop>
            </props>
            </property>
            </bean>

            Hopefully this helps, best of luck
            Leo

            Comment


            • #7
              I am experiencing the same problem...

              ...and I think I may be on to something. JBoss's JMS implementation is not what the Spring's JMSTemplate expects. There is a method that Spring expects to find in the creation of the connection factory, and JBoss doesn't have it. This results in the null pointer exception as the factory returns a null object once this method isn't found.

              I was able to verify JBoss's implementation as the problem when I was able to successfully create a connection when I swapped in the Geronimo JMS implementation.

              Comment


              • #8
                check jndi properties

                Hi Ganesh,

                Are you trying to use JMS from within the appserver or external to the appserver? I notice you have specified some JNDI properties on your jndiTemplate and referenced this in the topicConnectionFactory, but the destination bean does not reference the jndiTemplate so won't know how to look up the topic in JBoss.

                So if you are external to the appserver make sure everything that uses jndi has the correct properties and use ConnectionFactory instead of java:ConnectionFactory.

                The rest of this message is a bit off topic (JBoss specific) and only represents my observations which may be flawed.

                The use of java:/ConnectionFactory will only work from within the appserver. In JBoss 4+ this will give you a reference to the JCA resource adapter for JMS directly which will allow you to use the in VM invocation layer and to propagate identity from your EJBs (if you massage the JBoss server config appropriately).

                Regards,
                Brad.

                Comment

                Working...
                X