[JBoss Seam] - Re: Transaction problem after upgrade
by blue_due
Did you find a solution to this?
I'm having a similar problem but I'm only getting the exception on the methods annotated @EndTask:
| @Name("depositPermission")
| @Scope(ScopeType.CONVERSATION)
| @Transactional
| public class DepositPermissionAction {
|
| private String note;
|
| @In(required=false)
| private String userName;
|
| @In(required=false)
| private String userID;
|
| @In(required=false)
| private String containerName;
|
| @In(required=false)
| private boolean inherited;
|
| @In(required=false)
| private Long containerId;
|
| @In(create=true)
| private UserBean userBean;
|
| @In(create=true)
| private ContainerBean containerBean;
|
| @In(create=true)
| private ContainerDelegate containerDelegate;
|
| @In(create=true)
| private EmailMessageBean emailMessageBean;
|
|
|
|
| @BeginTask @Begin
| public String view() {
| return "view_deposit_request";
| }
|
| @EndTask @End
| @Transactional
| public String approve() throws ConfigurationException {
| userBean.load(userID);
| containerBean.load(containerId);
| userBean.getObject().getDepositContainers().add(containerBean.getObject());
| containerDelegate.setContainerBean(containerBean);
| userBean.getObject().getDepositContainers().addAll(containerDelegate.getAllSubContainers());
|
| userBean.update();
|
|
| return "";
| }
|
| @EndTask @End
| @Transactional
| public String reject() {
|
| userBean.load(userID);
| containerBean.load(containerId);
|
|
|
| return "";
| }
|
| @End
| public String cancel() {
| return "/task_management.xhtml";
| }
|
|
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976974#3976974
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976974
19 years, 7 months
[JBoss jBPM] - Running Jbpm engine..
by dsrkreddy
Hi All
I want to run jbpm engine in our application so for that ... i added some libreries into the jbpm-3.1.2.jar file that are (hibernate,apache,dom4j) and edit the manifest.mf file as shown below
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Main-Class: org/jbpm/db/JbpmSchema
Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)
but when i tried to run it from comand prompt i get a following messege
D:\jar>java -jar jbpm-3.1.2.jar
syntax: JbpmSchema create [<hibernate.cfg.xml> [<hibernate.properties>]]
syntax: JbpmSchema drop [<hibernate.cfg.xml> [<hibernate.properties>]]
syntax: JbpmSchema clean [<hibernate.cfg.xml> [<hibernate.properties>]]
syntax: JbpmSchema scripts [<hibernate.cfg.xml> [<hibernate.prope
rties>]]
D:\jar>
and actually my intension is to write a ,method to run jbpm in our application of our project .. so please help me to move further ..
does the main class to start jbpm engine in the jar file is "jbpmSchema.class " and did i need to include any more lib files.. into it...
please help me ...
thanks in advance for one and all.....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976972#3976972
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976972
19 years, 7 months