Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss jBPM] - Re: jBPM and ejb

scott.stark@jboss.org

2007-05-03


ahh.... so it is there, sorry I was wrong. (maybe not to obvious ok...). There is also a reference in the releasenotes: http://jira.jboss.com/jira/browse/JBPM-152

I now could say the source is open and contains a lot of testcases, also for this. Or I could write a full example describing how it should be used....

I think I'll choose the former (keep in mind, I'm not a JBoss employee and do this in my spare time)

But, I'll do a little more.... the test class is called org.jbpm.msg.AsyncProcessingTest.java

You know what... since it is nice weather, I'll even do a little more... code from that class:


|  public static Object execute(Command command) {
|   Object returnValue;
|   try {
|     InitialContext initialContext = new InitialContext();
|     LocalCommandServiceHome localCommandServiceHome = (LocalCommandServiceHome) initialContext.lookup("CommandServiceBean");
|     LocalCommandService localCommandService = localCommandServiceHome.create();
|     returnValue = localCommandService.execute(command);
|     localCommandService.remove();
|   } catch (Exception e) {
|     e.printStackTrace();
|     throw new RuntimeException("couldn't execute command", e);
|   }
|   return returnValue;
|  }
|

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042910#4042910

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042910
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.