[JBoss AS7 Development] - Remote JMX connector for AS7
by David Bosschaert
David Bosschaert [http://community.jboss.org/people/bosschaert] created the discussion
"Remote JMX connector for AS7"
To view the discussion, visit: http://community.jboss.org/message/566518#566518
--------------------------------------------------------------
I'm working on integrating OSGi system tests with AS7 and as part of that we need to support remote deployment. Remote deployment that these tests do happens through JMX via a (OSGi-standardized) JMX API. To be able to do this I need to create a javax.management.remote.JMXConnectorServer.
So I was experimenting with adding this to jboss-as-jmx.
The following code works in a standlone program (never mind the hardcoded numbers and URL):
Registry rmiRegistry = LocateRegistry.createRegistry(9999);
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:9999/server");
JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, mbs);
cs.start();
However when I run this code in AS I get the following exception:
java.io.IOException: Cannot bind to URL rmi://localhost:9999/server rmi://localhost:9999/server:
javax.naming.NameNotFoundException: Name 'rmi:' not found in context '/localhost:9999'
Should I use a different type of URL in AS? Maybe not using RMI? Anyone know how I can create a JMXConnectorServer in AS?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566518#566518]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[jBPM Development] - Jbpm4 and existing database
by Annacarla Argenio
Annacarla Argenio [http://community.jboss.org/people/annacarla] created the discussion
"Jbpm4 and existing database"
To view the discussion, visit: http://community.jboss.org/message/565748#565748
--------------------------------------------------------------
Hi all,
I hope someone can help me.
I had to move my Jbpm4 to a Jboss 5.0.1 (before it was running on Jboss 5.0.0).
I followed all the process to install the Jbpm on Jboss. I didn't need to install the JBPM schema because I already have it and it's already filled in with data.
Now, if I start a brand new process in my app, everything works fine but if I try to execute the next step of the business process for an existing record I get this error:
10:32:24,041 INFO [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.CompleteTaskCmd@63ab94
org.jbpm.api.JbpmException: execution is not in a activity or in a transition
at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:402)
at org.jbpm.pvm.internal.model.ExecutionImpl.signal(ExecutionImpl.java:384)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
at org.jbpm.pvm.internal.model.ExecutionImpl_$$_javassist_53.signal(ExecutionImpl_$$_javassist_53.java)
at org.jbpm.pvm.internal.task.TaskImpl.complete(TaskImpl.java:194)
at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:49)
at org.jbpm.pvm.internal.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:31)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.executeInExistingTx(JtaTransactionInterceptor.java:65)
at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:51)
at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.executeWithoutRetry(JtaRetryInterceptor.java:56)
at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:48)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.svc.TaskServiceImpl.completeTask(TaskServiceImpl.java:91)
I couldn't find any valuable help in internet.
It's like the JBPM is not able to "hook" itself to an existing database.
Do I have to execute some other step to synchronize the JBPM with the database?
Any help is highly appreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/565748#565748]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months