[Beginner's Corner] - Create stateless bean from stateful bean
by Piotr De
piotrekde [http://community.jboss.org/people/piotrekde] created the discussion
"Create stateless bean from stateful bean"
To view the discussion, visit: http://community.jboss.org/message/577951#577951
--------------------------------------------------------------
Hi,
It is a simple question (however I'm not sure about the answer). In my application there is a stateful bean which works as a "work dispatcher" service - it receives events (on some scheduled time) and invokes stateless beans method passing appropriate arguments - those stateless beans do the whole job. My question is: how to obtain references to stateless beans (workers) in work dispatcher (executive) in a way that guarantee that stateless beans will be pooled (their state and number are managed by server, it is not just a single instance)?
I know, that if I obtain a reference by JNDI to the bean, then I've got proxy object, but behind it, actually might be 10 stateless beans doing its work.
But what if I am on the same virtual machine? Should I use @EJB annotation or maybe ordinary constructor?
Thanks in advance,
Piotr
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/577951#577951]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 12 months
[JBoss Portal] - Customized Skinning in Jboss Enterprise Platform Portal
by Ranjith Reddy
Ranjith Reddy [http://community.jboss.org/people/ranman17] created the discussion
"Customized Skinning in Jboss Enterprise Platform Portal"
To view the discussion, visit: http://community.jboss.org/message/577843#577843
--------------------------------------------------------------
I have read documentation for customized skinning in Jboss Portal and could not find the exact steps that needs to be followed in getting this resolved.
http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Portal_Platform/5.1/ht... http://docs.redhat.com/docs/en-US/JBoss_Enterprise_Portal_Platform/5.1/ht...
Steps:
1. Create a new skin ( called MySkin) in gatein.ear\01eXoResources.war\skin. For now, I just copied the DefaultSkin directory and renamed it to Myskin and also copied the StyleSheet.css into MySkinStyleSheet.css
2. Added the following to the the gatein-resources.xml (gatein.ear\01eXoResources.war\WEB-INF\gatein-resources.xml)
# - <portal-skin>
<skin-name>Default</skin-name>
<css-path>/skin/Stylesheet.css</css-path>
</portal-skin>
*# - <portal-skin>*
* <skin-name>MySkin</skin-name>*
* <css-path>/skin/MySkinStylesheet.css</css-path>*
* <overwrite>false</overwrite>*
* </portal-skin>*
3. Added the following in portal.xml (\gatein.ear\02portal.war\WEB-INF\conf\portal\portal\classic) to attach the Myskin profile.
<access-permissions>Everyone</access-permissions>
<edit-permission>*:/platform/administrators</edit-permission>
* <skin>MySkin</skin>*
After doing that, I was able to see the MySkin in the list of the skins available in the UI but I was not able to accompolish the following.
a) I tried configuring the Portal skin preview and was showing blank screen in the preview ( from UI)
b) Are there any other changes that is needed in 02Portal.war/web.war? I am asking this because I saw there is another gatein-resources.xml which I am not sure the purpose of it? and there is a skin directory in the web.war file.
c)If we want to apply the changes to any of the Groovy compoenents. what is the best practice ( development process ) to be followed here?
*Thanks*
*Ranjith
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/577843#577843]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 12 months
[JNDI and Naming] - datasource not bound?
by frh10 ff
frh10 ff [http://community.jboss.org/people/frh10] created the discussion
"datasource not bound?"
To view the discussion, visit: http://community.jboss.org/message/577688#577688
--------------------------------------------------------------
Hi !
I use jboss5.1.0.GA and set a datasource in it.I can get connections with lookup this datasource(context.lookup("java:/MSSQLDS")) in standalone application(MSSQLDS works well),but when i put the same code to MDB to lookup this datasource and deploy it,jboss throw a error:MSSQLDS not bound.Here is the log.
2010-12-28 09:29:55,339 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) javax.naming.NameNotFoundException: MSSQLDS not bound
2010-12-28 09:29:55,339 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
2010-12-28 09:29:55,339 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
2010-12-28 09:29:55,340 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
2010-12-28 09:29:55,340 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
2010-12-28 09:29:55,340 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
2010-12-28 09:29:55,340 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at javax.naming.InitialContext.lookup(InitialContext.java:392)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at ejb.SelectMDB.onMessage(SelectMDB.java:54)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2010-12-28 09:29:55,341 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.lang.reflect.Method.invoke(Method.java:597)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
2010-12-28 09:29:55,342 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.lang.reflect.Method.invoke(Method.java:597)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
2010-12-28 09:29:55,343 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_22116759.invoke(InvocationContextInterceptor_z_fillMethod_22116759.java)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
2010-12-28 09:29:55,344 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_22116759.invoke(InvocationContextInterceptor_z_setup_22116759.java)
2010-12-28 09:29:55,345 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,345 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
2010-12-28 09:29:55,345 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,345 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
2010-12-28 09:29:55,346 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,346 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
2010-12-28 09:29:55,346 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,346 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
2010-12-28 09:29:55,347 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:194)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:80)
2010-12-28 09:29:55,348 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-28 09:29:55,349 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:282)
2010-12-28 09:29:55,350 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:270)
2010-12-28 09:29:55,350 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:140)
2010-12-28 09:29:55,350 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at $Proxy302.onMessage(Unknown Source)
2010-12-28 09:29:55,350 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:256)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:822)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:46)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:940)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
2010-12-28 09:29:55,351 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
2010-12-28 09:29:55,352 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
2010-12-28 09:29:55,352 ERROR [STDERR] (Thread-3 (group:HornetQ-client-global-threads-10422804)) at java.lang.Thread.run(Thread.java:619)
2010-12-28 09:29:55,400 ERROR [org.jboss.aspects.tx.TxPolicy] (Thread-3 (group:HornetQ-client-global-threads-10422804)) javax.ejb.EJBTransactionRolledbackException
2010-12-28 09:29:55,401 ERROR [org.hornetq.ra.inflow.HornetQMessageHandler] (Thread-3 (group:HornetQ-client-global-threads-10422804)) Failed to deliver message
javax.ejb.EJBTransactionRolledbackException
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:115)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:194)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:80)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:282)
at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:270)
at org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:140)
at $Proxy302.onMessage(Unknown Source)
at org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:256)
at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:822)
at org.hornetq.core.client.impl.ClientConsumerImpl.access$100(ClientConsumerImpl.java:46)
at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:940)
at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at ejb.SelectMDB.onMessage(SelectMDB.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_22116759.invoke(InvocationContextInterceptor_z_fillMethod_22116759.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_22116759.invoke(InvocationContextInterceptor_z_setup_22116759.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
... 22 more
How can i solve this error?Thands!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/577688#577688]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 12 months
Re: [jboss-user] [JBoss Tools] - Simple CDI Hello World with Eclipse and JBoss Tools
by Ed Goforth
Ed Goforth [http://community.jboss.org/people/egoforth] commented on
"Simple CDI Hello World with Eclipse and JBoss Tools"
To view all comments on this blog post, visit: http://community.jboss.org/community/tools/blog/2010/12/10/simple-cdi-hel...
--------------------------------------------------
Thank you for this.
This is probably obvious to most, but it was a bit puzzling to me when I went through the text before watching the video. The beans.xml file needs to have some content, and not just be an empty file. If you add a single <beans\> element like in the video, everything is happy. If you have no elements (either completely empty or just the <?xml...> banner, the deployer will throw a org.jboss.weld.exceptions.IllegalStateException. Using a dummy element (<bob\>) will show a validation error in the log, but the servlet will still deploy and run properly.
I am using Sun JDK 1.6.0_22, Eclipse Helios SR1, JBoss Tools 3.2.0 and JBoss AS 6.0.0.20101110 CR1 with JBoss ESB 4.9.
--------------------------------------------------
13 years, 12 months
[jBPM] - Re: JBPM5 compatibility with Tomcat and Maven
by Kris Verlaenen
Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion
"Re: JBPM5 compatibility with Tomcat and Maven"
To view the discussion, visit: http://community.jboss.org/message/577010#577010
--------------------------------------------------------------
1. I don't think there's a problem with older versions of maven, I recommend you just give it a try, you only need to change the maven version in prerequisites in the parent pom to your version and try the build. If it works, let me know and I'll lower the required maven version.
2. There is no problem with that, although this is currently not supported out-of-the-box in the installer for example. You would simply need to replace how it is currently configured for JBossAS with the tomcat equivalent. To get you started, this is what you should do. If anyone wants to improve the installer script to support tomcat as well, I would gladly accept the help ;)
If you run the installer for JBossAS, it generates and copies various artefacts. You can get those to work on tomcat by doing:
copy the jbpm-gwt-console.war and jbpm-gwt-console-server.war to TOMCAT_HOME/webapps
rename jbpm-gwt-console.war to jbpm-console.war (so it shows up on http://localhost:8080/jbpm-console http://localhost:8080/jbpm-console
rename jbpm-gwt-console.war to gwt-console-server.war (so it shows up on http://localhost:8080/gwt-console-server http://localhost:8080/gwt-console-server
update TOMCAT_HOME/conf/tomcat-users.xml to include your users + roles
copy JBOSS_HOME/server/default/data/birt to TOMCAT_HOME/birt
copy h2.jar to TOMCAT_HOME/lib
update catalina.bat to set classpath variable jbpm.console.directory to the evaluation resources dir (unless you use guvnor as process repository)
copy all necessary dependencies that are not in the default tomcat classpath to TOMCAT_HOME/lib (or in the WEB-INF/lib folder of the gwt server war)
Kris
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/577010#577010]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 12 months
[jBPM] - Start a second process (Fire and forget)..
by Gary Pinkham
Gary Pinkham [http://community.jboss.org/people/garyp] created the discussion
"Start a second process (Fire and forget).."
To view the discussion, visit: http://community.jboss.org/message/578101#578101
--------------------------------------------------------------
Maybe I'm thinking of this the wrong way.. But I have the following requirement.. trigger a business process via web service.. handle a few steps then fire a second process and return immediately... IE: I don't want the client of the first process to wait for the second process to finish.. To accomplish this I had first created a custom action to send a JMS message to trigger the second process instance.. But since there was a sub process task in the jBPM I figured I'd use that instead.. save me the hassle of creating an esb entry to front the second process in the ESB.. But this doesn't seem to do a fire and forget (I had thought sync="true" would do this but the process still waits.)
So do you think I should use a JMS message or is there a way to accomplish with built in jBPM actions?
thanks!
Gary
..
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/578101#578101]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 12 months
[jBPM] - Custom handling for complete task event(Global for all tasks for all processes)
by prasad basutkar
prasad basutkar [http://community.jboss.org/people/peterbasutkar%40gmail.com] created the discussion
"Custom handling for complete task event(Global for all tasks for all processes)"
To view the discussion, visit: http://community.jboss.org/message/578050#578050
--------------------------------------------------------------
Hi All
Requirement : Custom Handling for Task Complete Event.
Description : I am using jbpm 3.2.6 and I have a requirement where I want to do some custom handling while completing the task , but at the same time I don’t want to add a custom TaskHandler or TaskController for taskCompletionEvent in the ProcessDefinition since I would have the overhead of specifying the following in every ProcessDefinition for every task
<task name="CustomControllerExample">
<controller class="com.yourcom.CustomControllerHandler">
-- here goes your task controller handler configuration --
</controller>
</task>
In other words I want to change the behavior of the jbpm server for handling all tasks completion. So is there any way that the jbpm server can call my java code for every task completion event?.
I found that I could achieve the same by adding my code in submitVariables() method of TaskInstance Class, but then I have to change the core jbpm code which I don’t want to do. As far as possible I want to use jbpm plugable configuration. I guess I could also do the same by creating my own task management module and specify it in the jbpm configuration file, but that would be a lot of change for just one line of custom code that I want to insert.
Dose any one have any suggestion to do this?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/578050#578050]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 12 months