[JBoss jBPM] - Simple process not ending.
by srsuarez
I execute my business process using the following code:
Code:
GraphSession graphSession = jbpmContext.getGraphSession();
log.debug("Finding process definition: MyProcess");
ProcessDefinition processDefinition = graphSession.findLatestProcessDefinition
("MyProcess");
log.debug("Creating new process instance: MyProcess");
ProcessInstance processInstance = new ProcessInstance(processDefinition);
log.debug("Saving process instance: MyProcess");
jbpmContext.save(processInstance);
og.debug("Executing business process: MyProcess");
processInstance.signal();
log.debug("Is process ended? " + processInstance.hasEnded());
log.debug("Saving process instance: MyProcess");
jbpmContext.save(processInstance);
String status = (String) processInstance.getContextInstance().getVariable(PVAR_engineStatus);
log.info("return=" + status);
My code here and the code in the node action in my business process execute successfully, without any errors. However, the problem is that the process shows that it has not ended -- the processInstance.hasEnded() method returns false, and the process instance saved to the database also shows that the process has not yet ended. Again, there are no wait states in this business process, and there are transitions from start to my node to the end. Why isn't my business process showing that it has ended?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997116#3997116
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997116
18 years
[Security & JAAS/JBoss] - JAAS: LoginModule questions
by Steve++
I'm writing a custom LoginModule, which raises a few questions:
1. Is it possible to package a custom LoginModule implementation on a per-application basis, or does it only work server-wide?
2. Assuming a server-wide LoginModule, is it possible to have a separate login-congig.xml per application? If so, what is its relationship to the server-wide login-config.xml (i.e. which one overrides that other one in the event of conflicts)?
3. Does a LoginModule implementation automatically have the necessary security clearance to use any restricted session beans (i.e. beans annotated with @RolesAllowed) and/or session bean methods? I ask this because I want my LoginModule implementation to use a stateless session bean to access login data.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997111#3997111
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997111
18 years
[EJB 3.0] - how to start!
by woodmawa
I've been having a play with hibernate entity manager, and annotations in standalone mode,
I then thought i'd make the next step the embedded ejb3 server - but still without a full AS. (take things small step at a time).
I got the ejb3 RC9 and RC9.1 zips and unzipped them into a jboss root folder.
I then included all the jars in the /lib and ejb3.deployer foolders into the eclipse class path
I then tried to but i cant figure out what next. I tried to copy some sample programme from the hibernate persistence chapter 2 thats on the web.
| public class NeilsApp2 {
|
| import org.jboss.ejb3.embedded.EJB3StandaloneBootstrap;
| import javax.naming.InitialContext;
| public class HelloWorld {
| public static void main(String[] args) throws Exception {
| // Boot the JBoss Microcontainer with EJB3 settings, automatically
| // loads ejb3-interceptors-aop.xml and embedded-jboss-beans.xml
| EJB3StandaloneBootstrap.boot(null);
| // Deploy custom stateless beans (datasource, mostly)
| EJB3StandaloneBootstrap
| .deployXmlResource("META-INF/helloworld-beans.xml");
| // Deploy all EJBs found on classpath (slow, scans all)
| // EJB3StandaloneBootstrap.scanClasspath();
| // Deploy all EJBs found on classpath (fast, scans build directory)
| // This is a relative location, matching the substring end of one
| // of java.class.path locations. Print out the value of
| // System.getProperty("java.class.path") to see all paths.
| EJB3StandaloneBootstrap.scanClasspath("helloworld-ejb3/bin");
| // Create InitialContext from jndi.properties
| Listing 2.16 ?Hello World? main application code, calling EJBs
| Starting a Java Persistence project 85
| InitialContext initialContext = new InitialContext();
| // Look up the stateless MessageHandler EJB
| MessageHandler msgHandler = (MessageHandler) initialContext
| .lookup("MessageHandlerBean/local");
| // Call the stateless EJB
| msgHandler.saveMessages();
| msgHandler.showMessages();
| // Shut down EJB container
| EJB3StandaloneBootstrap.shutdown();
| }
|
this as cut and pasted. Eclipse says it cant find resolution for the imports. In particular i cant find any jar file with an org.jboss.ejb3.embedded package in it.
I dont understand what else i'm missing.
I downloaded the jboss5 beta - however if i try and use jboss IDE to create a server it only sees version4. I pointed it at the jboss5 server anyhow in default and all modes. HOwever if i try and create an ejb3 project in eclipse - it says the server doesnt have the required ejb3 jars. so i've gone no further down this route at present.
Any how i wanted the embbedded version outside of an AS first. So what am i supposed to do to get the ejb3 embedded version up and running.
The chapter2 words imply their is an embedded-jboss-beans.xml file but i cant find that in the rc9.1 extract. Do you have to have the full AS as well as the ejb3 files?
Any help?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997109#3997109
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997109
18 years
[Beginners Corner] - ERROR [org.jboss.ejb.plugins.jms.DLQHandler ] Initialization
by ramdatta
HI All,
deleted the DB schema.
Created and imported the DB..
When try to start the server "run.bat" (on windows xp - jboss 3.2.4) - DB -Oracle 9i
Server.log showing the following exception..
Pls let me know how can i troubleshooot...
2007-01-01 09:23:36,046 INFO [org.jboss.ejb.EjbModule] Deploying EventCascaderMDB
2007-01-01 09:23:36,046 INFO [org.jboss.ejb.EjbModule] Deploying ExternalInterfacesMDB
2007-01-01 09:23:39,216 INFO [org.jboss.ejb.EJBDeployer ] Deployed: file:/F:/jboss/jboss-3.2.4/server/powercompdocdev2/tmp/deploy/tmp42379powercomp.ear-contents/webcomponent.jar
2007-01-01 09:23:39,388 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/F:/jboss/jboss-3.2.4/server/powercompdocdev2/tmp/deploy/tmp42379powercomp.ear-contents/extintfdatatransformer.jar
2007-01-01 09:23:43,417 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/F:/jboss/jboss-3.2.4/server/powercompdocdev2/tmp/deploy/tmp42379powercomp.ear-contents/bill.jar
2007-01-01 09:23:44,713 ERROR [org.jboss.ejb.plugins.jms.DLQHandler ] Initialization failed DLQHandler
javax.jms.JMSException: Error creating the dlq connection: XAConnectionFactory not bound
at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:171)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate (ServiceMBeanSupport.java:237)
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle (ServiceMBeanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke (Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch (Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke (MBeanServerImpl.java:473)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997108#3997108
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997108
18 years