[EJB 3.0 Users] - Re: Custom StrictMaxPool settings in ...-aop.xml ignored
by shreyasshinde
Okay. I have a solution for this. It turns out that when EJBs applications are deployed, the properties in ejb3-interceptors-aop.xml file under the deploy directory are applied first. The following annotation in the file says "if the class is not present then apply this property.
| <annotation expr="class(*) AND !class((a)org.jboss.ejb3.annotation.Pool)">
| @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool", maxSize=20, timeout=10000)
| </annotation>
|
So, when I was bundling my -aop.xml file with my EJB application, the property should read:
| <annotation expr="class((a)org.jboss.ejb3.annotation.Pool)">
| @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=10, timeout=10000)
| </annotation>
|
Which means, if the class is present then apply this property. As the properties from ejb3-interceptors-aop.xml file are always applied first, the class is present and therefore we only check for its existence.
Most of the documentation is misleading in a way that this point is not very clear.
Thanks,
Shreyas
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266942#4266942
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266942
16 years, 5 months
[jBPM Users] - WebLogic 10 : couldn't lookup 'UserTransaction' from jndi
by dtoch
I'm trying to use JBPM 4.2 in WebLogic 10, but I get:
org.jbpm.api.JbpmException: couldn't lookup 'UserTransaction' from jndi: Unable to resolve 'UserTransaction'. Resolved '': Unable to resolve 'UserTransaction'. Resolved ''
at org.jbpm.pvm.internal.tx.jta.JtaTransaction.lookupFromJndi(JtaTransaction.java:137)
at org.jbpm.pvm.internal.tx.jta.JtaTransaction.lookupJeeUserTransaction(JtaTransaction.java:116)
at org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:42)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.cfg.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:177)
at org.jbpm.pvm.internal.cfg.ProcessEngineImpl.buildProcessEngine(ProcessEngineImpl.java:170)
In WebLogic the JNDI name is javax.transaction.UserTransaction, not UserTransaction. Apparently org.jbpm.pvm.internal.tx.jta.JtaTransaction contains a protected member userTransactionJndiName in order to pass another JNDI name then the default one which is for JBoss, but I'm not sure what's the correct/elegant way to override it. Should I use the JBPM Environment API for this, or should I customize the JBPM XML configurations?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266939#4266939
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266939
16 years, 5 months
[jBPM Users] - JBoss AS & jBPM
by StevenMayhew
Hi all,
I'm having a few issues sorting out an installation of JBoss to configure it correctly with jBPM. Currently I have a JBoss AS instance running correctly on the machine and it all works perfectly. However its integrating it with jBPM that I'm having issues with. The only tutorial that I could find is dated (http://www.jboss.org/community/wiki/jbpm3gettingstarted) and isn't much help with the latest version (4.2) of jBPM.
I tried reverting to an old version so that I could run through the instructions in the wiki and still had no luck. Basically I'm just after some guidance to configuring my JBoss 5.1.0 install so that I can successfully use jBPM with it.
Any help at all would be appreciated. You can assume that so far all I have done is unzip the JBoss AS instance and tested it, because thats pretty much as far as I have come before hitting brick walls and enduring head-smash-on-desk moments.
Cheers,
Steven
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266938#4266938
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266938
16 years, 5 months