Re: [jboss-user] [jBPM Development] - Close ProcessEngine upon BPM console undeployment
by Maciej Swiderski
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion
"Close ProcessEngine upon BPM console undeployment"
To view the discussion, visit: http://community.jboss.org/message/550455#550455
--------------------------------------------------------------
> Alejandro Guizar wrote:
>
> The process engine needs to be closed by the module that created it. In JBoss AS this is already covered since jBPM is deployed as a service. The JbpmService bean correctly closes the engine on stop.
I agree if you deploy jbpm and console as stand alone process engine, but what in case when there is application (user webapp) using jbpm and console is only for administration purpose and does not need to be running all the time? Then in my opinion web app should be the owner of the process engine and not the console. This is what I meant in my previous post.
> Alejandro Guizar wrote:
> > If it comes to probable solution, we could register listeners (ServletContectListeners) for console to close down process engine on application destroy.
> This would be an option if the shared ProcessEngine could be closed on servlet context destruction, which is not possible as said before. If the servlet context listener built its own unshared engine on initialization, it could close it on destruction. Unfortunately such an engine is unreachable for the console integration components. In a typical web app it would be set as an attribute of the servlet context, but the servlet context itself is unreachable as well.
I was thinking that it could be treated as configuration option (for example using JVM parameters) if ServletContext shall start and destroy process engine. In such case it won't be only Tomcat specific solution but could be used by any other J2EE application server.
It will be probably used when running jbpm embedded in web application, once the web app is deployed console will use already created process engine.
> Alejandro Guizar wrote:
>
> One promising alternative I want to investigate is the Tomcat http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#Adding%... custom resource factory. There is http://community.jboss.org/wiki/UsingJNDI-boundSessionFactorywithTomcat41 prior art in this direction involving the Hibernate session factory.
This sounds really good. Looking forward to results of your investigation.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550455#550455]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[JBoss Remoting] - Trying to Understand Class Loading
by Kyle Thielk
Kyle Thielk [http://community.jboss.org/people/Fender963] created the discussion
"Trying to Understand Class Loading"
To view the discussion, visit: http://community.jboss.org/message/550427#550427
--------------------------------------------------------------
I'm a little lost and trying to find answers but am struggling, so please forgive me if anything appears...well stupid.
I am trying to follow the org.jboss.remoting.samples.transporter.serialization and incorporate it into a seam project I have deployed as an ear. In other words the server side will be running within the seam application and client side will be a standalone distributed as a jar.
I have gotten it working with built in types i.e a String.
So change method footprint from:
`
public Order processOrder(Order order)
`
to
`
public String processOrder(String text)
`
I can call from the Client side just fine:
`
OrderProcessor orderProcessor = (OrderProcessor) TransporterClient.createTransporterClient(locatorURI, OrderProcessor.class);
System.out.println("Order to be processed: " + order);
String resultString = orderProcessor.processOrder("My Text");
`
and get back a result.
However if I try to use a custom object, like Order. I get ClassNotFoundException on the server side. How do I configure JBoss to use the classes deployed in my ear file? What confuses me is I have deployed the server transporter in my ear file as well as Order.class, however Order.class can't be found. I have tried following the instructions here: http://docs.jboss.org/jbossremoting/docs/guide/2.2/html/ch07.html http://docs.jboss.org/jbossremoting/docs/guide/2.2/html/ch07.html but I think that I am misunderstanding the purpose of those instructions.
Can anyone clarify this for me?
Thank you!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/550427#550427]
Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months