web stats
jms writer configuration - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2007, 05:37 AM
shaiknoor_basha shaiknoor_basha is offline
Mirth Newb
 
Join Date: Apr 2007
Posts: 18
shaiknoor_basha
Default jms writer configuration

hi to all,
i am tring to send a message to jboss jms queue from mirth channel but it is not allowing me to do, so please find the mistake what i have done.
even my channel is not deploying.
----------


My ${mirth-home}/conf/mule-config.xml file jms connector lines as fallows
<connector
className="com.webreach.mirth.server.mule.provider s.jms.JmsConnector"
name="cc5f048f-89c3-42ac-860b-6c3909c3a0e5_destination_1_connector"><exception-strategy
className="com.webreach.mirth.server.mule.Exceptio nStrategy"/><properties><property
name="durable" value="0"/><property
name="jndiProviderUrl"
value="jnp://172.20.36.99/"/><property name="channelId"
value="cc5f048f-89c3-42ac-860b-6c3909c3a0e5"/><property
name="specification" value="1.1"/><map
name="connectionFactoryProperties"/><property
name="jndiInitialFactory"
value="org.jnp.interfaces.NamingContextFactory"/><property
name="connectionFactoryJndiName"
value="java:/ConnectionFactory"/><text-property
name="template">${message.encodedData}</text-property></properties></connector>

Server prompt Errors:


WARN 2007-05-05 17:45:49,000 [Thread-0] com.webreach.mirth.server.Mirth: Error
deploying channels.
org.mule.config.ConfigurationException: MuleManager Failed to initialise (org.mu
le.config.ConfigurationException)
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXm
lConfigurationBuilder.java:196)
at com.webreach.mirth.server.Mirth.startMule(Mirth.ja va:163)
at com.webreach.mirth.server.Mirth.restartMule(Mirth. java:145)
at com.webreach.mirth.server.Mirth.run(Mirth.java:101 )
Caused by: org.mule.config.ConfigurationException: MuleManager Failed to initial
ise
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXm
lConfigurationBuilder.java:209)
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXm
lConfigurationBuilder.java:194)
... 3 more
Caused by: org.mule.umo.lifecycle.InitialisationException: Failed to create Jms
Connector
at com.webreach.mirth.server.mule.providers.jms.JmsCo nnector.doInitialis
e(JmsConnector.java:137)
at org.mule.providers.AbstractConnector.initialise(Ab stractConnector.jav
a:233)
at org.mule.MuleManager.initialiseConnectors(MuleMana ger.java:776)
at org.mule.MuleManager.initialise(MuleManager.java:6 52)
at org.mule.MuleManager.start(MuleManager.java:721)
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXm
lConfigurationBuilder.java:207)
... 4 more
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.Serve
rException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.net.MalformedURLException: no protocol: Files/Mirth/./mirth-server.
jar]
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:722)
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:587)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.webreach.mirth.server.mule.providers.jms.JmsCo nnector.createConne
ctionFactory(JmsConnector.java:171)
at com.webreach.mirth.server.mule.providers.jms.JmsCo nnector.doInitialis
e(JmsConnector.java:130)
... 9 more
Caused by: java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.net.MalformedURLException: no protocol: Files/Mirth/./mirth-server.
jar
at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:325)
at sun.rmi.transport.Transport$1.run(Transport.java:1 53)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport. java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceiv edFromServer(Unknow
n Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unk nown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:625)
... 13 more
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested ex
ception is:
java.net.MalformedURLException: no protocol: Files/Mirth/./mirth-server.
jar
at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:282)
at sun.rmi.transport.Transport$1.run(Transport.java:1 53)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport. java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.MalformedURLException: no protocol: Files/Mirth/./mirth-serv
er.jar
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.ja
va:91)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassL oader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(Mar shalInputStream.jav
a:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectI nputStream.java:153
8)
at java.io.ObjectInputStream.readClassDesc(ObjectInpu tStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1
693)
at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:339)
at javax.naming.CompoundName.readObject(CompoundName. java:554)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at java.io.ObjectStreamClass.invokeReadObject(ObjectS treamClass.java:919
)
at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1813)

at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1
713)
at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:339)
at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRe f.java:290)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:279)
... 6 more
Reply With Quote
  #2  
Old 05-05-2007, 10:21 AM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re:jms writer configuration

Try changing the URL from jnp:// to tcp://
__________________
Chris Lang
Reply With Quote
  #3  
Old 05-06-2007, 02:29 AM
shaiknoor_basha shaiknoor_basha is offline
Mirth Newb
 
Join Date: Apr 2007
Posts: 18
shaiknoor_basha
Default Re:jms writer configuration

sorry i did not get after changing 'jnp' to 'tcp' in JNDI provider URI.


let me explain the flaow, i am JMS Queue created in jboss 4.0.5 GA server which is hosted at 172.20.36.99 ip address,(this JMS service is working fine we have tested with java clients)

now i have mirth setup in my other system in the network with IP 172.20.36.27
i have create one mirth channel who's source is File reader & destination is JMS writer(to the JMS queue created in jboss server hosted at 172.20.36.99)

now look at jms writer configuration in channel as fallows

My ${mirth-home}/conf/mule-config.xml file jms connector lines as fallows

<connector
className="com.webreach.mirth.server.mule.provider s.jms.JmsConnector"
name="cc5f048f-89c3-42ac-860b-6c3909c3a0e5_destination_1_connector"><exception-strategy
className="com.webreach.mirth.server.mule.Exceptio nStrategy"/><properties><property
name="durable" value="0"/><property
name="jndiProviderUrl"
value="jnp://172.20.36.99:1099/"/><property name="channelId"
value="cc5f048f-89c3-42ac-860b-6c3909c3a0e5"/><property
name="specification" value="1.1"/><map
name="connectionFactoryProperties"/><property
name="jndiInitialFactory"
value="org.jnp.interfaces.NamingContextFactory"/><property
name="connectionFactoryJndiName"
value="java:/ConnectionFactory"/><text-property
name="template">${message.encodedData}</text-property></properties></connector>


after changing the 'jnp' to 'tcp'
the error falows like this
org.mule.config.ConfigurationException: MuleManager Failed to initialise (org.mule.config.ConfigurationException)
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:196)
at com.webreach.mirth.server.Mirth.startMule(Mirth.ja va:163)
at com.webreach.mirth.server.Mirth.restartMule(Mirth. java:145)
at com.webreach.mirth.server.Mirth.run(Mirth.java:101 )
Caused by: org.mule.config.ConfigurationException: MuleManager Failed to initialise
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:209)
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:194)
... 3 more
Caused by: org.mule.umo.lifecycle.InitialisationException: Failed to create Jms Connector
at com.webreach.mirth.server.mule.providers.jms.JmsCo nnector.doInitialise(JmsConnector.java:137)
at org.mule.providers.AbstractConnector.initialise(Ab stractConnector.java:233)
at org.mule.MuleManager.initialiseConnectors(MuleMana ger.java:776)
at org.mule.MuleManager.initialise(MuleManager.java:6 52)
at org.mule.MuleManager.start(MuleManager.java:721)
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:207)
... 4 more
Caused by: javax.naming.CommunicationException: Could not obtain connection to any of these urls: tcp://172.20.36.99/ and discovery failed with error: javax.naming.CommunicationException: Failed to retrieve stub from server 172.20.36.101:1100 [Root exception is java.io.StreamCorruptedException: unexpected block data] [Root exception is javax.naming.CommunicationException: Failed to connect to server tcp:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server
tcp:1099 [Root exception is java.net.UnknownHostException: tcp: tcp]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingCo ntext.java:1414)
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.server.mule.providers.jms.JmsCo nnector.createConnectionFactory(JmsConnector.java: 171)
at com.webreach.mirth.server.mule.providers.jms.JmsCo nnector.doInitialise(JmsConnector.java:130)
... 9 more
Caused by: javax.naming.CommunicationException: Failed to connect to server tcp:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server tcp:1099 [Root exception is java.net.UnknownHostException: tcp: tcp]]
at org.jnp.interfaces.NamingContext.getServer(NamingC ontext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingCo ntext.java:1385)
... 14 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server tcp:1099 [Root exception is java.net.UnknownHostException: tcp: tcp]
at org.jnp.interfaces.NamingContext.getServer(NamingC ontext.java:243)
... 15 more
Caused by: java.net.UnknownHostException: tcp: tcp
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at org.jnp.interfaces.TimedSocketFactory.createSocket (TimedSocketFactory.java:76)
at org.jnp.interfaces.NamingContext.getServer(NamingC ontext.java:239)
... 15 more



-------------------End of Exception---------------------
before it changes to 'jnp' to 'tcp'

the earlier exception only
Reply With Quote
  #4  
Old 05-08-2007, 11:27 PM
orlowjb3 orlowjb3 is offline
OBX.1 Kenobi
 
Join Date: Feb 2007
Posts: 48
orlowjb3
Default Re:jms writer configuration

Hello,

i had Problems to send messages to Jonas via JMS, too.

So i did some changes to the code from mirth.
Now i can send JMS Messages to Jonas, OpenJMS, ApacheMQ and so on.
If you find it worse to try i could send you the changed code.

Greetings

Jörg Orlowski
Reply With Quote
  #5  
Old 05-09-2007, 10:19 PM
ravis ravis is offline
What's HL7?
 
Join Date: Nov 2006
Posts: 1
ravis
Default Re:jms writer configuration

It would be helpful if you can provide us the code!!
Reply With Quote
  #6  
Old 05-09-2007, 11:22 PM
orlowjb3 orlowjb3 is offline
OBX.1 Kenobi
 
Join Date: Feb 2007
Posts: 48
orlowjb3
Default Re:jms writer configuration

Hello,

i will put it on one of our server where you can download it.
I will do that in a few hours.

Jörg Orlowski
Reply With Quote
  #7  
Old 05-14-2007, 06:55 AM
bdilworth bdilworth is offline
OBX.2 Kenobi
 
Join Date: Aug 2006
Location: Toledo, Ohio USA
Posts: 79
bdilworth
Default Re:jms writer configuration

Quote:
Jörg Orlowski wrote:

i had Problems to send messages to Jonas via JMS, too.

So i did some changes to the code from mirth.
Now i can send JMS Messages to Jonas, OpenJMS, ApacheMQ and so on.
If you find it worse to try i could send you the changed code.
I would also like to try your code changes. Can you post on the site here somewhere or e-mail it? My e-mail is bob.dilworth@utoledo.edu

Post edited by: bdilworth, at: 05/14/2007 06:57
__________________
Bob Dilworth
University of Toledo Medical Center
Toledo, Ohio
bob.dilworth@utoledo.edu
Reply With Quote
  #8  
Old 05-31-2007, 09:44 PM
shaiknoor_basha shaiknoor_basha is offline
Mirth Newb
 
Join Date: Apr 2007
Posts: 18
shaiknoor_basha
Default Re:jms writer configuration

hi to all,

I am working on mirth 1.5 jms writer, i am able to send the Text message to my Message driven bean deployed in jboss but i coud not able to send ObjectMessage to my Jboss MessageDrivenBean. if any one know how to send please farword the procedure to me please.

I am able to cerate java Object in my mirth transformer when i am sending this object to MessageUueue in jboss it gives the exception of ClassCastException : ObjectMesssage, even thiough i am send the Object from mirth, mirth could not able to wrap in to ObjectMessage automatically, mirth is sending the javaObject directly to server/queue, there at my server/queue i am receiving the same javaObject rather than it wrapped into ObjectMessage Class, problem is MessageDrivenBean will take the message which is an object of any one of these: TextMessage,ObjectMessage,StreamMessage.

Thank u in advance.
looking forward for your replay.
Reply With Quote
  #9  
Old 05-31-2007, 10:21 PM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re:jms writer configuration

Please do not post duplicate threads/replies across the forums. Thanks!
__________________
Chris Lang
Reply With Quote
  #10  
Old 10-17-2007, 10:21 PM
floyd_lewis floyd_lewis is offline
What's HL7?
 
Join Date: Oct 2007
Posts: 1
floyd_lewis
Default Re:jms writer configuration

Hello Jörg,
I am trying to hook up Mirth with ActiveMQ topic. It appears Mirth is successful in publishing the message however I do not see the message in my client subscriber. I am using Version 1.6.1.2750 and apache-activemq-4.1.1.

Would appreciate any help.

Thx,

Floyd
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SOAP listener configuration fernando.ramirez Support 4 07-08-2009 01:12 PM
Server Configuration Backup/Restore lkasner Support 7 05-13-2009 09:20 AM
Configuration manual Andries Support 3 03-25-2008 12:41 AM
SQL Server Configuration Alexander Development 0 10-24-2007 11:56 PM
Ack configuration trevorh Support 1 01-30-2007 09:26 AM


All times are GMT -7. The time now is 11:28 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Mirth Corporation