[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Problem publishing messages to a remote Queue
Sorry, I noticed the invoked binding and JMS remote loader did not paste correctly, here they are again: JMS remote loader in jmd-ds.xml: | QueuehostJMSProvider | org.jboss.jms.jndi.JNDIProviderAdapter | | XAConnectionFactory | | XAConnectionFactory | | |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory |java.naming.factory.url.pkgs=org.jnp.interfaces |java.naming.provider.url=purple05.ed.ray.com:1099 | | | Proxy binding in jboss.xml: | | my-mdb-invoker | does-not-matter | org.jboss.ejb.plugins.jms.JMSContainerInvoker | | QueuehostJMSProvider | StdJMSPool | 1 | 3 | 15 | 1 | |10 | | queue/DLQ | 10 | 0 | | | | | | And here's the initial context lookup: | Properties properties = new Properties(); | properties.put(Context.INITIAL_CONTEXT_FACTORY, | "org.jnp.interfaces.NamingContextFactory"); | properties.put(Context.URL_PKG_PREFIXES, | "org.jboss.naming:org.jnp.interfaces"); | properties.put(Context.PROVIDER_URL, URL_NAME); | jndiContext = new InitialContext(properties); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938150#3938150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938150 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Problem publishing messages to a remote Queue
Thank you for your interest. Here is the initial context lookup - although I was hoping not to have to hard code this: Properties properties = new Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); properties.put(Context.PROVIDER_URL, URL_NAME); jndiContext = new InitialContext(properties); Also, here's my JMS loader provider from jms-ds.xml (remoteserver replaced with actual server): QueuehostJMSProvider org.jboss.jms.jndi.JNDIProviderAdapter XAConnectionFactory XAConnectionFactory XAConnectionFactory java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jnp.interfaces java.naming.provider.url=remoteserver:1099 Finally, I have a remote proxy binding setup up in jboss.xml that I successfully invoke to consume from a remote topic. I was hoping I could use the same proxy binding to publish to the remote queue: my-mdb-invoker does-not-matter org.jboss.ejb.plugins.jms.JMSContainerInvoker QueuehostJMSProvider StdJMSPool 1 3 15 1 10 queue/DLQ 10 0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938143#3938143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938143 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Problem publishing messages to a remote Queue
Post the code where you are looking up the remote queue in your session bean. I believe its mainly got to do with the InitialContext properties. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3938049#3938049 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3938049 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user