[Remoting] - making a rmi call over ipv6 using jboss
by gaurav_abbi
hi,
i have a rmi service running which is binded with these environment variables
java.naming.provider.url=blriedlin03:19014, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
when i try to invoke the same using a RMI client and using "jbossall-client.jar", it works fine.
but when i replace the url with the one using ipv6 address, it fails.
with a timeout
javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
| at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1058)
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1127)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at mytest.RMIClient.runBPDocWait(RMIClient.java:118)
| at mytest.RMIClient.main(RMIClient.java:57)
| Caused by: java.net.SocketTimeoutException: Receive timed out
| at java.net.PlainDatagramSocketImpl.receive0(Native Method)
| at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
| at java.net.DatagramSocket.receive(DatagramSocket.java:712)
| at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038)
| ... 6 more
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=jnp://[fe80::213:72ff:fe3c:21bf]:19014 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.net.preferIPv6Addresses=true
java.net.preferIPv4Stack=false
its a dual stack machine, with host name mapped to ipv4 address.
My first question is does jboss supports IPV6?
if yes, then what am i missing here which is causing me the failure?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146098#4146098
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146098
18 years
[JBoss jBPM] - Very Simple Swimlane......help!
by francis1970
Hi all Jbpm users,
I have a simple process with 2 Task. Every Task has the same assignment class (assignment.AssignTask) which needs to know what kind of user is in charge to execute the Task.
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="Gap">
| <swimlane name="buyer" />
| <swimlane name="seller" />
|
|
| <start-state name="start">
| <transition to="buyItems"></transition>
| </start-state>
|
| <task-node name="buyItems">
|
| <task name="TaskBuyItems" swimlane="buyer">
| <assignment class="assignment.AssignTask" />
| </task>
| <transition to="sellItems"></transition>
| </task-node>
|
| <task-node name="sellItems">
|
| <task name="TaskSellItems" swimlane="seller">
| <assignment class="assignment.AssignTask" />
| </task>
| <transition to="end"></transition>
| </task-node>
As you can see the swimlane is just a flag....inside the AssignTask class I look for buyers and sellers list....
The problem is that I cannot read the value of the Swimlane inside the assignment.AssignTask class...
public void assign(Assignable arg, ExecutionContext arg1) throws Exception {
|
| SwimlaneInstance swim = arg1.getTaskInstance().getSwimlaneInstance(); // RETURNS NULL
|
| String actorId = arg1.getTaskInstance().
| getActorId(); // ALSO THIS RETURNS NULL
| }
Do I need to set up users/groups on the database in order to use swimlanes ? In this case the users/groups check-up has been already done by the web application, so I only need somehow to read the swimlane in the Task Assignment class....
Any help ?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146084#4146084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146084
18 years