[jboss-user] [JBoss Remoting] - Re: How to use always the same port for ejb-call

Ron Sigal do-not-reply at jboss.com
Tue Jul 17 18:23:09 EDT 2012


Ron Sigal [https://community.jboss.org/people/ron_sigal] created the discussion

"Re: How to use always the same port for ejb-call"

To view the discussion, visit: https://community.jboss.org/message/748589#748589

--------------------------------------------------------------
Hi Werner,

Sorry for the delay.

Once a worker thread is created, it will be reused.  In particular, once it completes an invocation, it will sit in a read() waiting for the next invocation.  If you do no more than one invocation at a time, the same worker thread should handle all of them.

If you do more than one invocation at a time, you could limit the number of worker threads to one.  That way, if an invocation comes in while the single worker thread is  busy, the server will wait until the worker thread finishes processing its invocation and then use it for the new invocation.  You can limit the number of worker threads in the configuration file $JBOSS_HOME/server/$CONFIG/deploy/ejb3-connectors-jboss-beans.xml by changing the line

 <parameter>socket://${jboss.bind.address}:${port}</parameter>

to 

 <parameter>socket://${jboss.bind.address}:${port}/?maxPoolSize=1</parameter>

-Ron
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/748589#748589]

Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120717/bec561c0/attachment.html 


More information about the jboss-user mailing list