[jboss-dev-forums] [Design of JBoss jBPM] - Re: JMS Example in 3.2 Beta
jeffdelong
do-not-reply at jboss.com
Thu Jan 18 13:42:21 EST 2007
My understanding is that the CommandListenerBean and CommandServiceBean are designed to handle any Command (that has a class defined that implements the Command interface), not just Job Commands. However, it appears the CommandListenerBean always creates a ExecuteJobCommand, which tries to load a job using the jobId..
I think CommandListernerBean should check for the presence of a JobId (or non 0 jobId), and if not present, then not create a ExecuteJobCommand, but instead get the command from the message and execute it. Currently, the code does not even look in the message for a command, but always assumes its a job and gets it from the Job table.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003461#4003461
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003461
More information about the jboss-dev-forums
mailing list