[JBoss AS 7 Development] - Modular Service Container - optimal threadpool size
by Dimitris Andreadis
Dimitris Andreadis [http://community.jboss.org/people/dimitris] modified the document:
"Modular Service Container - optimal threadpool size"
To view the document, visit: http://community.jboss.org/docs/DOC-17410
--------------------------------------------------------------
AS7 boots with MSC configured to use a threadpool size of double the number of available processors.
Boot time results after the 2nd run (so the filesystem cache is initalized) on my machine (Win7, Intel i7 Q740, 4G, SSD), with the org.jboss.server.bootstrap.maxThreads set by default set to 16.
|| *config
* || *16 (default)
* || *8
* || *4
* || *3
* || *2
* || *1
* ||
| standalone.xml | 2690ms | 2657ms | 2658ms | 2683ms | 2667ms | 2694ms |
|
| standalone-full.xml | 2964ms | 2939ms | 2922ms | 2955ms | 2981ms | 3336ms |
|
| standalone-ha.xml | 3413ms | 3324ms | 3352ms | 3351ms | 3415ms | 4014ms |
|
| standalone-osgi-only.xml | 1803ms | 1721ms | 1868ms | 1792ms | 1950ms | 1940ms |
|
| standalone-xts.xml | 5907ms | 6087ms | 5919ms | 5810ms | 6042ms | 7725ms |
|
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-17410]
Create a new document in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
14 years, 3 months
[jBPM Development] - Creating process dynamically using Fluent API
by Sanket Mohile
Sanket Mohile [http://community.jboss.org/people/sanket.mohile] created the discussion
"Creating process dynamically using Fluent API"
To view the discussion, visit: http://community.jboss.org/message/640100#640100
--------------------------------------------------------------
Hi,
I want to create a process dynamically using Fluent API.
I tried this -
RuleFlowProcessFactory factory = RuleFlowProcessFactory.createProcess("com.sample.process");
factory
// Header
.name("HelloWorldProcess")
.version("1.0")
.packageName("defaultPackage")
// Nodes
.startNode(1)
.name("Start")
.done()
.actionNode(2)
.name("Action")
.action("java", "System.out.println(\"Hello World\");")
.done().
endNode(3)
.name("End")
.done()
// Connections
.connection(1, 2)
.connection(2, 3);
But when I start the process, I get an exception
java.lang.RuntimeException: unable to execute Action
at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:49)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)
at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)
at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:302)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:154)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:124)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:116)
at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1090)
at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:301)
at com.sample.Example1.main(Example1.java:57)
Caused by: java.lang.NullPointerException
at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:47)
... 15 more
If I remove the actionNode, the code runs successfully.
Similarly in case of a human task node, when I use a .onEntryAction("java", "java.util.Map contentParam = new java.util.HashMap();"); it crashes.
Seems some problem with the "java" dialect. Just not able to figure that out...
Please help.
Also would be glad if someone could provide a sample code for creating dynamic process with fluent API..
Thanks,
Sanket.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/640100#640100]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months
[jBPM Development] - Table Creat
by JBPMDEV JAVA
JBPMDEV JAVA [http://community.jboss.org/people/jbpmdev] created the discussion
"Table Creat"
To view the discussion, visit: http://community.jboss.org/message/640680#640680
--------------------------------------------------------------
All,
May be this question already discussed but i am not able to find that discussion and it is little very basic about hibernate.Can someone help me to understand the below?
Actully in my persistance.xml i have two JPA unit named
JBPM Version 5.0
org.jbpm.task :
<property name="hibernate.connection.autocommit" value="false" />
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.hbm2ddl.auto" value="create" />
<property name="hibernate.show_sql" value="true" />
++ ++
++org.jbpm.persistence.jpa : <property name="hibernate.connection.autocommit" value="false"/> <property name="hibernate.max_fetch_depth" value="3"/> <property name="hibernate.hbm2ddl.auto" value="update" /> <property name="hibernate.show_sql" value="true" /> ++
++ ++
++My question here is, i am able to deploy the JBPM application in Oracle environment and all looks good.When i redeploy (after some code modification)it is deleteting my tables and recreating tables again.because of that i lost my old data in JBPM tables(create option will delete and recreate the tables again).
++++
++++i tried changing the property hibernate.hbm2ddl.auto=update in both unit but i am getting constraint violation error(example : "User" table is not allowing to inst erthe same record again.because it was alredy there in my first run).
++Can someone clarify this how to achive this,
1.The already inserted records should not affect
2.Dont create table if exist already in table
3.Also it would be great if get executable table script to deploy it.
Can anyone share the exact configuration for the above++++++?Let me know if my question is not clear here.++++++
++++++++++++++++
++++++++++++++++Thanks in advance.
++++
++ ++
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/640680#640680]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 3 months