[jboss-jira] [JBoss JIRA] Updated: (JBMESSAGING-677) Control the time waiting to get an connection
Poyan (JIRA)
jira-events at jboss.com
Tue Dec 12 10:03:38 EST 2006
[ http://jira.jboss.com/jira/browse/JBMESSAGING-677?page=all ]
Poyan updated JBMESSAGING-677:
------------------------------
Description:
Using the SpyConnectionFactory to get to JMS queues.
This is done because of various firewall issues.
We have a list of ports that we try to connect to. When a firewall is in between the client and the JBoss server the timeout is extremely long.
Following small example show how the connection is made:
Properties properties = new Properties();
properties.setProperty(UILServerILFactory.SERVER_IL_FACTORY_KEY,
UILServerILFactory.SERVER_IL_FACTORY);
properties.setProperty(UILServerILFactory.CLIENT_IL_SERVICE_KEY,
UILServerILFactory.CLIENT_IL_SERVICE);
properties.setProperty(UILServerILFactory.UIL_ADDRESS_KEY, thisIp); properties.setProperty(UILServerILFactory.UIL_PORT_KEY, thisPort);
QueueConnectionFactory conFactory = new SpyConnectionFactory(properties);
_myQConnection = conFactory.createQueueConnection();
_testSession = _myQConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
We whant to control the time it will wait for the "createQueueConnection" call.
We want to control the time client are waiting to get a connection.
We have try to set
-Dorg.jboss.mq.il.uil2.retryCount=1
form the client, but it still to long waiting,
was:
Using the SpyConnectionFactory to get to JMS queues.
This is done because of various firewall issues.
We have a list of ports that we try to connect to. When a firewall is in between the client and the JBoss server the timeout is extremely long.
Following small example show how the connection is made:
Properties properties = new Properties();
properties.setProperty(UILServerILFactory.SERVER_IL_FACTORY_KEY,
UILServerILFactory.SERVER_IL_FACTORY);
properties.setProperty(UILServerILFactory.CLIENT_IL_SERVICE_KEY,
UILServerILFactory.CLIENT_IL_SERVICE);
properties.setProperty(UILServerILFactory.UIL_ADDRESS_KEY, thisIp); properties.setProperty(UILServerILFactory.UIL_PORT_KEY, thisPort);
QueueConnectionFactory conFactory = new SpyConnectionFactory(properties);
_myQConnection = conFactory.createQueueConnection();
_testSession = _myQConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
We whant to control the time it will wait for the "createQueueConnection" call
We want to control the time client are waiting to get a connection.
We have try to set
-Dorg.jboss.mq.il.uil2.retryCount=1
form the client, but it still to long waiting,
> Control the time waiting to get an connection
> ------------------------------------------------
>
> Key: JBMESSAGING-677
> URL: http://jira.jboss.com/jira/browse/JBMESSAGING-677
> Project: JBoss Messaging
> Issue Type: Feature Request
> Components: JMS Client Manager
> Reporter: Poyan
> Assigned To: Ovidiu Feodorov
> Priority: Optional
> Fix For: 1.2.0.Beta1
>
> Attachments: server.log
>
>
> Using the SpyConnectionFactory to get to JMS queues.
> This is done because of various firewall issues.
> We have a list of ports that we try to connect to. When a firewall is in between the client and the JBoss server the timeout is extremely long.
> Following small example show how the connection is made:
> Properties properties = new Properties();
> properties.setProperty(UILServerILFactory.SERVER_IL_FACTORY_KEY,
> UILServerILFactory.SERVER_IL_FACTORY);
> properties.setProperty(UILServerILFactory.CLIENT_IL_SERVICE_KEY,
> UILServerILFactory.CLIENT_IL_SERVICE);
> properties.setProperty(UILServerILFactory.UIL_ADDRESS_KEY, thisIp); properties.setProperty(UILServerILFactory.UIL_PORT_KEY, thisPort);
> QueueConnectionFactory conFactory = new SpyConnectionFactory(properties);
> _myQConnection = conFactory.createQueueConnection();
> _testSession = _myQConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
> We whant to control the time it will wait for the "createQueueConnection" call.
> We want to control the time client are waiting to get a connection.
> We have try to set
> -Dorg.jboss.mq.il.uil2.retryCount=1
> form the client, but it still to long waiting,
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list