Hi,
You need to manually edit the jrun-jms.xml to change the provider-url port number to
get it work.
<client-jndi>
<initial-context-factory>jrun.naming.JRunContextFactory</initial-context-factory>
<url-pkg-prefixes>jrun.naming</url-pkg-prefixes>
<provider-url>127.0.0.1:2909</provider-url>
</client-jndi>
Be default, it is 2908 for all servers.
Regards,
John
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 1:16 PM
To: JRun-Talk
Subject: JMS in JRun4
Hi,
I have encountered a problem calling 'jms/QueueConnectionFactory' and
'jms/TopicConnectionFactory'.
QueueConnectionFactory factory =
(QueueConnectionFactory)context.lookup("jms/QueueConnectionFactory");
QueueConnection connection = factory.createQueueConnection();
When I try to get a connection from the factory in the second statement then
it searches for default server and throws an exception when that is not
running.
I am running this JMS on port 8101 and jndi port is 2909.
The default server port is 8100 and jndi port is 2908.
Why it is looking for default server whereas it has the same connection
factory on the running server.
Anybody has got clue?
Here is the copy of error it throws -
Tue Jul 16 11:36:01 EDT 2002
Error in getDelegate. Exception: The connection to the remote JNDI server on
host 168.159.15.209 at port 2908 has failed (as have all backup hosts
listed, if any) - please verify that the server is running and the
NamingService is available.
javax.jms.JMSException: Error in getDelegate. Exception: The connection to
the remote JNDI server on host 168.159.15.209 at port 2908 has failed (as
have all backup hosts listed, if any) - please verify that the server is
running and the NamingService is available.
at
jrun.jms.core.client.rmi.RmiJmsServerStub.getDelegate(RmiJmsServerStub.java:
193)
at
jrun.jms.core.client.rmi.RmiJmsServerStub.createConnection(RmiJmsServerStub.
java:255)
at jrun.jms.core.client.JmsConnection.<init>(JmsConnection.java:127)
at
jrun.jms.core.client.JmsQueueConnection.<init>(JmsQueueConnection.java:42)
at
jrun.jms.core.client.JmsQueueConnectionFactory.createQueueConnection(JmsQueu
eConnectionFactory.java:68)
at
jrun.jms.wrapper.enterprise.JRunConnectionFactoryWrapper.createQueueConnecti
on(JRunConnectionFactoryWrapper.java:354)
at
com.emc.advt.asi.client.ui.dialog.NewBoardComponent.loadExcel(NewBoardCompon
ent.java:240)
at
com.emc.advt.asi.client.ui.dialog.NewBoardComponent.jbInit(NewBoardComponent
java:142)
at
com.emc.advt.asi.client.ui.dialog.NewBoardComponent.<init>(NewBoardComponent
java:111)
at
com.emc.advt.asi.client.ui.tree.ViewTree$LoadBoardActionListener.actionPerfo
rmed(ViewTree.java:532)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unkno
wn Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists