web stats
JMS Sender error - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-19-2016, 03:31 AM
eser eser is offline
Mirth Newb
 
Join Date: May 2015
Posts: 18
eser is on a distinguished road
Default JMS Sender error

Good morning
I'm trying to connect Mirth 3.3.1 to JBOSS 4.2.3 (JBOSS MQ), using jndi, but I have the following error:

java.lang.ClassCastException: javax.naming.Reference can not be cast to javax.jms.Destination



The connection is configured in this way:
Provider url: jnp://localhost:1099/
Initial Context Factory: org.jnp.interfaces.NamingContextFactory
Connection Factory Name: ConnectionFactory
Destination Name: queue/testQueue



In custom lib I already have the jbossall-client.jar file.
What causes this error?
Thanks in advance
Reply With Quote
  #2  
Old 04-19-2016, 06:30 AM
eser eser is offline
Mirth Newb
 
Join Date: May 2015
Posts: 18
eser is on a distinguished road
Default

It may depend on different versions of JBoss (4.3.2 GA) and jms-client.jar of mirth(<Mirth Folder>\extensions\jms)?
Reply With Quote
  #3  
Old 04-20-2016, 12:08 AM
eser eser is offline
Mirth Newb
 
Join Date: May 2015
Posts: 18
eser is on a distinguished road
Default

no idea?
Reply With Quote
  #4  
Old 04-20-2016, 03:33 AM
satheeskumar satheeskumar is offline
OBX.1 Kenobi
 
Join Date: Aug 2015
Location: UK
Posts: 46
satheeskumar is on a distinguished road
Default

I never tried this, but I guess the jar should be jbossall-client.jar .. need to put any third party lib in the custom-lib folder.
__________________
Mirth Certified
Reply With Quote
  #5  
Old 04-20-2016, 10:15 AM
eser eser is offline
Mirth Newb
 
Join Date: May 2015
Posts: 18
eser is on a distinguished road
Default

I tried with jbossall in custom-lib folder but always returns me that error:

java.lang.ClassCastException: javax.naming.Reference can not be cast to javax.jms.Destination



Perhaps jms is not compatible with jboss MQ..?
Reply With Quote
  #6  
Old 04-21-2016, 03:12 AM
eser eser is offline
Mirth Newb
 
Join Date: May 2015
Posts: 18
eser is on a distinguished road
Default

I solved it by putting the jbossall-client.jar in the
<Mirth Connect folder>\extensions\jms
and changing the destination.xml file (the same folder) as follows:

before

<connectorMetaData path="jms">
<name>JMS Sender</name>
<author>Mirth Corporation</author>
<pluginVersion>3.3.1.7856</pluginVersion>
<mirthVersion>3.3.1</mirthVersion>
<url>http://www.mirthcorp.com</url>
<description>This connector allows Mirth to write messages to a JMS queue.</description>
<clientClassName>com.mirth.connect.connectors.jms. JmsSender</clientClassName>
<serverClassName>com.mirth.connect.connectors.jms. JmsDispatcher</serverClassName>
<sharedClassName>com.mirth.connect.connectors.jms. JmsDispatcherProperties</sharedClassName>
<serviceClassName>com.mirth.connect.connectors.jms .JmsConnectorService</serviceClassName>
<library type="CLIENT" path="jms-client.jar" />
<library type="SHARED" path="jms-shared.jar" />
<library type="SERVER" path="jms-server.jar" />
<transformers></transformers>
<protocol>jms</protocol>
<type>DESTINATION</type>
</connectorMetaData>




after


<connectorMetaData path="jms">
<name>JMS Sender</name>
<author>Mirth Corporation</author>
<pluginVersion>3.3.1.7856</pluginVersion>
<mirthVersion>3.3.1</mirthVersion>
<url>http://www.mirthcorp.com</url>
<description>This connector allows Mirth to write messages to a JMS queue.</description>
<clientClassName>com.mirth.connect.connectors.jms. JmsSender</clientClassName>
<serverClassName>com.mirth.connect.connectors.jms. JmsDispatcher</serverClassName>
<sharedClassName>com.mirth.connect.connectors.jms. JmsDispatcherProperties</sharedClassName>
<serviceClassName>com.mirth.connect.connectors.jms .JmsConnectorService</serviceClassName>
<!--
<library type="SHARED" path="jms-shared.jar" />
-->
<library type="CLIENT" path="jms-client.jar" />
<library type="SHARED" path="jbossall-client.jar" />
<library type="SERVER" path="jms-server.jar" />
<transformers></transformers>
<protocol>jms</protocol>
<type>DESTINATION</type>
</connectorMetaData>
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


All times are GMT -8. The time now is 03:20 PM.


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