2 Replies Latest reply on Mar 17, 2006 7:21 PM by kgomesjboss

    Session Bean accessing a remote queue

    stevech10

      I have been struggling with this for a few days now, and would appreciate any help. I have a session bean producing messages to a remote server queue, and a MDB consuming messages from the same queue. The producer creates a temporary queue that the consumer uses to reply with. I have this working with the Sun Application server, but would like to port it to JBoss. The problem is my messages do not appear at the remote queue. I have looked at numerous examples, but they mostly seem to deal with local queues and remote MDB, not remote queues

      I am using JBoss 4.0.3, and have modified the jboss-ds.xml file DefaultJMSProvider to talk to the remote server by adding the appropriate properties as such:

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=jnp://remote_server:1099


      I have created the following jboss.xml:

      false
      <resource-managers>
      <resource-manager>
      <res-name>queuefactoryref</res-name>
      <res-jndi-name>jnp://remote_server:1099/ConnectionFactory</res-jndi-name>
      </resource-manager>
      </resource-managers>

      <enterprise-beans>

      <ejb-name>MessageSenderBean</ejb-name>
      <jndi-name>MessageSenderBean</jndi-name>
      <configuration-name>Standard Stateless SessionBean</configuration-name>
      <resource-ref>
      <res-ref-name>ConnectionFactory</res-ref-name>
      <resource-name>queuefactoryref</resource-name>
      </resource-ref>

      </enterprise-beans>
      <assembly-descriptor>
      <message-destination>
      <message-destination-name>testQueue</message-destination-name>
      <jndi-name>queue/testQueue</jndi-name>
      </message-destination>
      </assembly-descriptor>


      Any help would be greatly appreciated.