From: Ellery, D. <Dav...@bl...> - 2007-11-26 00:27:52
|
Hi, We are trying to use an external RMI (on the localhost) for our connector but it will not work =20 the error we recieve is =20 Using OPENJMS_HOME: /home/zaelld/openjms Using JAVA_HOME: /usr/java/ OpenJMS 0.7.7-beta-1 The OpenJMS Group. (C) 1999-2007. All rights reserved. http://openjms.sourceforge.net org.exolab.jms.server.ServerException: org.exolab.jms.server.ServerException: java.rmi.server.ExportException: Failed to accept connections on URI: rmi://myhost:1095/; nested exception is: org.exolab.jms.net.connector.ResourceException: Failed to bind connection factory at org.exolab.jms.net.orb.DefaultORB.accept(DefaultORB.java:458) at org.exolab.jms.net.orb.AbstractORB.doExport(AbstractORB.java:450) at org.exolab.jms.net.orb.AbstractORB.exportObject(AbstractORB.java:296) at org.exolab.jms.net.orb.AbstractORB.exportObject(AbstractORB.java:258) at org.exolab.jms.net.orb.RegistryService.<init>(RegistryService.java:82) at org.exolab.jms.net.orb.DefaultORB.getRegistry(DefaultORB.java:258) at org.exolab.jms.server.net.RemoteServerConnector.init(RemoteServerConnect or.java:208) at org.exolab.jms.server.ConnectorService.initConnector(ConnectorService.ja va:258) at org.exolab.jms.server.ConnectorService.initConnectors(ConnectorService.j ava:196) at org.exolab.jms.server.ConnectorService.doStart(ConnectorService.java:164 ) at org.exolab.jms.service.Service.start(Service.java:97) at org.exolab.jms.service.ServiceManager.doStart(ServiceManager.java:176) at org.exolab.jms.service.Service.start(Service.java:97) at org.exolab.jms.server.JmsServer.init(JmsServer.java:146) at org.exolab.jms.server.JmsServer.main(JmsServer.java:178) Caused by: org.exolab.jms.net.connector.ResourceException: Failed to bind connection factory at org.exolab.jms.net.rmi.RegistryHelper.bind(RegistryHelper.java:97) at org.exolab.jms.net.rmi.RMIManagedConnectionAcceptor.accept(RMIManagedCon nectionAcceptor.java:164) at org.exolab.jms.net.connector.AbstractConnectionManager.accept(AbstractCo nnectionManager.java:160) at org.exolab.jms.net.connector.AbstractConnectionFactory.accept(AbstractCo nnectionFactory.java:205) at org.exolab.jms.net.connector.AbstractConnectionManager.accept(AbstractCo nnectionManager.java:251) at org.exolab.jms.net.orb.DefaultORB.accept(DefaultORB.java:456) ... 14 more =20 =20 Our openjms.xml is as follows =20 =20 <?xml version=3D"1.0"?> =20 <Configuration> =20 <!-- Optional. This represents the default configuration --> <ServerConfiguration host=3D"localhost" embeddedJNDI=3D"true" /> =20 <Connectors> <Connector scheme=3D"rmi"> <ConnectionFactories> <QueueConnectionFactory name=3D"JMSQueueConnectionFactory" /> <TopicConnectionFactory name=3D"JMSSTopicConnectionFactory" /> </ConnectionFactories> </Connector> </Connectors> =20 <RmiConfiguration embeddedRegistry=3D"false" registryHost=3D"myhost" registryPort=3D"1099"> </RmiConfiguration> =20 <!-- Required --> <DatabaseConfiguration> <RdbmsDatabaseConfiguration driver=3D"oracle.jdbc.driver.OracleDriver" url=3D"jdbc:oracle:thin:@myhost:1521:db1"=20 user=3D"openjms"=20 password=3D"secret1"/> </DatabaseConfiguration> =20 <!-- Required --> =20 <AdminConfiguration script=3D"${openjms.home}\bin\startup.bat" /> =20 </Configuration> =20 =20 when using an embeddedRegistry it works fine, but that isnt possible in our running environment, and we would prefer not to allocate more ports of http/tcp when we can just use RMI (provided it works) =20 Thanks,=20 =20 DKE =20 =0A=0ANOTICE - This message and any attached files may contain informatio= n that is confidential and intended only for use by the intended recipien= t. If you are not the intended recipient or the person responsible for de= livering the message to the intended recipient, be advised that you have = received this message in error and that any dissemination, copying or use= of this message or attachment is strictly forbidden, as is the disclosur= e of the information therein. If you have received this message in error = please notify the sender immediately and delete the message. |