Discussion:
[jboss-user] [JBoss Remoting] - homes and connecthomes parameter
Gusti Benawi
2013-02-19 12:56:37 UTC
Permalink
Gusti Benawi [https://community.jboss.org/people/benawi] created the discussion

"homes and connecthomes parameter"

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

--------------------------------------------------------------
Hello,

If the number of homes entered does not equal the number of connecthomes, then I will get following exception:

java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.start(BisocketServerInvoker.java:285)
    at org.jboss.remoting.transport.Connector.start(Connector.java:344)


for example:

bisocket://multihome:1234/?homes=myhost!localhost&connecthomes=exthost1!exthost2!localhost


homes has 2 parameters: myhost and localhost
connecthomes has 3 parameters: exthost1, exthost2 and localhost

It it a bug or feature?

I need 3 parameters for the connecthomes, since the server has to be reached from those two external hosts and off course from localhost.
--------------------------------------------------------------

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

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