[Design of JBoss jBPM] - Re: jta transaction interceptor
by alex.guizar@jboss.com
Another path to investigate further is associating the jBPM Environment to the JTA transaction (JBPM-2197). Suppose a user manages a JTA tx with an EJB method. Inside that method there are 3 subsequent invocations to the jBPM services. In the current configuration, the EnvironmentInterceptor will create 3 separate environments. But we could also do just like hibernate and seam in that case. During interception of the first method invocation, create a new Environment and then associate it to the JTA transaction and close it in the beforeCompletion of a Synchronization. Then the 2 subsequent invocations within the same TX could find and leverage that environment.
Nice proposal, but we need to figure out a way to have the environment created/closed after/before the Hibernate session is created/closed. Otherwise we will hit the problem with Synchronizations we had in jBPM 3.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227080#4227080
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227080
16 years, 8 months
[Design of JBoss jBPM] - starting a process on linux in the start jboss ant task
by tom.baeyens@jboss.com
The ant task StartJBossTask seems to fail on linux
start.jboss:
| [start-jboss] starting '/mnt/hudson_workspace/workspace/jbpm-jboss-test/jboss-5.0.0.GA/bin/run.sh '...
| [start-jboss] Exception in thread "Thread-0" couldn't start '/mnt/hudson_workspace/workspace/jbpm-jboss-test/jboss-5.0.0.GA/bin/run.sh '
| [start-jboss] at org.jbpm.pvm.internal.ant.Launcher.run(Launcher.java:55)
| [start-jboss] Caused by: java.io.IOException: java.io.IOException: /mnt/hudson_workspace/workspace/jbpm-jboss-test/jboss-5.0.0.GA/bin/run.sh: cannot execute
| [start-jboss] at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
| [start-jboss] at java.lang.ProcessImpl.start(ProcessImpl.java:65)
| [start-jboss] at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
| [start-jboss] at java.lang.Runtime.exec(Runtime.java:591)
| [start-jboss] at java.lang.Runtime.exec(Runtime.java:429)
| [start-jboss] at java.lang.Runtime.exec(Runtime.java:326)
| [start-jboss] at org.jbpm.pvm.internal.ant.Launcher.run(Launcher.java:46)
| [start-jboss] --- Nested Exception ---
| [start-jboss] java.io.IOException: java.io.IOException: /mnt/hudson_workspace/workspace/jbpm-jboss-test/jboss-5.0.0.GA/bin/run.sh: cannot execute
| [start-jboss] at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
| [start-jboss] at java.lang.ProcessImpl.start(ProcessImpl.java:65)
| [start-jboss] at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
| [start-jboss] at java.lang.Runtime.exec(Runtime.java:591)
| [start-jboss] at java.lang.Runtime.exec(Runtime.java:429)
| [start-jboss] at java.lang.Runtime.exec(Runtime.java:326)
| [start-jboss] at org.jbpm.pvm.internal.ant.Launcher.run(Launcher.java:46)
|
http://hudson.qa.jboss.com/hudson/job/jbpm-jboss-test/8/consoleText
yet, the file seems to be there in teh workspace
http://hudson.qa.jboss.com/hudson/job/jbpm-jboss-test/ws/jboss-5.0.0.GA/bin/
and it came there by just unzipping a jboss distro with ant. so file permissions should be ok, i think.
here's the java code in the StartJBossTask:
task.log("starting '" + command + "'...");
| Process process = Runtime.getRuntime().exec(command);
|
i must be missing something.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227077#4227077
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227077
16 years, 8 months