[Beginner's Corner] - Jboss and Ejb with interceptors
by ninguno2
ninguno2 [https://community.jboss.org/people/ninguno2] created the discussion
"Jboss and Ejb with interceptors"
To view the discussion, visit: https://community.jboss.org/message/719733#719733
--------------------------------------------------------------
I'm using Jboss 4.2.3 + hibernate 3.3 with jta; Jboss is managing my hibernatesession, that I obtain with sessionFactory.getCurrentSession().
I have a session bean that has several mutually exclusive methods (when one is executing the other should be block). I implement and interceptor using a RecurrentLock to get this working (attached through annotations to the session bean), and is working almost fine.
But I need that this kind of "lock" interceptor is executed before the jta transacion starts and after the jta ends (and commit my hibernate changes), cause now is going the other way. Is there any way to get this working?
A simple schema if my problem it's not understood
Now
1-JTA tran. starts
2-Lock with custom interceptor
3-Ejb method called
4-Unlock with custom interceptor
5-jta tran. ends and commit changes.
I need
1-Lock with custom interceptor
2-JTA tran. starts
3-Ejb method called
4-jta tran. ends and commit changes.
5-Unlock with custom interceptor
Thanks in advance and sorry about me english!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/719733#719733]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 8 months
[jBPM] - Event handling for newbie
by sebastien chausson
sebastien chausson [https://community.jboss.org/people/schau31] created the discussion
"Event handling for newbie"
To view the discussion, visit: https://community.jboss.org/message/722394#722394
--------------------------------------------------------------
Hi all,
I'm quite new to JBPM and a little bit confused with "event management" in JBPM. Unfortunately, the provided example (IntermediateCatchEvent) couldn't help me so much...
My goal is to launch a process execution from a basic java main (quite simple, isn't it ?) and to be able to control the process execution with the help of "events" thrown either by the java code or by the BPM engine :
1 - I'd like to know what happen when I use a signalEventDefinition or a messageEventDefinition in my bpmn process definition : does the BPM engine "throw" something that can be caught from my java code or is this event simply internal to BPM engine ?
2 - In a similar way, if I want to "send" events from my java code to control the behavior of my process, how can I achieve this ? In the provided example, the testIntermediateCatchEventSignal method contains following instructions :
ksession.signalEvent("MyMessage", "SomeValue", processInstance.getId());
But I couldn't find any reference to "MyMessage" in the process definition...What did I miss ?
Many thanks for your help
Sebastien
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722394#722394]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 8 months
[JBoss Web Services] - WebService Client Fails to deploy - Metro + Spring - Classloading
by Gabriel Gutierrez
Gabriel Gutierrez [https://community.jboss.org/people/gutierrez.ge] created the discussion
"WebService Client Fails to deploy - Metro + Spring - Classloading"
To view the discussion, visit: https://community.jboss.org/message/721054#721054
--------------------------------------------------------------
Hi guys,
I have this webservice with Metro and Spring that consumes another WebService, but when deploying it into JBoss it fails.
I'm using the following stack of technologies
*JBoss Server:* jboss4.3CP09/jboss-as
*Frameworks:* Spring 2.5.5 + Metro 2.1.7 (jaxws-rt)
This is the error I've been gettin (I'm sumaryzing the most important lines):
*javax.xml.ws.WebServiceException: Unable to load Provider: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl*
*Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl*
* at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96)*
* at javax.xml.ws.spi.Provider.provider(Provider.java:90)*
* ... 171 more*
*Caused by: java.lang.NoClassDefFoundError: Ljavax/xml/bind/JAXBContext;*
This is how I'm creating the client with Spring
<bean id="pcWS" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
<property name="serviceInterface" value="${pc.interfaceName}" />
<property name="endpointAddress" value="${pc.endpoint}" />
<property name="wsdlDocumentUrl" value="${pc.wsdl}" />
<property name="namespaceUri" value="${pc.namespace}" />
<property name="serviceName" value="${pc.serviceName}" />
</bean>
*It is worth mention that I ran into another issue with another set of applications using Spring and CXF hosted under the same jboss installation, where the solution was to remove jaxb-api.jar from ${jboss.lib.url}/lib/endorsed directory and that is working good.*
Thanks on advance your comments.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/721054#721054]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 8 months