[jBPM Development] - Re: Integration of Human Task Service into Distributed Application
by Mauricio Salatino
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion
"Re: Integration of Human Task Service into Distributed Application"
To view the discussion, visit: https://community.jboss.org/message/824717#824717
--------------------------------------------------------------
HI Mikhail,
This is a great time for you to get involved in evolving what we have. As far as I know due time limitations we will not be able to provide the features that you want for 6.0, maybe for 6.1.
We should be able, with the help of community members like you to evolve what is being provided out of the box in jbpm6 to provide more advanced features.
As far as I understood for your email you want to deploy your app in Tomcat, and at the same time you wanted to have all the features provided by a EE container such as JBoss which is ready for more enterprise things like handling XA resources and transaction components such as MDBs. Nowadays JBoss is extremelily modular, so you can enable the web profile plus all the other components that you need and disable all the ones that you don't. I will always recommed to go with JMS if transactions are heavly involved in your scenario.
I guess that we can find a way to remove the dependency to MDBs if that's what you need, but you will need to solve in some other ways the features provided by such components.
Cheers
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/824717#824717]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months
[JBoss Transactions Development] - Re: Implementing 1PC in WS-AT (WS-Atomic Transaction)
by Paul Robinson
Paul Robinson [https://community.jboss.org/people/paul.robinson] created the discussion
"Re: Implementing 1PC in WS-AT (WS-Atomic Transaction)"
To view the discussion, visit: https://community.jboss.org/message/826402#826402
--------------------------------------------------------------
Chirag,
The problem with what you are suggesting is that you assume that the participant knows 1PC will be used. However, 1PC is an optimization selected by the coordinator when it observes that only one participant has been registered for the transaction. In many cases the participant will not know that it is alone. I think you instead need to allow the participant to notify the coordinator that it is capable of participating in a 1PC or 2PC protocol. The coordinator would then select the 1PC optimization if there is only one participant registered for the transaction and only if that participant is 1PC capable.
WS-AT allows individual participants to register for different protocols. See "3 AtomicTransactionProtocols" of the WS-AT spec. I think you would probably need to add another one of those protocols for a 2PC protocol that can also do 1PC. You will probably also need to consider what the state table would like like for your new protocol. This would need to be inline with those in section "9 State Tables".
>From the implementation point of view, XTS has protocol engines for each of the protocols in the WS-AT spec. You would need to add a new one of those to handle the new protocol. There's other things too, that you would need to do to implement it, but we can get into that later.
The new protocol would also need to support recovery. But again, we can consider that later. Maybe this is something outside of the scope of your masters project?
Paul.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/826402#826402]
Start a new discussion in JBoss Transactions Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months
[JBoss Transactions Development] - Re: Transactional MSC
by David Lloyd
David Lloyd [https://community.jboss.org/people/dmlloyd] created the discussion
"Re: Transactional MSC"
To view the discussion, visit: https://community.jboss.org/message/830022#830022
--------------------------------------------------------------
> Paul Robinson wrote:
>
> All,
>
> I've knocked up a quick prototype [1] that uses JBoss Modules to provide classloader isolation. I'm sure we all (especially David) already know what this would look like, but I thought it would be a good idea to create something so that I can make sure I understand it properly and so that we have something tangible to discuss.
>
> In the prototype, I've created a new JBossModule called "org.jboss.narayana.arjunacore". This module has its own jbossts-properties.xml (located at /modules/system/layers/base/org/jboss/narayana/arjunacore/main/config/jbossts-properties.xml) for configuring this instance of ArjunaCore. In the property file I have changed the object store location to be in "./dummymsc-object-store"; this allows us to see that two separate configs are actually being used.
>
> To show this in action, I created a new subsystem that depends on the "org.jboss.narayana.arjunacore" that: starts the recovery manager, begins a BasicAction, adds a BasicRecord to the transaction and then commits the BasicAction. I used a subsytem to demonstrate this as I wanted something low level that would match closely enough, how Transactional MSC would use transactions.
>
> This is just a quick prototype, I've not considered what further configuration of ArjunaCore should be done. Neither have I ensured other services, such as the transaction reaper, are running. I can work on this, if we decide this is the right approach to take (initially).
>
>
> [1] https://github.com/paulrobinson/jboss-as/tree/TxMSC_arjuna_module (https://github.com/paulrobinson/jboss-as/tree/TxMSC_arjuna_module)
That's more or less what I had in mind. Though it's likely only MSC itself which will have this dependency - and maybe the new wildfly core management system - which both lie underneath extensions, rather than being extensions themselves. Those may well be the only things in the system that "see" arjunacore directly in fact, unless we directly expose the arjunacore APIs for coordination purposes.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/830022#830022]
Start a new discussion in JBoss Transactions Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months
[JBoss AS 7 Development] - MDC custom parameter not logged in jboss 7.1.1
by sheriel
sheriel [https://community.jboss.org/people/sheriel] created the discussion
"MDC custom parameter not logged in jboss 7.1.1"
To view the discussion, visit: https://community.jboss.org/message/830108#830108
--------------------------------------------------------------
Hi,
*Premise:*
I use this Fromatter string in log configuration for my application: %d{HH:mm:ss,SSS} %-5p %X{transactionId} [%c] (%t) %s%E%n
I set the transactionId parameter on each invocation with: MDC.put("transactionId", transactionId);
Trying to log the parameter for debug purpose (with MDC.get("transactionId");) I see the parameter is correctely set.
In any class I instantiate the logger with: private static final LogManager LOGGER = LogManager.getInstance(BlBean.class);
where getInstance returns a org.apache.commons.logging.Log, instantiated with LogFactory.getLog(clazz);
where LogFactory is org.apache.commons.logging.LogFactory.
*Question:*
If I deploy my .ear under jboss eap 6.1 the transactionId is correctely logged.
If I deploy the same .ear under jboss-as-7.1.1, with the same configurations, the transactionId is not logged.
Have you same suggestion about what I can check?
Thank you all very much.
Marco
*Details:*
My jboss-deployment-structure is:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
<ear-subdeployments-isolated>true</ear-subdeployments-isolated>
<deployment>
<dependencies>
<module name="com.uniscire.be.config" export="true"/>
<module name="org.apache.commons.configuration" export="true"/>
<module name="org.apache.commons.lang" export="true"/>
<module name="org.jboss.resteasy.resteasy-jaxb-provider" export="true"/>
<module name="myApp.utils" slot="1.0" export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/830108#830108]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 5 months