[JBoss jBPM] - Re: Indentityservice- Jbpm4
by shekharv
I was working against CR1 code. I do not have a build of current trunk to comment on whether or not it works,
Did you try against CR1?
Is there a particular reason to go against trunk code directly? Something you cannot wait to use till it is officially out :) ?.
I will let you know if I see anything,
Regarding the solution that you were trying out, it is not something that would not work, but it is not something I would do.
It still ties in your application domain a little too close to that of the jbpm domain. Ideally you would want them to be separated out and joined together only in a more versatile 'service' or 'application' layer.
It would just be too tough to change anything about the users going down the line, which at some point or the other, always happens.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240577#4240577
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240577
15 years
[EJB 3.0] - ServiceBean and depends clause - Help Please
by rnicholson10
Ok,
I have a Service Bean in a jar file called: phase-input.jar
This jar also contains a stateless timer bean (SourceBridgeCheckTimerBean). The service bean is dependent on the timer bean.
So when deploying this jar in it's own EAR file the @ depends clause in the Service Bean looks like this:
| @Service
| @Local(InputServiceBeanLocal.class)
| @Remote(InputServiceBeanRemote.class)
| @Management(InputServiceBeanManagement.class)
| @Depends(value={"jboss.messaging.destination:service=Queue,name=phaseQueueToEngine",
| "jboss.j2ee:ear=phase-input.ear,jar=phase-input.jar,name=SourceBridgeCheckTimerBean,service=EJB3"})
|
But this jar is supposed to be a service deployed on many different servers in different applications.
When I create a new EAR called phase-test.ear the depends fails because the clause should now look like this:
| @Depends(value={"jboss.messaging.destination:service=Queue,name=phaseQueueToEngine",
| "jboss.j2ee:ear=phase-test.ear,jar=phase-input.jar,name=SourceBridgeCheckTimerBean,service=EJB3"})
|
I would need to recompile phase-input.jar to change this. In fact, I would need to recompile it for every different EAR I want to add it to.
Furthermore, the JNDI name of the local interface to SourceBridgeCheckTimerBean changes from this:
| phase-input/SourceBridgeCheckTimerBean/local
|
to
| phase-test/SourceBridgeCheckTimerBean/local
|
Two questions:
1) How do I put SourceBridgeCheckTimerBean into JNDI with a common name so no matter what EAR it resides in I can call it in a common way (not another EJB, I'm calling it in a POJO so have to do a JNDI lookup)?
2) Similarly, how do I depend on my timer bean in the Service bean no matter what EAR file it's part of?
Note: there will only ever be one Input Service Bean on any JBoss instance.
Or is the solution to deploy my Input service bean in it's own jar directly into the deploy directory. In this case can I access the service bean on the local interface as it's not deployed in the same ear as the application?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240565#4240565
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240565
15 years
[JBoss jBPM] - Re: Help needed in deploying 'par' to JBoss server
by kukeltje
anonymous wrote :
| -> Now the Code runs successfully without any errors but the file is not deployed when i checked in jBPM console.
| -> I tried to get the list of process definitions. The size of List is found to be ZERO. This means that my code is not able to reach the jBPM hypersonic DB.
You try to retrieve the processdefinition list in the same application where you deploy the definition? If so, is that after the context is closed and reopened? If not, try this.
anonymous wrote : I used these two methods.
| O ProcessDefinition.parseParZipInputStream
| O deployProcessDefinition
|
| What is the jBPM class that i should actually use ?
|
These are fine, no problem.
anonymous wrote : Is there a jBPM community article that discuss this scenario ?
Not specifically, but all the jBPM unittests do it this way, but you are on the right track.
anonymous wrote : How can i gain visiblity to the jBOSS deployment directory
| The JBoss deployment directory has nothing to do with deploying processdefinitions, at least not in jBPM 3
anonymous wrote :
| and connectivity to the jBPM database ?
|
Turn on the debug level of jBPM and hibernate to see if there is something going on
anonymous wrote :
| Do i need to specify somewhere, like the jBPM database used & server path in a config file ?
If this is from eclipse, yes, you have to configure this in the hibernate.cfg.xml file
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240553#4240553
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240553
15 years