[JBoss-user] [EJB 3.0] - Re: How to intercept Entity Beans in EJB3.0 using the Embedd

2006-07-04 Thread adrian.andrei
No, they are not. The solution is to use the following arguments: | -javaagent:jboss-aop-jdk50.jar -Djboss.aop.include=com.xyz.abc -Djboss.aop.exclude=org,net,com | if, for example, one is on Java 5. Using AOP and some annotations you can easily intercept get methods from your Entity Bea

[JBoss-user] [EJB 3.0] - How to intercept Entity Beans in EJB3.0 using the Embeddable

2006-06-30 Thread adrian.andrei
I want to be able to intercept methods of the Entity Beans using the latest Embeddable container (alpha 8). If I create a -aop.xml file and try to deploy it as in Code: | EJB3StandaloneBootstrap.deployXmlResource("jboss-aop.xml"); | I get an exception: Caused by: | org.jboss.xb.bindin

[JBoss-user] [JBoss AOP] - Adding Advice/Interceptor in Embeddable Container on Entity

2006-06-29 Thread adrian.andrei
I want to be able to intercept methods of the Entity Beans using the latest Embeddable container (alpha 8). If I create a -aop.xml file and try to deploy it as in | EJB3StandaloneBootstrap.deployXmlResource("jboss-aop.xml"); | I get an exception: Caused by: org.jboss.xb.binding.JBossXBRun

[JBoss-user] [JBossWS] - Re: Can't build jbossws samples

2006-05-18 Thread adrian.andrei
The reason is due to usage of jbossws14.jar instead of the jbossws.jar found in jbossws14.sar that comes with the example. The difference is that the latter has annotations extended from org.jboss.lang.Annotation instead of the java.jang one. After I modified the JBOSS configuration with the ws

[JBoss-user] [JBoss jBPM] - Re: BPEL - abnormal end of process

2006-02-20 Thread adrian.andrei
Sorry, I meant jPBM session. I have no time for code-digging. I just noticed that errors like that happens immediately after jBPM session that was used to receive the request closes. I bet that in the context instance the message variables are somehow linked with the session but i have no time

[JBoss-user] [JBoss jBPM] - Re: BPEL - abnormal end of process

2006-02-17 Thread adrian.andrei
I think I know what that is: the Hibernate session is closed, on finalize I suspect, and the message gets lost. The session is closed upon reply, and the gc kicks in sometimes after that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924605#3924605 Reply to

[JBoss-user] [JBoss jBPM] - Re: BPEL - eventHandlers

2006-02-13 Thread adrian.andrei
I modified the RequestListener code to allow concurrent events. In the constructor, I replace the line: | consumer = messagerSession.getJmsSession().createConsumer(destination, selector); | with | Session session = messagerSession.getMessager().getConnection().createSession(false, Sess

[JBoss-user] [JBoss jBPM] - Re: BPEL - Client loading issues with EJB3 RC5

2006-02-13 Thread adrian.andrei
FYI My mistake, the current configuration was internally released without the client deployer file. The client works now after I copied the client-deployer-service.xml over to the deploy folder. Regards, AA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=392

[JBoss-user] [JBoss jBPM] - BPEL - Client loading issues with EJB3 RC5

2006-02-13 Thread adrian.andrei
Hi, We updated our JBOSS configuration with v 4.0.3. SP1 and we added the EJB3 RC5 module. Ever since I have problems deploying the BPEL client (v 1.4) and i have the following error message: | --- Packages waiting for a deployer --- | [EMAIL PROTECTED] { url=file:/C:/XYZ/server/all/tmp/de

[JBoss-user] [JBoss jBPM] - Re: BPEL - abnormal end of process

2006-02-08 Thread adrian.andrei
Yeah, I responded to the posting with the solution I used. Exactly the same. If you put the second assign in a while loop you have a very "nice" stack trace (instead of end process event) Regards, AA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922442#392

[JBoss-user] [JBoss jBPM] - Re: Unexpected process end in the mid of a bpel

2006-02-08 Thread adrian.andrei
I had the same issue, try to cache response1 text part in a type variable and then use it in second assign. | | | | | | | I think I put here something similar (or I was about to)... Regards, AA View the original post : http://ww

[JBoss-user] [JBoss jBPM] - Re: BPEL - receive/reply flush

2006-02-08 Thread adrian.andrei
I am not sure I explained my position. The commit I am talking about is in JMS, basically making sure that the reply (in this case) reaches the client in timely fashion. Corelating that with the process instance persistency, it is a different story. My point doesn't exclude process instance per

[JBoss-user] [JBoss jBPM] - Re: BPEL - eventHandlers

2006-02-08 Thread adrian.andrei
As a matter a fact I can tell you where to look exactly: The request listener uses the MessagerSession.getJmsSession to create a subscriber. Somehow this is not very well accepted by Jms since the current thread is still busy with the scope content execution. The process freezes in attempt to c

[JBoss-user] [JBoss jBPM] - Re: BPEL - eventHandlers

2006-02-08 Thread adrian.andrei
anonymous wrote : | Yep, the ATM example uses events. | ATM uses pick&onMessage, not event handlers. All my examples with pick work fine, none of them work with scope/event handler. Change ATM to respond to events instead of pick while is doing "tedious" balance calculation for example a

[JBoss-user] [JBoss jBPM] - BPEL - eventHandlers

2006-02-07 Thread adrian.andrei
Hi there, I try to build an event based example. I can see the selector being built, I can see the event being received and the port handler in "listening for response:" but ... nothing happens. I think the issue is related to JMS subscription (request listener versus port handler) since the o

[JBoss-user] [JBoss jBPM] - Re: BPEL - receive/reply flush

2006-02-07 Thread adrian.andrei
I think I found the issue: the send reply method is not commiting after send. You may want to change the OutstandingRequest.java, line 64 (alpha4) and add session.commit();: | finally { | if (producer != null) { | try { | producer.close(); | session.co

[JBoss-user] [JBoss jBPM] - BPEL - abnormal end of process

2006-02-07 Thread adrian.andrei
I have a BPEL process that use to end abnormally, somewhere in the middle of a sequence and no reason (or exception) was logged - I can see just the process end event there. The use case is: - have a global message type variable, store the response of some invoke activity (the message is multi-

[JBoss-user] [JBoss jBPM] - BPEL - receive/reply flush

2006-02-07 Thread adrian.andrei
Hi, I am writing a rather complex BPEL process that expects events while is looping in order to perform some lengthy process. My client times-out after 1 minute, and I was hoping to avoid that by responding to the receive with an early reply rather than wait for the loop to end. Even after I c

[JBoss-user] [JBoss jBPM] - BPEL onAlarm - context lookup error

2006-02-06 Thread adrian.andrei
Hi, I try the BPEL extension with an example that uses timer (onAlarm) events. In runtime I get the error: | Caused by: javax.naming.NameNotFoundException: Scheduler not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:514) | at org.jnp.server.NamingServ

[JBoss-user] [JBoss jBPM] - Re: BPEL while activity implementation

2006-02-06 Thread adrian.andrei
Done, http://jira.jboss.com/jira/browse/BPEL-92. I used the same approach when I worked on a BPML engine few years ago (graph oriented programming), but the loops (while, until) had inner stacks, so the maximum inner stack size was equal to the number of activities the loop had. Eventually pus

[JBoss-user] [JBoss jBPM] - Re: BPEL while activity implementation

2006-02-03 Thread adrian.andrei
I am not sure that this feature complies with the BPEL specs. I know for sure that it doesn't with the BPML ones. There is not need to keep the stack alive for all activities, just for activites that can be compensated fro instance. My use case consists in execution of a sub-process (BPEL) over

[JBoss-user] [JBoss jBPM] - Re: BPEL Process Instance

2006-02-03 Thread adrian.andrei
Done. See issue BPEL-89 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921593#3921593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921593 --- This SF.net email is

[JBoss-user] [JBoss jBPM] - BPEL while activity implementation

2006-02-03 Thread adrian.andrei
I noticed, while I was testing a lengthy BPEL process, using a rather generous while loop in term of number of iterations, that the execution stack trace consists in all activities that the BPEL executed so far. If my while activity iterates a hundred times, and has an inner activity, called A,

[JBoss-user] [JBoss jBPM] - Re: BPEL Process Instance

2006-02-03 Thread adrian.andrei
Thanks for your response, nice. Just a note, the start process event is never triggered. So I changed BpelDefinition class, startProcessInstance to have that triggered: | public void startProcessInstance( ProcessInstance processInstance, | Receiver trigge

[JBoss-user] [JBoss jBPM] - BPEL Process Instance

2006-02-01 Thread adrian.andrei
I am interested in capturing a BPEL process execution, such that the ATM example. I can see that MessageSession spans between the receive and the reply acitivities, but I would like to know when the BPEL process ends. Is there a mechanism that one can use programatically to capture the start and