[JBoss ESB Development] - Passing Message to Jbpm
by David Paz
David Paz [http://community.jboss.org/people/davidmpaz] created the discussion
"Passing Message to Jbpm"
To view the discussion, visit: http://community.jboss.org/message/569374#569374
--------------------------------------------------------------
Hello, I have a problem and I will appreciate any suggestion about it. This is my scenario:
I have several services orchestrated from jbpm, the starter service receive an xml through http, the xml is transformed (smooks) into an ArrayList<User>, the message is mapped to jbpm variable from esb as BODY_CONTENT.
My problems start when the process try to pause (I have a timer on it), I think it is because this kind of var is not persistable, this is the exeption
08:00:54,449 ERROR http://community.jboss.org/message/569374#569374 Passing Message to Jbpm Unexpected error delivering message delegator->JBossMessage[21114107566866487]:PERSISTENT, deliveryId=18org.jbpm.JbpmException: cannot mark externally managed transaction for rollback at org.jbpm.persistence.db.DbPersistenceService.endTransaction(DbPersistenceService.java:129) at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:201) at org.jbpm.svc.Services.close(Services.java:247) at org.jbpm.JbpmContext.close(JbpmContext.java:131) at org.jbpm.command.impl.CommandServiceImpl.execute(CommandServiceImpl.java:79) at org.jboss.soa.esb.services.jbpm.cmd.CommandExecutor.executeJbpmCommand(CommandExecutor.java:279) at org.jboss.soa.esb.services.jbpm.cmd.CommandExecutor.access$100(CommandExecutor.java:51) at org.jboss.soa.esb.services.jbpm.cmd.CommandExecutor$3.execute(CommandExecutor.java:136) at org.jboss.soa.esb.services.jbpm.actions.JBpmCallback.process(JBpmCallback.java:68) at sun.reflect.GeneratedMethodAccessor646.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.processMethods(ActionProcessorMethodInfo.java:102) at org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.process(OverriddenActionLifecycleProcessor.java:74) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:634) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:588) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:419) at org.jboss.soa.esb.listeners.jca.JcaMessageAwareListener.process(JcaMessageAwareListener.java:163) at org.jboss.soa.esb.listeners.jca.JcaJMSInflowMessageProcessorAdapter.onMessage(JcaJMSInflowMessageProcessorAdapter.java:44) at sun.reflect.GeneratedMethodAccessor645.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.soa.esb.listeners.jca.BaseJcaInflow$1.invoke(BaseJcaInflow.java:205) at org.jboss.soa.esb.listeners.jca.EndpointProxy.delivery(EndpointProxy.java:258) at org.jboss.soa.esb.listeners.jca.EndpointProxy.invoke(EndpointProxy.java:150) at $Proxy374.onMessage(Unknown Source) at org.jboss.resource.adapter.jms.inflow.JmsServerSession.onMessage(JmsServerSession.java:178) at org.jboss.jms.client.container.ClientConsumer.callOnMessageStatic(ClientConsumer.java:160) at org.jboss.jms.client.container.SessionAspect.handleRun(SessionAspect.java:831) at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleRun_2046525641.invoke(SessionAspect_z_handleRun_2046525641.java) 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.ClientSessionDelegate.run(ClientSessionDelegate.java) at org.jboss.jms.client.JBossSession.run(JBossSession.java:199) at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:234) 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)
Can anyone propose a possible solution or point me to some direction for achieving this, please.
As a work around as I have tried to transform back the Collection into an xml string, so the process doesn't complain when paused. I would like to know how can I use that object model to generate an xml string using Smooks, FreeMarker template (notice I would like to generate back an xml with same structure as received one)
Again if someone can point me on the right direction, I will appreciate a lot.
If you need more information please I can post configuration files also.
Thanks for listen, David
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569374#569374]
Start a new discussion in JBoss ESB Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months
[JBoss Tools Development] - Eclipse Summit 2010 Mini-Agenda
by Denis Golovin
Denis Golovin [http://community.jboss.org/people/dgolovin] modified the document:
"Eclipse Summit 2010 Mini-Agenda"
To view the document, visit: http://community.jboss.org/docs/DOC-16029
--------------------------------------------------------------
This doc outlines the items Nick and Max will be working on (or at least discussing at length) during Eclipse Summit:
*== Parent Pom & Target Platform Building ==*
Why is helios-remote-target not the default one for our builds ?
* It is enabled by default, along with the "helios" profile which includes all the Eclipse.org and google.com sites against which the helios-remote-target's site is built. So... maybe we no longer need the "helios" one to be enabled by default? ~Nick
Why does our pom not have relative path references so you don't have to install parent first ?
i.e. <relativePath>../../../build/parent/pom.xml</relativePath>
* If we use relative pom's shouldn't we make the aggregator pom for "modules" a parent pom that references to the uber-pom ? (avoids the need to update too much the children and allow each module to adjust for their needs - i.e. run tests non-ui harness)
*== Testing ==*
We should use two surefire runs to seperate (fast) unit tests from (slow) integration tests, i.e. use failsafe plugin or simply use IT* as the pattern for integration tests. -- Agreed. Can have different profiles w/ different classname filters in the parent/pom.xml. I was thinking more like http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing where its split in same profile via mvn test and mvn integration-test goals.
We should find out how we can run some plugins with uiharness and others without, even within same plugin.
Would be good to find way just run tests without compiling everything again.
*== Source Bundles ==*
Can we generate source bundles so we get source features ? (see egit for example of this)
(note: source features != sdk features since these doesn't include the binary) -- Apparently yes, but @d_a_carver says the egit stuff doesn't work. Yes, but git://github.com/pieceoftheloaf/tycho-examples.git for some reason do (at least I get sources plugin built).
*== Maven depoy ==*
At least our pom's should be deployed to repository.org
Need to start actually use versioning.
*== Dependencies ==*
We have an issue with javax.soap 1.2 vs. javax.soap 1.3 we haven't been able to resolve - JBIDE-6450 - need some idea on how to resolve it.
Teiid/Savara extraneous dependencies (on datatools.enablement.sdk.feature (JBIDE-7443) or osgi package (instead of containing bundle/plugin/feature - SAVARA-141)
Decide contents of [JBDS Target Platform + 3rd Party Site] vs. [JBT TP] (ie., where to put things like m2eclipse, gwt, springide, testng and how to clearly state level of support)
Can we use tycho's "semi" support for maven dependencies for 3rd party jars, i.e. modeshape, drools and others have these jars in the system.
Check if upper/lower bound of plugins can be checked/applied so we get consistent p2/update behavior.
*== Update Sites ==*
Reduce the footprint of update site zips posted to download.jboss.org and sourceforge.net. Suggest either JUST the all-in-one aggregate site, or else the all-in-one + Hibernate, VPE, Drools, and Teiid (the biggest ones).
Publish multiple update sites into a singel composite site on devstudio.jboss.com. See https://docspace.corp.redhat.com/docs/DOC-47710#Published_Artifacts https://docspace.corp.redhat.com/docs/DOC-47710#Published_Artifacts
*== Documentation & Auditing ==*
Tracking contents of JBT/JBDS when built as aggregation - JBIDE-7444
Create new HTML generator for both jboss.org and standalone index.html page (JBIDE-6958, JBIDE-7045)
Create new tool to diff between releases "sanity checker" - JBIDE-6343
Update docs re: building, testing, provisioning:
* http://community.jboss.org/docs/DOC-15755 http://community.jboss.org/wiki/JBossToolsTargetPlatformProvisioningorhow...
* http://www.jboss.org/tools/docs/building http://www.jboss.org/tools/docs/building
* http://www.jboss.org/tools/docs/testing http://www.jboss.org/tools/docs/testing
* ...?
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16029]
Create a new document in JBoss Tools Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
14 years, 4 months
[JBoss Profiler Development] - unable to see the list of snapshots when client listSnapshots
by Darpan Mhatre
Darpan Mhatre [http://community.jboss.org/people/darpan27484] created the discussion
"unable to see the list of snapshots when client listSnapshots"
To view the discussion, visit: http://community.jboss.org/message/569146#569146
--------------------------------------------------------------
*configuration file: jboss-profiler-client.properties*
protocol=socket
host=localhost
port=5400
threshold=1.0
savelocation=/home/dmhatre/profiler-reports
plugin.1=org.jboss.profiler.plugins.Hibernate
plugin.2=org.jboss.profiler.plugins.Seam
*
*
*configuration file: jboss-profiler.properties*
enable=yes
precompiled=no
cpu=yes
memory=yes
includes=org.jboss.profiler.*,com.oceanview.dto.*|public,com.oceanview.struts.action.*|public
excludes=
visibility=public
save=yes
savelocation=/home/dmhatre/profiler-reports
startup=yes
repository=no
remote=yes
store=file
location=/home/dmhatre/profiler-reports
host=localhost
port=5400
ejb=yes
servlet=yes
jsf=yes
jmx=yes
rmi=yes
corba=yes
plugin.1=org.jboss.profiler.plugins.Hibernate
plugin.2=org.jboss.profiler.plugins.Seam
*environments: jboss-5.1.0.GA, linux*
i can see some folders created with the timestamp @ ../profiler-reports
when i do snapshot and getSnapshot. I can also create reports using "load" foldername.
But not able to see the list of snapshots when i do listSnapshots.
Also if any one can help me with the oder of commands i need to use to generate reports.
This is what i use. Kindly correct it if am wrong.
1) startProfiler
2) Access web application
3)snapshot
3)getSnapshot
4) Load.
Kindly reply, really need to get this running. I appreciate your help in advance.
Thanks,
Darpan
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569146#569146]
Start a new discussion in JBoss Profiler Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months