[jBPM] - jbpm transaction questions
by wqe wqe
wqe wqe [https://community.jboss.org/people/drupalspring] created the discussion
"jbpm transaction questions"
To view the discussion, visit: https://community.jboss.org/message/759528#759528
--------------------------------------------------------------
(1) I remember that I see somewhere before mentions that integration of TaskServerice and Spring using JTA transaction is not fully tested . Any news and improvement in the JTA integration with Spring now? Is the quality is production ready?
(2) I am now using two databases (one for task and one the jbpm runtime) which both of them is integrated with Spring . The jbpm runtime database uses JTA now while task database uses local transaction now . I read some where in the forum before says that it is necessary to use JTA in drools/jBPM , so are there any problems if JTA is used for one database and local transaction is used for another database ? If I include a local transaction inside a JTA Transaction, cam both of them work as a single transaction unit???
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/759528#759528]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[EJB3] - @EJB(lookup="xx") fails.
by Arthur Gerson
Arthur Gerson [https://community.jboss.org/people/agerson] created the discussion
"@EJB(lookup="xx") fails."
To view the discussion, visit: https://community.jboss.org/message/759096#759096
--------------------------------------------------------------
*Sorry ahead of time if this problem is clarified else where.*
*Using Eclipse I have created a bean called Foo and a servlet to call it.*
package com.foo.ejb;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
/**
* Session Bean implementation class Test
*/
@Stateless
@LocalBean
public class Foo implements FooRemote, FooLocal {
/**
* Default constructor.
*/
public Foo() {
// TODO Auto-generated constructor stub
}
}//End of file Foo.java
package com.foo.ejb;
import javax.ejb.Local;
@Local
public interface FooLocal {
}//End of file FooLocal.java
package com.foo.ejb;
import javax.ejb.Remote;
@Remote
public interface FooRemote {
}//End of file FooRemote.java
import java.io.IOException;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jboss.logging.Logger;
import com.foo.ejb.FooRemote;
/**
* Servlet implementation class TheServlet
*/
@WebServlet("/TheServlet")
public class TheServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private Logger logger = Logger.getLogger(TheServlet.class);
@EJB( lookup="java:global/FooBean/Foo!com.foo.ejb.FooRemote")
private FooRemote foo ;
/**
* @see HttpServlet#HttpServlet()
*/
public TheServlet() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
logger.info("PlaceBidServlet says hi!");
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
}
}//End of file TheServlet.java
*I used the JBoss log to get the global JINI string and placed into the servlet.*
|
| java:global/FooBean/Foo!com.foo.ejb.FooRemote |
|
| java:app/FooBean/Foo!com.foo.ejb.FooRemote |
|
| java:module/Foo!com.foo.ejb.FooRemote |
|
| java:jboss/exported/FooBean/Foo!com.foo.ejb.FooRemote |
|
| java:global/FooBean/Foo!com.foo.ejb.FooLocal |
|
| java:app/FooBean/Foo!com.foo.ejb.FooLocal |
|
| java:module/Foo!com.foo.ejb.FooLocal |
|
| java:global/FooBean/Foo!com.foo.ejb.Foo |
|
| java:app/FooBean/Foo!com.foo.ejb.Foo |
|
| java:module/Foo!com.foo.ejb.Foo |
*I am getting the following.*
Caused by: java.lang.NoClassDefFoundError: Lcom/foo/ejb/FooRemote;
Caused by: java.lang.ClassNotFoundException: com.foo.ejb.FooRemote
*This is JBoss version*
JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
*So I am assuming this type of injection is supported. The test works fine when the client and ejb are in the same project/war but I want to separate them. Does anybody see what I am doing wrong? Any help would be greatly appreciated.*
*Thanks, Art
*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/759096#759096]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[jBPM] - In my jbpm5.2 project, I use gateway to decide which next taskNode that the process will go
by xiaoxiao long
xiaoxiao long [https://community.jboss.org/people/mimi_2012] created the discussion
"In my jbpm5.2 project,I use gateway to decide which next taskNode that the process will go"
To view the discussion, visit: https://community.jboss.org/message/759357#759357
--------------------------------------------------------------
I do not like this way :
https://community.jboss.org/servlet/JiveServlet/showImage/2-759357-19464/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-759357-19...
int qnt = java.lang.Integer.parseInt(quantity);
if ( qnt > 1000)
isAvailable = false;
else
isAvailable = true;
kcontext.setVariable("isAvailable",isAvailable);
System.out.println("***After process order HT, Quantity: " +qnt +" isAvailable condition: " +isAvailable);
because the customers want the project could achive the function to allow them to decide which next taskNode that the process will go,In the User Interface,I will supply the options(show the next tasknodes) to user to choose,how can i achive, *I need the code,*forgive my poor english,thanks!!!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/759357#759357]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[jBPM] - Determining available transitions
by stevearoonie
stevearoonie [https://community.jboss.org/people/stevearoonie] created the discussion
"Determining available transitions"
To view the discussion, visit: https://community.jboss.org/message/754428#754428
--------------------------------------------------------------
Hi all,
I am looking at replacing jBPM 3 with 5 and there is one feature of 3 that we use extensively that I am not sure how to do in 5 - we send to the client application (not a web app) the set of transitions that the current user is able to take for the selected task. This allows us to alter and redeploy a workflow and have the UI automatically pick up new/changed transitions.
I gather that in version 5/BPMN2 outgoing transitions would be implemented by an XOR split that would use data added in the completion of the task node to choose the correct path, but I have not seen any examples where you can retrieve the set of valid transitions from anywhere. Before I go ahead with some custom implementation is there some recommended way to do this, or a different approach I should be using?
thanks in advance
Steve
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/754428#754428]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months