[jBPM] - How to do automatic transition from one state node to any other node
by Felix Jose
Felix Jose [http://community.jboss.org/people/FelixKJose] created the discussion
"How to do automatic transition from one state node to any other node"
To view the discussion, visit: http://community.jboss.org/message/539086#539086
--------------------------------------------------------------
Hi All,
I am having a process definition as follows:
<?xml version="1.0" encoding="UTF-8"?>
<process name="ReserchPage" xmlns=" http://jbpm.org/4.3/jpdl http://jbpm.org/4.3/jpdl">
<start name="start" g="38,19,48,48">
<transition name="to Research" to="research" g="-54,-18"/>
</start>
<state name="research" g="207,17,141,52">
<transition name="to check number of Entities present in WebPage" to="checknumOfEntities" g="-55,-21"/>
</state>
<java g="230,327,138,40" method="checkNumOfEntities" name="checknumOfEntities">
<transition name="to end" to="end" g="-81,-18"/>
</java>
....
</process>
Can anybody please let me know how the automatic transition can make from <state name="research"...> to <java....name="checknumOfEntities> without using an external signaling using executionService.signalExecutionIn() method.
In the older versions of JBPM we were having the option of using an ActionHandler and from its execute method we were abot to signal to the next transition. But using JBPM-4.3 even a single tansition is not able to done a auto transition?
Please help me on this.
And one more question why the ActionHandler is got removed in this version?
I am expecting a quick reply from anyone of you.
Thank You very much,
With Regards,
Felix K Jose
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539086#539086]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
[JNDI and Naming] - javax.naming.NameNotFoundException: Name not found
by Rama Krishna Sarraju
Rama Krishna Sarraju [http://community.jboss.org/people/sarraju] created the discussion
"javax.naming.NameNotFoundException: Name not found"
To view the discussion, visit: http://community.jboss.org/message/539085#539085
--------------------------------------------------------------
Hi ,
I have integrated JBoss 5.1.0-GA and Tibco EMS(Remote) on SSL as per the TibcoIntegration Document. After completing all the required configs, I am getting the following exception when I deploy my ear (which contains a MDB).
All the configuration is given below , can someone please tell me what is going wrong here:
Exception:
2010-04-22 13:14:48,574 INFO [org.jboss.resource.adapter.jms.inflow.JmsActivation] (WorkManager(2)-2) Attempting to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@4b91e7(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)1a6463c destination=myremote.queue.incoming destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/TibcoJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=false)
2010-04-22 13:14:48,677 ERROR [org.jboss.resource.adapter.jms.inflow.JmsActivation] (WorkManager(2)-2) Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@4b91e7(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)1a6463c destination=myremote.queue.incoming destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/TibcoJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=false)
javax.naming.NameNotFoundException: Name not found: 'SSLXAQueueConnectionFactory'
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:736)
at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:516)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jboss.util.naming.Util.lookup(Util.java:222)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupQueueConnection(JmsActivation.java:525)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupConnection(JmsActivation.java:506)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:353)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:292)
at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:733)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
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)
*jboss/server/default/deploy/messaging/tibco-jms-ds.xml:*
<!-- =================== TIBCO EMS JMS provider loader ================== -->
<connection-factories>
<mbean code="org.jboss.jms.jndi.JMSProviderLoader" name=":service=JMSProviderLoader,name=TibjmsProvider">
<attribute name="ProviderName">TibcoJMSProvider</attribute>
<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
<attribute name="QueueFactoryRef">SSLXAQueueConnectionFactory</attribute>
<attribute name="TopicFactoryRef">XATopicConnectionFactory</attribute>
<attribute name="Properties">
java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory
java.naming.provider.url=tibjmsnaming://tibco-ems-server:7222
java.naming.factory.url.pkgs=com.tibco.tibjms.naming
</attribute>
<!-- attribute name="ProviderUrl">tibjmsnaming://tibco-ems-server:7222</attribute -->
</mbean>
<!-- Redirect QueueConnectionFactory to TIBCO Enterprise Message Service -->
<mbean code="org.jboss.naming.NamingAlias" name="DefaultDomain:service=NamingAlias,fromName=SSLXAQueueConnectionFactory">
<attribute name="ToName">tibjmsnaming://tibco-ems-server:7222/SSLXAQueueConnectionFactory</attribute>
<attribute name="FromName">SSLXAQueueConnectionFactory</attribute>
</mbean>
<mbean code="org.jboss.naming.NamingAlias" name="DefaultDomain:service=NamingAlias,fromName=ConnectionFactory">
<attribute name="ToName">tibjmsnaming://tibco-ems-server:7222/SSLXAQueueConnectionFactory</attribute>
<attribute name="FromName">ConnectionFactory</attribute>
</mbean>
<tx-connection-factory>
<jndi-name>JmsXA</jndi-name>
<xa-transaction></xa-transaction>
<rar-name>jms-ra.rar</rar-name>
<connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
<config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Queue</config-property>
<config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/TibcoJMSProvider</config-property>
<max-pool-size>20</max-pool-size>
<security-domain-and-application>JmsXARealm</security-domain-and-application>
<!--
<config-property name="UserName" type="java.lang.String">user</config-property>
<config-property name="Password" type="java.lang.String">password</config-property>
-->
</tx-connection-factory>
</connection-factories>
<!-- ==================================================================== -->
*jboss/server/default/conf/jndi.properties:*
*java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces:com.tibco.tibjms.naming
com.tibco.tibjms.naming.security_protocol=ssl
com.tibco.tibjms.naming.ssl_enable_verify_host=false
com.tibco.tibjms.naming.ssl_enable_verify_host_name=false
com.tibco.tibjms.naming.ssl_vendor=j2se-default
com.tibco.tibjms.naming.ssl_trusted_certificate=my.pem
com.tibco.tibjms.naming.ssl_identity=my.p12
com.tibco.tibjms.naming.ssl_password=password
com.tibco.tibjms.naming.ssl_trace=false
com.tibco.tibjms.naming.ssl_debug_trace=false
Annotations used in MDB:
@MessageDriven(activationConfig =
{
@ActivationConfigProperty (propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty (propertyName="destination", propertyValue="myremote.queue.incoming"),
@ActivationConfigProperty (propertyName="useDLQ", propertyValue="false"),
@ActivationConfigProperty(
propertyName="providerAdapterJNDI",
propertyValue="java:/TibcoJMSProvider")
})
MDB/META-INF/jboss.xml:
<?xml version="1.0" encoding="utf-8"?>
<jboss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd" version="3.0">
<resource-managers>
<resource-manager>
<res-name>queuefactoryref</res-name>
<res-jndi-name>java:/JmsXA</res-jndi-name>
</resource-manager>
</resource-managers>
<enterprise-beans>
<message-driven>
<ejb-name>MyMDB</ejb-name>
<destination-jndi-name>myremote.queue.incoming</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<resource-name>queuefactoryref</resource-name>
</resource-ref>
</message-driven>
</enterprise-beans>
</jboss>
*MDB/META-INF/ejb-jar.xml:
*
<?xml version="1.0" encoding="UTF-8"?><ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd" version="3.0"> <description>EJB Module</description> <display-name>EJB Module</display-name> <enterprise-beans> <message-driven> <ejb-name>MyMDB</ejb-name> <message-destination-type>javax.jms.Queue</message-destination-type> <message-destination-link>myremote.queue.incoming</message-destination-link> <resource-ref> <res-ref-name>jms/QCF</res-ref-name> <res-type>javax.jms.QueueConnectionFactory</res-type> <resource-name>queuefactoryref</resource-name> </resource-ref> <resource-env-ref> <resource-env-ref-name>myremote.queue.incoming</resource-env-ref-name> <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type> </resource-env-ref> </message-driven> </enterprise-beans> <assembly-descriptor> </assembly-descriptor></ejb-jar> jboss/server/default/conf/standardjboss.xml: <invoker-proxy-binding> <name>message-driven-bean</name> <invoker-mbean>default</invoker-mbean> <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory> <proxy-factory-config> <JMSProviderAdapterJNDI>TibcoJMSProvider</JMSProviderAdapterJNDI> <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI> <CreateJBossMQDestination>false</CreateJBossMQDestination> <!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed --> <MinimumSize>1</MinimumSize> <MaximumSize>15</MaximumSize> <KeepAliveMillis>30000</KeepAliveMillis> <MaxMessages>1</MaxMessages> </proxy-factory-config> </invoker-proxy-binding> <invoker-proxy-binding> <name>message-driven-bean</name> <invoker-mbean>default</invoker-mbean> <proxy-factory>org.jboss.ejb.plugins.inflow.JBossJMSMessageEndpointFactory</proxy-factory> <proxy-factory-config> <activation-config> <activation-config-property> <activation-config-property-name>providerAdapterJNDI</activation-config-property-name> <activation-config-property-value>TibcoJMSProvider</activation-config-property-value>....... <invoker-proxy-binding> <name>singleton-message-driven-bean</name> <invoker-mbean>default</invoker-mbean> <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory> <proxy-factory-config> <JMSProviderAdapterJNDI>TibcoJMSProvider</JMSProviderAdapterJNDI> <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI> <CreateJBossMQDestination>false</CreateJBossMQDestination> <!-- WARN: Don't set this to zero until a bug in the pooled executor is fixed --> <MinimumSize>1</MinimumSize> <MaximumSize>1</MaximumSize> <KeepAliveMillis>30000</KeepAliveMillis> <MaxMessages>1</MaxMessages> </proxy-factory-config> </invoker-proxy-binding> <invoker-proxy-binding> <name>jms-message-inflow-driven-bean</name> <invoker-mbean>default</invoker-mbean> <proxy-factory>org.jboss.ejb.plugins.inflow.JBossJMSMessageEndpointFactory</proxy-factory> <proxy-factory-config> <activation-config> <activation-config-property> <activation-config-property-name>providerAdapterJNDI</activation-config-property-name> <activation-config-property-value>TibcoJMSProvider</activation-config-property-value> </activation-config-property>.....
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539085#539085]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
[jBPM Development] - The deployment location of the Archive
by Sameer Tiwari
Sameer Tiwari [http://community.jboss.org/people/sameerlt1983] created the discussion
"The deployment location of the Archive"
To view the discussion, visit: http://community.jboss.org/message/539062#539062
--------------------------------------------------------------
Hi,
I have used the jbpm-jpdl-3.2.3 version and when i create a process project and deploy it deploys successfully. But when i try to change the state from the Jboss-console it gives me an error which is as mentioned below:
8:28:01,921 ERROR [[GDP Deployer Servlet]] Servlet.service() for servlet GDP Deployer Servlet threw exception
rg.jbpm.jpdl.JpdlException: [[ERROR] line 25: cvc-complex-type.2.4.a: Invalid content was found starting with element 'transition'. One of '{" http://jbpm.org/3/jpdl http://jbpm.org/3/jpdl":event, " http://jbpm.org/3/jpdl http://jbpm.org/3/jpdl":timer, " http://jbpm.org/3/jpdl http://jbpm.org/3/jpdl":exception-handler}' is expected.]
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:178)
at org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:51)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:197)
at org.jbpm.web.ProcessUploadServlet.handleRequest(ProcessUploadServlet.java:91)
at org.jbpm.web.ProcessUploadServlet.service(ProcessUploadServlet.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
8:34:59,781 ERROR [Delegation] couldn't load delegation class 'com.sample.decision.Verifyorder'
ava.lang.ClassNotFoundException: class 'com.sample.decision.Verifyorder' could not be found by the process classloader
at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:118)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140)
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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.instantiation.Delegation_$$_javassist_11.instantiate(Delegation_$$_javassist_11.java)
at org.jbpm.graph.node.Decision.execute(Decision.java:87)
at org.jbpm.graph.def.Node.enter(Node.java:318)
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.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
I am attaching my par file with this. also i have the in this i have used few handler class. basically its the example that i am trying to execute from the link:
http://www.mastertheboss.com/en/jbpm/51-jbpm-tutorial-part-1.html http://www.mastertheboss.com/en/jbpm/51-jbpm-tutorial-part-1.html
*
*
*I have annother question where does the deployment happen, where can i see the deployed class or archive.*
Thanks
Sameer
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539062#539062]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years
Re: [jboss-user] [JBoss Microcontainer Development] - JBoss Reflect Performance Javassist vs Introspection
by Andrew Rubinger
Andrew Rubinger [http://community.jboss.org/people/ALRubinger] replied to the discussion
"JBoss Reflect Performance Javassist vs Introspection"
To view the discussion, visit: http://community.jboss.org/message/539057#539057
--------------------------------------------------------------
ie:
/**
* {@link LifecycleEventHandler} implementation to set the jboss-reflect
* {@link RepositoryClassPoolFactory}. Must be called before MC is brought up.
*
* @author <a href="mailto:andrew.rubinger@jboss.org">ALR</a>
*/
public enum SetClassPoolLifecycleEventHandler implements LifecycleEventHandler {
INSTANCE;
//-------------------------------------------------------------------------------------||
// Class Members ----------------------------------------------------------------------||
//-------------------------------------------------------------------------------------||
/**
* Logger
*/
private static final Logger log = Logger.getLogger(SetClassPoolLifecycleEventHandler.class);
//-------------------------------------------------------------------------------------||
// Required Implementations -----------------------------------------------------------||
//-------------------------------------------------------------------------------------||
/**
* {@inheritDoc}
* @see org.jboss.bootstrap.api.lifecycle.LifecycleEventHandler#handleEvent(org.jboss.bootstrap.api.lifecycle.LifecycleState)
*/
@Override
public void handleEvent(final LifecycleState state) throws LifecycleEventException
{
/*
* Make sure we have the correct classpool
*/
final RepositoryClassPoolFactory factory = new RepositoryClassPoolFactory(ClassPoolRepository.getInstance());
JavassistTypeInfoFactoryImpl.setPoolFactory(factory);
if (log.isTraceEnabled())
{
log.tracef("Set %s pool factory to %s", JavassistTypeInfoFactoryImpl.class.getSimpleName(), factory);
}
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539057#539057]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years