-
1. Re: JMS, MDB, and jBPM as a SAR?
tom.baeyens Mar 13, 2006 3:17 AM (in response to jimrigsbee)see the ant target 'create.jbpm.configuration' in the build file build.deploy.xml.
that will create a new jboss server configuration called jbpm, based on the default configuration. the jbpm.sar is deployed in there.
that service archive does nothing but publish the JbpmConfiguration in JNDI.
note that the webapplication is completely broken since i'm reworking it.
regards, tom. -
2. Re: JMS, MDB, and jBPM as a SAR?
jimrigsbee Mar 14, 2006 11:16 AM (in response to jimrigsbee)Tom,
I notice in the current command executor thread we establish a context on each message processed and then close it.
Is there alot of overhead associated with this? Do you have any ideas for how we might avoid having to start up the engine, hibernate, etc. on every transaction?
Thanks, Jim -
3. Re: JMS, MDB, and jBPM as a SAR?
tom.baeyens Mar 15, 2006 6:15 AM (in response to jimrigsbee)Creating JbpmContext objects is very little overhead. Let me know if you think different.
Everything in JbpmContext is initialized lazy. So you only will initialize something that is absolutely necessary.
In a jboss environment, you might check if there is a current hibernate session (with SessionFactory.getCurrentSession()) and inject that into the jbpm context with JbpmContext.setSession(...);
regards, tom. -
4. Re: JMS, MDB, and jBPM as a SAR?
jimrigsbee Mar 15, 2006 9:31 AM (in response to jimrigsbee)Excellent idea...
Thanks, Jim -
5. Re: JMS, MDB, and jBPM as a SAR?
thedog Mar 29, 2006 5:23 AM (in response to jimrigsbee)I've tried to use the JmsMessageServiceFactoryImpl, and needed quite some time to find out that it is not implemented. Instead of making it look like it would work, it would be nice to put a throw new InternalError("Not implemented yet"); so that you do not waste time searching for a possible misconfig to realise at the end that you never had a chance to use it.