Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   JMS Sender error (http://www.mirthcorp.com/community/forums/showthread.php?t=215912)

eser 04-19-2016 03:31 AM

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

eser 04-19-2016 06:30 AM

It may depend on different versions of JBoss (4.3.2 GA) and jms-client.jar of mirth(<Mirth Folder>\extensions\jms)?

eser 04-20-2016 12:08 AM

no idea?

satheeskumar 04-20-2016 03:33 AM

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.

eser 04-20-2016 10:15 AM

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..?

eser 04-21-2016 03:12 AM

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>


All times are GMT -8. The time now is 11:37 PM.

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