[EJB 3.0] New message: "Re: Why EJB 2.0 TO EJB 3.0 migration?"
by pravu Mi
User development,
A new message was posted in the thread "Why EJB 2.0 TO EJB 3.0 migration?":
http://community.jboss.org/message/521332#521332
Author : pravu Mi
Profile : http://community.jboss.org/people/pravumishra
Message:
--------------------------------------------------------------
Hi Jaikiran,
Please find attached a zip file that contains configuration files for EJB 2.x (ejb-jar.xml, jboss.xml,jbosscmp-jdbc.xml) and EJB 3.0(persistence.xml).
I am using java 1.6 and jboss 4.2.3 and my beans are not packed into separate jars, instead those are packed into single jar file inside the EAR. I am using Eclipse 3.3 and used the Dinamic web project of Eclipse for checking the fisibility of using both the type of ejbs in a single EAR.
Hope I have provided all the required information.
Thanks and Regards,
Pravu Mishra.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521332#521332
16 years, 3 months
[jBPM] New message: "Unable to distingusih between pooled-Actors and Swimlane"
by john britto
User development,
A new message was posted in the thread "Unable to distingusih between pooled-Actors and Swimlane":
http://community.jboss.org/message/521316#521316
Author : john britto
Profile : http://community.jboss.org/people/brittobics
Message:
--------------------------------------------------------------
Hai
As per my understanding Swimlane is a Roel in the JBPM
Actor-id and Pooled Actors are the attribute and These(Actor-id and PooleActor) are user.
i Have developed a samll Application.
I have processdefiniton in BuyerRegistration. The code is
<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="BuyerRegistration">
<swimlane name="Buyer">
<assignment actor-id="Britto"></assignment>
</swimlane>
<swimlane name="Admin1">
<assignment pooled-actors="A,B,C,D"></assignment>
</swimlane>
<swimlane name="Admin2">
<assignment pooled-actors="X,Y,Z"></assignment>
</swimlane>
<start-state name="Registration_StartState">
<task swimlane="Buyer"></task>
<transition to="Registartion_Approve_By_Admin1" name="To_Approve_Admin1"></transition>
</start-state>
<task-node name="Registartion_Approve_By_Admin1">
<task swimlane="Admin1"></task>
<transition to="Registration_Approve_By_Admin2" name="To_Approve_Admin2"></transition>
</task-node>
<task-node name="Registration_Approve_By_Admin2">
<task swimlane="Admin2"></task>
<transition to="End_Registration" name="End"></transition>
</task-node>
<end-state name="End_Registration"></end-state>
</process-definition>
And the java class for this file is
/**
*
*/
package com.br.bprocess;
import java.util.Collection;
import java.util.Iterator;
import org.jbpm.graph.def.ProcessDefinition;
import org.jbpm.graph.def.Node;
import org.jbpm.graph.exe.ProcessInstance;
import org.jbpm.graph.exe.Token;
import org.jbpm.taskmgmt.exe.TaskInstance;
import org.jbpm.taskmgmt.exe.TaskMgmtInstance;
import junit.extensions.TestSetup;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* @author doss
*
*/
public class BuyerRegistrationTest extends TestCase {
static ProcessDefinition buyerRegistrationProcess;
static Node registarteInit,approveOne,approveTwo,end;
public static Test suite()
{
return new TestSetup(new TestSuite(BuyerRegistrationTest.class))
{
protected void setUp() throws Exception
{
super.setUp();
buyerRegistrationProcess=ProcessDefinition.parseXmlInputStream(BuyerRegistrationTest.class.getResourceAsStream("/BuyerRegistration/processdefinition.xml"));
registarteInit=buyerRegistrationProcess.getNode("Registration_StartState");
approveOne=buyerRegistrationProcess.getNode("Registartion_Approve_By_Admin1");
approveTwo=buyerRegistrationProcess.getNode("Registration_Approve_By_Admin2");
end=buyerRegistrationProcess.getNode("End_Registration");
}
};
}
public void testScenarioOne()
{
ProcessInstance processInstance = new ProcessInstance(buyerRegistrationProcess);
Token token = processInstance.getRootToken();
// token.setNode(registarteInit);
assertEquals("Registration_StartState", token.getNode().getName());
token.signal("To_Approve_Admin1");
assertEquals("Registartion_Approve_By_Admin1", token.getNode().getName());
token.lock("A");
if(token.isLocked())
{
System.out.println("Token is locked By the swimlane-0 : "+token.getLockOwner());
System.out.println("First unlock the token and execute-0");
}else{
System.out.println("Token is not locked By the swimlane: ");
}
token.unlock("Admin1");
token.signal("To_Approve_Admin2");
assertEquals("Registration_Approve_By_Admin2", token.getNode().getName());
token.signal("End");
assertEquals("End_Registration", token.getNode().getName());
token.end();
}
}
What ever the Swimlane role i specifiy it is locked the signal of toke.
I Have assigned the "Admin1" to "Registartion_Approve_By_Admin1" task.
but by using the "Buyer" swimlae the token is locked even if it is in the "Registration_Approve_By_Admin2" Task.
I would like to know the list of swimlane user by code.
I have reffered the http://docs.jboss.org/jbpm/v3/userguide/taskmanagement.html#swimlanes also
but no use.
your help is urgent
Adavnce thanks
regards
britto
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521316#521316
16 years, 3 months
[EJB 3.0] New message: "Re: Why EJB 2.0 TO EJB 3.0 migration?"
by jaikiran pai
User development,
A new message was posted in the thread "Why EJB 2.0 TO EJB 3.0 migration?":
http://community.jboss.org/message/521310#521310
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
> pravumishra wrote:
>
> After placing all the modules into single EAR file, I foound the Screens those uses EJB 3.0 works fine and for EJB 2.0 it says javax.naming.NameNotFoundException: Bean not bound
>
>
>
Please provide the exact details including the exception stacktrace and even the configuration files. Please also show us which dtd/xsd reference you have in those ejb-jar.xml and jboss.xml (if any) for the EJB2.x beans. Are these beans packaged in a separate .jar in the .ear?
And which exact version of JBoss AS and Java do you use?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521310#521310
16 years, 3 months
[EJB 3.0] New message: "Why EJB 2.0 TO EJB 3.0 migration?"
by pravu Mi
User development,
A new message was posted in the thread "Why EJB 2.0 TO EJB 3.0 migration?":
http://community.jboss.org/message/521301#521301
Author : pravu Mi
Profile : http://community.jboss.org/people/pravumishra
Message:
--------------------------------------------------------------
Hi There,
The latest JBoss supports both EJB 2.0 and EJB 3.0. Guess existance of both the type of beans in a single EAR problem does not create any problem and it it works.
I have many modules those are developed by using EJB 2.0 and many new modules developed by using ejb 3.0. Instead of modifying( migrating) the EJB 2.0 code to ejb 3.0 I wanted to integrate all the modules in a single EAR file.
After placing all the modules into single EAR file, I foound the Screens those uses EJB 3.0 works fine and for EJB 2.0 it says javax.naming.NameNotFoundException: Bean not bound
>From the defined 2.0 JNDI name it is not able to get the object. Is the declaration of JNDI names and bean mapping for 2.0 is useless in case we use both type of beans(2.0 and 3.0) in a single EAR?
It looks like there is some declaration missing in any of the configuration file.
Can any body let me know how to make it work.
Thanks and Regards,
Pravu Mishra.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521301#521301
16 years, 3 months
[EJB 3.0] New message: "Can EJB 2.0 and EJB 3.0 beans be in single EAR file"
by pravu Mi
User development,
A new message was posted in the thread "Can EJB 2.0 and EJB 3.0 beans be in single EAR file":
http://community.jboss.org/message/521298#521298
Author : pravu Mi
Profile : http://community.jboss.org/people/pravumishra
Message:
--------------------------------------------------------------
Hi ,
I have many modules those are developed by using EJB 2.0 and many new modules developed by using ejb 3.0. Instead of modifying( migrating) the EJB 2.0 code to ejb 3.0 I wanted to integrate all the modules in a single EAR file.
After placing all the modules into single EAR file, I foound the Screens those uses EJB 3.0 works fine and for EJB 2.0 it says *javax.naming.NameNotFoundException: Bean not bound*
Looks like from the defined 2.0 JNDI name it is not able to get the object.
Is the declaration of JNDI names and bean mapping for 2.0 is useless in case we use both type of beans(2.0 and 3.0) in a single EAR?
Can any body please provide some solution for this.
Thanks and Regards,
Pravu Mishra.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521298#521298
16 years, 3 months