Connecting remote JBoss-eap-6.2 to pass message in java -


code runs without problem creating connection factory cannot create topic connection. when creating topic connection throws following exception.(my code creating publisher , subscriber) here terminal output received,

jun 03, 2015 10:51:55 org.xnio.xnio <clinit> info: xnio version 3.0.7.ga-redhat-1 jun 03, 2015 10:51:55 org.xnio.nio.nioxnio <clinit> info: xnio nio implementation version 3.0.7.ga-redhat-1 jun 03, 2015 10:51:55 org.jboss.remoting3.endpointimpl <clinit> info: jboss remoting version 3.2.18.ga-redhat-1 connfactory : hornetqconnectionfactory [serverlocator=serverlocatorimpl [initial connectors=[transportconfiguration(name=netty, factory=org-hornetq-core-remoting -impl-netty-nettyconnectorfactory) ?host=172-26-75-72&port=5545], discoverygroup configuration=null], clientid=null, dupsokbatchsize=1048576, transactionbatchsiz e=1048576, readonly=false] jmsexception javax.jms.jmsexception: failed create session factory         @ org.hornetq.jms.client.hornetqconnectionfactory.createconnectioninter nal(hornetqconnectionfactory.java:587)         @ org.hornetq.jms.client.hornetqconnectionfactory.createtopicconnection (hornetqconnectionfactory.java:131)         @ pubsub.publisher.connectionsetup(publisher.java:55)         @ pubsub.publisher.sendmessage(publisher.java:77)         @ pubsub.pubstart.main(pubstart.java:9) caused by: hornetqexception[errortype=not_connected message=hq119007: cannot con nect server(s). tried available servers.]         @ org.hornetq.core.client.impl.serverlocatorimpl.createsessionfactory(s erverlocatorimpl.java:909)         @ org.hornetq.jms.client.hornetqconnectionfactory.createconnectioninter nal(hornetqconnectionfactory.java:583)         ... 4 more jun 03, 2015 10:51:57 org.jboss.naming.remote.protocol.v1.remotenamingstorev1 $messagereceiver handleend error: channel end notification received, closing channel channel id 9ebab472 (o utbound) of remoting connection 01bb14d2 /172.26.75.72:4547 

since i'm accessing jboss server through vpn connection allow me access 172.26.75.72:4547 only.the port 4547 because of set off set of 100 in standalone-full.xml file. after printing connection factory saw access port communication since doesn't allow port access code throws above exception. till working in unrestricted network above exception not thrown. after allowing port 4547 code ran smoothly.


Comments