Eike Lüders
2013-12-04 18:06:41 UTC
Hey,
I have a problem regarding to the use of multiple jade platforms on a single machine.
I use MacOS X 10.9 and Jade 4.3.0
I started two jade instances with different ports on the local computer (I also tried with -local-port).
java jade.Boot -gui -port 2010
java jade.Boot -gui -port 2011
Now I try to start the containers from a java program with the following code.
The code runs in a loop and should create one container on each jade platform that is specified with the port.
(Here i also tried with Profile.LOCAL_PORT)
({PORT} stands for either 2010 or 2011)
Runtime jadeRuntime = Runtime.instance();
ProfileImpl profile = new ProfileImpl();
profile.setParameter(Profile.CONTAINER_NAME, "Container_" + i);
profile.setParameter(Profile.MAIN_HOST, "localhost");
profile.setParameter(Profile.MAIN_PORT, {PORT} + "");
AgentContainer container = jadeRuntime.createAgentContainer(profile);
The problem that occurs is that jade starts all containers always on the same jade platform and does not
create them on the platform that is specified by the port.
If I try to start the containers via cmd it works correctly:
java jade.Boot -gui -local-port 2010
java jade.Boot -gui -local-port 2011
Any suggestions? Thanks!
/Eike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20131204/2b6a8954/attachment.html>
I have a problem regarding to the use of multiple jade platforms on a single machine.
I use MacOS X 10.9 and Jade 4.3.0
I started two jade instances with different ports on the local computer (I also tried with -local-port).
java jade.Boot -gui -port 2010
java jade.Boot -gui -port 2011
Now I try to start the containers from a java program with the following code.
The code runs in a loop and should create one container on each jade platform that is specified with the port.
(Here i also tried with Profile.LOCAL_PORT)
({PORT} stands for either 2010 or 2011)
Runtime jadeRuntime = Runtime.instance();
ProfileImpl profile = new ProfileImpl();
profile.setParameter(Profile.CONTAINER_NAME, "Container_" + i);
profile.setParameter(Profile.MAIN_HOST, "localhost");
profile.setParameter(Profile.MAIN_PORT, {PORT} + "");
AgentContainer container = jadeRuntime.createAgentContainer(profile);
The problem that occurs is that jade starts all containers always on the same jade platform and does not
create them on the platform that is specified by the port.
If I try to start the containers via cmd it works correctly:
java jade.Boot -gui -local-port 2010
java jade.Boot -gui -local-port 2011
Any suggestions? Thanks!
/Eike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://avalon.cselt.it/pipermail/jade-develop/attachments/20131204/2b6a8954/attachment.html>