[jBPM] - Single process instance
by Pavel Sknar
Pavel Sknar [http://community.jboss.org/people/pavel.sknar] created the discussion
"Single process instance"
To view the discussion, visit: http://community.jboss.org/message/597199#597199
--------------------------------------------------------------
I have spring config (JBPM 5.0 release):
<context:annotation-config/>
<bean id="processBuilderFactoryService" class="org.jbpm.process.builder.ProcessBuilderFactoryServiceImpl"/>
<bean id="processMarshallerFactoryService" class="org.flexpay.common.process.marshaller.ProcessMarshallerFactoryServiceImpl"/>
<bean id="processRuntimeFactoryService" class="org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl"/>
<bean id="bpmn2ProcessProvider" class="org.jbpm.bpmn2.BPMN2ProcessProviderImpl"/>
<bean name="initProcessBuilderFactory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" >
<property name="staticMethod" value="org.drools.compiler.ProcessBuilderFactory.setProcessBuilderFactoryService"/>
<property name="arguments">
<list>
<ref bean="processBuilderFactoryService"/>
</list>
</property>
</bean>
<bean name="initProcessMarshallerFactory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" >
<property name="staticMethod" value="org.drools.marshalling.impl.ProcessMarshallerFactory.setProcessMarshallerFactoryService"/>
<property name="arguments">
<list>
<ref bean="processMarshallerFactoryService"/>
</list>
</property>
</bean>
<bean name="initProcessRuntimeFactory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" >
<property name="staticMethod" value="org.drools.runtime.process.ProcessRuntimeFactory.setProcessRuntimeFactoryService"/>
<property name="arguments">
<list>
<ref bean="processRuntimeFactoryService"/>
</list>
</property>
</bean>
<bean name="initBPMN2ProcessFactory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean" >
<property name="staticMethod" value="org.drools.compiler.BPMN2ProcessFactory.setBPMN2ProcessProvider"/>
<property name="arguments">
<list>
<ref bean="bpmn2ProcessProvider"/>
</list>
</property>
</bean>
<drools:kstore id="knowledgeStore" />
<drools:kbase id="knowledgeBase">
<drools:resources>
</drools:resources>
<drools:configuration>
</drools:configuration>
</drools:kbase>
<drools:ksession id="jpaSingleSessionCommandService" type="stateful" kbase="knowledgeBase">
<drools:configuration>
<drools:jpa-persistence load="1">
<drools:transaction-manager ref="transactionManager" />
<drools:entity-manager-factory ref="entityManagerFactory" />
</drools:jpa-persistence>
</drools:configuration>
</drools:ksession>
I start some process instance in this StatefulKnowledgeSession session. Main thread is bloked in startProcess() while process instance not finish. When I try start process instance in child thread, but I can not get process from knowledge base: getKnowledgeBase().getProcess(processId). Main thread is blocked. What`s this? I wait more from jbpm 5. Where is parallel processes?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597199#597199]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
[Performance Tuning] - Generall Memory Question
by Andi Beckar
Andi Beckar [http://community.jboss.org/people/abeckar] created the discussion
"Generall Memory Question"
To view the discussion, visit: http://community.jboss.org/message/597091#597091
--------------------------------------------------------------
Hi there,
could anyone please explain the following to me.
Settings of my JVM: (jboss4.4.2 - java 1.5.0_10)
"-Xms128m -Xmx1536m -XX:MaxPermSize=512m -verbose:gc -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
# should be 2048MB
And this is what i see when the Machine is running a few hours:
--- snip cmd top ---
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7401 jboss 25 0 2802m 1.9g 291m S 39 11.8 33:14.50 java
--- snip cmd top END ---
why are the "RES" and the "VIRT" Mem even higher than my Setting tells the JVM to be ?
and how many jboss instances, with the above described JVM Settings, can i run on a single machine with 8GB RAM with the goal not to come in any SWAP Situations.
Thanks
Andi ;)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597091#597091]
Start a new discussion in Performance Tuning at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
[Beginner's Corner] - Fiji charts Update() doesn't work
by Zaheer Ahmed
Zaheer Ahmed [http://community.jboss.org/people/richfaceman] created the discussion
"Fiji charts Update() doesn't work"
To view the discussion, visit: http://community.jboss.org/message/597126#597126
--------------------------------------------------------------
Hi All
Has anyone had this error while using fiji charts with richfaces, I know reRender doesn't work here you have to use Update()
but that is exactly what i'm using still facing the error shown below. Does anyone have an Idea???
<h:form id="myForm">
<h:selectOneMenu id="monthTab1" value="#{dashBoardBean.monthOption}" style=" width: 90px; margin-top: 10px;">
<f:selectItems value="#{dashBoardBean.monthList}" />
<a4j:support event="onchange" action="#{annualBean.changeMonth}"
oncomplete="$('myForm:columnChartOne:component').update(); return false;" >
</a4j:support>
</h:selectOneMenu>
<fiji:columnChart id="columnChartOne" value="#{annualBean.dayMap}" barColors="#{annualBean.colors}" width="820" height="140" >
<fiji:chartData id="dayName" type="name" value="#{annualBean.names}" />
</fiji:columnChart>
</h:form>
*The Error;*
Transport Error
HTTPService error
stacktrace
faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError"
bubbles=false cancelable=false eventPhase=2 text="Error #2032"].
URL: /softofficeweb/faces/com/exadel/fiji/157c5c57-7d07-4ce6-98d0-
Many Thanks
Zed
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597126#597126]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
[JBoss Messaging] - jms-jca provider
by Pulokesh Goswami
Pulokesh Goswami [http://community.jboss.org/people/pulokesh] created the discussion
"jms-jca provider"
To view the discussion, visit: http://community.jboss.org/message/596805#596805
--------------------------------------------------------------
I have asked this question in ESB forum( http://community.jboss.org/message/595549#595549 http://community.jboss.org/message/595549#595549). They have redirected me here saying its a messaging bug. So I am posting this here again.
I have to esb applications in to machines exchanging messages. I am using JMS router to route messages between the application. As long as I use JMS provider its works fine. But I change the providers to jms-jca-provider the JMSRouter throws a javax.transaction.RollbackException and the message is not recieved by the other application.
Heres is my configuration for the revieving queue
<jms-jca-provider connection-factory="ConnectionFactory" name="JMSProviderMPInboundRLIJMS">
<jms-bus busid="JMSChannelMPInboundRLIJMS">
<jms-message-filter dest-name="queue/JMSQueueMPInboundRLIJMS" dest-type="QUEUE"/>
</jms-bus>
</jms-jca-provider>
My JMS router configuration looks like this
ConfigTree jmsConfig = new ConfigTree("JmsRouter");
jmsConfig.setAttribute("jndiName", "queue/JMSQueueMPInboundRLIJMS");
jmsConfig.setAttribute(JMSEpr.JNDI_URL_TAG ,"10.11.200.163:1099");
jmsConfig.setAttribute(JMSEpr.CONNECTION_FACTORY_TAG , "ConnectionFactory");
jmsConfig.setAttribute("unwrap" , "false");
jmsConfig.setAttribute(JMSRouter.PERSISTENT_ATTR , "true");
jmsConfig.setAttribute(JMSRouter.SECURITY_PRINCIPAL , "guest");
jmsConfig.setAttribute(JMSRouter.SECURITY_CREDITIAL , "guest");
I am using jboss-5.1.0.GA.
What can be the problem?
Here is the exception Log
14:46:40,750 ERROR [ExceptionUtil] ConnectionEndpoint[xf-1mbefnlg-1-2qv5enlg-n2unr5-f6k5ba] sendTransaction [lr1-m68xgnlg-1-2qv5enlg-n2unr5-f6k5ba]
javax.jms.IllegalStateException: Cannot find session with id vj2-h58xgnlg-1-oovzdnlg-79hlxi-j4k5ba
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.processTransaction(ServerConnectionEndpoint.java:835)
at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:489)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N3268650789275322226.invokeTarget(ConnectionAdvised$sendTransaction_N3268650789275322226.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:195)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.sendTransaction(ConnectionAdvised.java)
at org.jboss.jms.wireformat.ConnectionSendTransactionRequest.serverInvoke(ConnectionSendTransactionRequest.java:82)
at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
at org.jboss.remoting.Client.invoke(Client.java:1724)
at org.jboss.remoting.Client.invoke(Client.java:629)
at org.jboss.remoting.Client.invoke(Client.java:617)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$sendTransaction$aop(ClientConnectionDelegate.java:221)
at org.jboss.jms.client.delegate.ClientConnectionDelegate$sendTransaction_N3268650789275322226.invokeTarget(ClientConnectionDelegate$sendTransaction_N3268650789275322226.java)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
at org.jboss.jms.client.delegate.ClientConnectionDelegate.sendTransaction(ClientConnectionDelegate.java)
at org.jboss.jms.tx.ResourceManager.sendTransactionXA(ResourceManager.java:667)
at org.jboss.jms.tx.ResourceManager.commit(ResourceManager.java:367)
at org.jboss.jms.tx.MessagingXAResource.commit(MessagingXAResource.java:255)
at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelOnePhaseCommit(XAResourceRecord.java:811)
at com.arjuna.ats.arjuna.coordinator.BasicAction.onePhaseCommit(BasicAction.java:2656)
at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1784)
at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:94)
at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1423)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession$XATransactionDemarcationStrategy.end(JmsServerSession.java:657)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:243)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
14:46:40,754 ERROR [JmsServerSession] mailto:org.jboss.resource.adapter.jms.inflow.JmsServerSession@148226f org.jboss.resource.adapter.jms.inflow.JmsServerSession@148226f failed to commit/rollback
javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Could not commit transaction.
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1435)
at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:137)
at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession$XATransactionDemarcationStrategy.end(JmsServerSession.java:657)
at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:243)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/596805#596805]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
[Snowdrop] - Tld not found in jboss 6
by krikor kherberian
krikor kherberian [http://community.jboss.org/people/krikorkherberian] created the discussion
"Tld not found in jboss 6"
To view the discussion, visit: http://community.jboss.org/message/597056#597056
--------------------------------------------------------------
Hi, I had an application working in jboss 5. But in jboss 6 i encountered errors. I changed my spring libraries into newest spring libraries online, it fixed some issues. However, now I have problem with tld's not found.
In JbOSS 5 I didnt have this issue, I wrote tld folder in same level of web-inf, not inside it. When I reference to it on top of jsp page , it finds it in JBOSS 5 ( <%@ taglib uri="/tld/CustomSprinSecTags.tld" prefix="sec" %> ) . Howevr in Jboss 6, page crashes when i open it, saying tld not found.
When I changed this <%@ taglib uri="/tld/CustomSprinSecTags.tld" prefix="sec" %> into <%@ +taglib prefix="sec+" uri="http://www.springframework.org/security/tags" %> the page worked again. How can I solve this issue, and make tld's be found.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/597056#597056]
Start a new discussion in Snowdrop at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months