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.




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925675#3925675

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925675


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to