Hello,
Is there any major differences between 1.5 and 1.6 with regards to JBoss MQ? I've been banging my head against setting up a JMS Writer Destination for two days now. I've successfully done so with 1.5, but I'm having issues with 1.6 (which I'm kinda forced to use since I'm now on Vista). Anyway, here is my config:
User JNDI: Yes
Provider URL: jnp://127.0.0.1:1099/
Initial Context Factory: org.jnp.interfaces.NamingContextFactory
Connection Factory Name: java:/ConnectionFactory
Destination: queue/incomingHL7
The error:
Caused by: java.net.MalformedURLException: no protocol: Connector
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHand ler.java:747)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandl er.java:147)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClas sLoader.java:620)
at org.jboss.system.JBossRMIClassLoader.loadClass(JBo ssRMIClassLoader.java:91)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassL oader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(Mar shalInputStream.java:197)
If I change the URL to jnp:////127.0.0.1:1099//, I get this error:
Caused by: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(Na mingContext.java:1317)
at org.jnp.interfaces.NamingContext.checkRef(NamingCo ntext.java:1446)
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.webreach.mirth.connectors.jms.JmsConnector.cre ateConnectionFactory(JmsConnector.java:167)
at com.webreach.mirth.connectors.jms.JmsConnector.doI nitialise(JmsConnector.java:130)
... 26 more
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
at java.net.DatagramSocket.receive(Unknown Source)
at org.jnp.interfaces.NamingContext.discoverServer(Na mingContext.java:1287)
I do have all the necessary JBoss jars in lib/custom and I'm able to connect to jnp://127.0.0.1:1099 using HermesJMS.
Also, I'm using JBoss 4.0.5.
Thanks.
Post edited by: wiggum14, at: 08/29/2007 10:46
Is there any major differences between 1.5 and 1.6 with regards to JBoss MQ? I've been banging my head against setting up a JMS Writer Destination for two days now. I've successfully done so with 1.5, but I'm having issues with 1.6 (which I'm kinda forced to use since I'm now on Vista). Anyway, here is my config:
User JNDI: Yes
Provider URL: jnp://127.0.0.1:1099/
Initial Context Factory: org.jnp.interfaces.NamingContextFactory
Connection Factory Name: java:/ConnectionFactory
Destination: queue/incomingHL7
The error:
Caused by: java.net.MalformedURLException: no protocol: Connector
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHand ler.java:747)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandl er.java:147)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClas sLoader.java:620)
at org.jboss.system.JBossRMIClassLoader.loadClass(JBo ssRMIClassLoader.java:91)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassL oader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(Mar shalInputStream.java:197)
If I change the URL to jnp:////127.0.0.1:1099//, I get this error:
Caused by: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(Na mingContext.java:1317)
at org.jnp.interfaces.NamingContext.checkRef(NamingCo ntext.java:1446)
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.webreach.mirth.connectors.jms.JmsConnector.cre ateConnectionFactory(JmsConnector.java:167)
at com.webreach.mirth.connectors.jms.JmsConnector.doI nitialise(JmsConnector.java:130)
... 26 more
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(Unknown Source)
at java.net.DatagramSocket.receive(Unknown Source)
at org.jnp.interfaces.NamingContext.discoverServer(Na mingContext.java:1287)
I do have all the necessary JBoss jars in lib/custom and I'm able to connect to jnp://127.0.0.1:1099 using HermesJMS.
Also, I'm using JBoss 4.0.5.
Thanks.
Post edited by: wiggum14, at: 08/29/2007 10:46
Comment