[jBPM] - JBPM's persistence reusing existing connection
by Andres Fernandez
Andres Fernandez [http://community.jboss.org/people/ysh_fdez] created the discussion
"JBPM's persistence reusing existing connection"
To view the discussion, visit: http://community.jboss.org/message/642435#642435
--------------------------------------------------------------
Hello, I'm trying to introduce a jBPM project successfully. We want to enable jBPM's persistence. The examples are intended to make a new connection to the database for jBPM. My application is using Hibernate already, and it creates the connection to the database. I can not accept two simultaneous connections, one of them just to jBPM. Ideally, jBPM reuses the existing connection.
Specifically is it enough with the object org.hibernate.Session order to jBPM realice its operations persistence?
I suppose that have a application with a database's connection and want to jBPM reuses the same connection, should be common. However, as the documentation and examples I see, they create new connection to jBPM. It makes me wonder if I'm wrong concepts and considering incorrectly the need to share the connection.
Can anyone give me any advice or warn me if I am engaged in a wrong way?
Thank you for your wisdom :)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/642435#642435]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[Beginner's Corner] - Jboss server startup issue (JNDI thread)
by sid3
sid3 [http://community.jboss.org/people/sid3] created the discussion
"Jboss server startup issue (JNDI thread)"
To view the discussion, visit: http://community.jboss.org/message/642605#642605
--------------------------------------------------------------
Hi All,
I have installed *Oracle 11gR2* as my database server on a *RHEL 6 machine*, and my *JBoss SOA suite 5.2* on another *RHEL 6* machine. I have checked that my *database is up and running and also its listener is up* and ready to listen. So the problem here is, whenever I try to startup my Jboss server it gets *stuck at +[NamingHelper] JNDI InitialContext properties:{}+* it waits on this thread for long time arund 30mins and then errors out with
Ora-12159 :TNS no appropriate service found.
I have checked everything from the *oracle side and all looks good* even the service name used to connect to the database is correct. So this is surely a JBoss side error I think. And hence need to know what exactly is the problem. Please help, for reference i have *attached the screen shot of my Jboss server startup error*. Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/642605#642605]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[JBoss Web Services] - How can I use JBossWS-Native with JBoss 7.1?
by Amit Yadav
Amit Yadav [http://community.jboss.org/people/yadavamit] created the discussion
"How can I use JBossWS-Native with JBoss 7.1?"
To view the discussion, visit: http://community.jboss.org/message/642443#642443
--------------------------------------------------------------
While migrating a web service application from JBoss-4.2.3 to JBoss7.1, it gives below exception:
17:49:28,975 DEBUG [org.jboss.modules] (MSC service thread 1-2) Module org.jboss.ws.jaxws-jboss-httpserver-httpspi:main defined by local module loader @1394894 (roots: C:\jboss-7.1.0\modules)
17:49:29,522 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://www.nsn.com/top/schemas}TOPServerService from WSDL: WEB-INF/wsdl/tops
1. erver.wsdl
17:49:29,866 FINE [org.apache.cxf.resource.DefaultResourceManager] (MSC service thread 1-2) resolving resource <WEB-INF/wsdl/topserver.wsdl> as stream
17:49:29,866 FINE [org.apache.cxf.resource.DefaultResourceManager] (MSC service thread 1-2) resolving resource <WEB-INF/wsdl/topserver.wsdl> type <class java.net.URL>
17:49:30,382 INFO [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointInfo] (MSC service thread 1-2) Setting new service endpoint address in wsdl: http://webopa.nat.myrio.net:8085/top/topserve
r
17:49:30,679 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-2) remove: jboss.ws:context=top,endpoint=topserver
17:49:30,679 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."opa_pia.ear"."opa_pia.war".INSTALL: org.jboss.msc.service.StartExce
ption in service jboss.deployment.subunit."opa_pia.ear"."opa_pia.war".INSTALL: Failed to process phase INSTALL of subdeployment "opa_pia.war" of deployment "opa_pia.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Beta1b.jar:]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
Caused by: javax.xml.ws.WebServiceException: java.lang.NullPointerException
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:350)
at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509)
at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:109)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:132)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Beta1b.jar:]
... 5 more
Caused by: java.lang.NullPointerException
at org.apache.cxf.common.util.ASMHelper.getClassCode(ASMHelper.java:91)
at org.apache.cxf.jaxws.WrapperClassGenerator.generateMessagePart(WrapperClassGenerator.java:326)
at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:239)
at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:142)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:661)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:630)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:394)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:505)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:202)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)
... 13 more
It seems JBoss7.1 uses CXF by default.
Can anyone tell me how can I override CXF support by JBossWS-Native?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/642443#642443]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
Re: [jboss-user] [jBPM] - jBPM5 Developer Guide – Request for Feedback
by Maciej Swiderski
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] commented on the document
"jBPM5 Developer Guide – Request for Feedback"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-17427#comment-8617
--------------------------------------------------
Mauricio, as the book is developer's guide so I think it should be more from technical perspective. Mainly to illustrate:
- BAM - how to access history information (what was already executed even if the process instance is not finished yet).
- Tooling - dynamicity and versioning when using Guvnor/Designer and jBPM console
- Tooling - new features of designer - generate forms (maybe even form builder), service repository import
Does that sound suitable for the book?
Cheers
--------------------------------------------------
13 years, 1 month
[jBPM] - jBPM as a webservice
by Prasanth Manchambhatla
Prasanth Manchambhatla [http://community.jboss.org/people/pmancham] created the discussion
"jBPM as a webservice"
To view the discussion, visit: http://community.jboss.org/message/641343#641343
--------------------------------------------------------------
I have seen some old discussions on this topic and looks like the best way to do this is to wrap it into a service and expose it ourselves. If anyone has written webservice that allows your users to
1.a) Start a stateful process
1.b) Add facts to a running stateful process
then I would like to know how you solved the following problem
2.a) Forwarding requests of type (1.b) to the server that is running that process (and not to some other server in the cluster)
One solution could be: To just add the request of type 1.b to database and have background jobs on each server in the cluster to poll database and see if there are any outstanding requests of type 1.b for only those processes that are running on that particular server.
I want to know of any solutions that are working for others.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/641343#641343]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month