<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Need help in configuring JMS with JBoss Messaging in JBoss 4.2.3
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/prabhun">Prabhu Natarajan</a> in <i>JBoss Remoting</i> - <a href="http://community.jboss.org/message/545019#545019">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>We were using JBoss MQ with JBoss 4.2.3. Now we have replaced JBoss MQ with JBoss Messaging by going through the migration instructions provided in the JBoss User guides.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>We have a number of Client systems (Java Swing based Reports) who were subscribed to the JMS (MQ implementation) in JBoss 4.2.3. Whenever a message arrives to the 'JBoss server TOPIC' all clients will receive that message. Message is sent by Oracle to JBoss server TOPIC through webservice call.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Now as we have replaced MQ with Messaging, I would like to know what are all the configurations I should take care for the above scenario to work.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>We have the following Environment details:</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>JBoss server : 4.2.3</p><p>JBoss Messaging: 1.4.2.GA-SP1</p><p>JBoss Remoting: 2.2.2.SP8</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have gone through the documents/guides and setup the following.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>1. Server side setup:</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>connection-factories-service.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Add the below entry to the above file (attached)</p><p>mbean code - name="jboss.messaging.connectionfactory:service=CyrusConnectionFactory"</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Added the below entries to remoting-bisocket-service.xml file (attached)</p><p><attribute name="secondaryBindPort">14000</attribute>                           <br/> <attribute name="secondaryConnectPort">14001</attribute> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>2. Client side setup:</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Our client code which receives the message from TOPIC is in JMSTopicClient.java (attached)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have the following jars on the client side class path:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>jboss-messaging-client.jar</p><p>jboss-remoting.jar</p><p>jbossall-client.jar</p><p>jboss-aop-jdk50.jar</p><p>javassist.jar</p><p>trove.jar           </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Now when I invoke the client I get the following exceptions:</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>First exception:</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>4047 [main] TRACE  org.jboss.util.propertyeditor.PropertyEditors  -  Mapping properties for  bean: SocketClientInvoker[b988a6,  bisocket://uktapp02.tui.de:4457]<br/> 4047 [main] TRACE  org.jboss.util.propertyeditor.PropertyEditors  -  Property editor found  for: pingFrequency, editor:  java.beans.PropertyDescriptor@d49b6d85,  setter: public void   org.jboss.remoting.transport.bisocket.BisocketClientInvoker.setPingFrequency(int)<br/> 4047 [main] TRACE org.jboss.util.propertyeditor.PropertyEditors  -   Property editor found for: numberOfCallRetries, editor:   java.beans.PropertyDescriptor@b82b85fb, setter: public void   org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setNumberOfCallRetries(int)<br/> 4047 [main] TRACE org.jboss.util.propertyeditor.PropertyEditors  -   Property editor found for: marshaller, editor:   java.beans.PropertyDescriptor@4ebe59ab, setter: public void   org.jboss.remoting.MicroRemoteClientInvoker.setMarshaller(org.jboss.remoting.marshal.Marshaller)<br/> 4047 [main] TRACE org.jboss.util.propertyeditor.PropertyEditors  -   Failed to find property editor for: marshaller<br/> 4047 [main] TRACE  org.jboss.util.propertyeditor.PropertyEditors  -  Failed to write  property<br/> java.lang.NullPointerException<br/>     at   org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(PropertyEditors.java:373)<br/>     at   org.jboss.remoting.transport.socket.MicroSocketClientInvoker.setup(MicroSocketClientInvoker.java:405)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Second exception:</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>25048 [main] ERROR org.jboss.jms.client.JBossConnectionFactory  - Failed to download and/or install client side AOP stack<br/>org.jboss.jms.exception.MessagingNetworkFailureException<br/>    at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:240)<br/>    at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:205)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [bisocket://uktapp02.tui.de:4457//?JBM_clientMaxPoolSize=200&clientLeasePeriod=10000&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrapper&dataType=jms&marshaller=org.jboss.jms.wireformat.JMSWireFormat&numberOfCallRetries=1&numberOfRetries=10&pingFrequency=214748364&pingWindowFactor=10&socket.check_connection=false&stopLeaseOnFailure=true&timeout=0&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat&validatorPingPeriod=10000&validatorPingTimeout=5000]<br/>    at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:579)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I would like to know if I am missing anything here and how to resolve the above exceptions and make messaging work?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Prabhu</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/545019#545019">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Remoting at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>