Hello, i'm having issues with pass by reference between remote
EJB method calls. Below is what i'm trying to do. The EJB method calls are made using remote (EJBObject) interface.
insertEmployeeRecord(Employee employee)
{
employeeEJB.insertEmployee(employee);
empDetailsEJB.insertEmpDetails(employee);
}
insertEmployee(Employee employee)
{
employee.setEmpId(<Oracel sequence number>);
<<<insert employee record into database>>>
}
insertEmpDetails(Employee employee)
{
long empid = employee.getEmpId();
//PROBLEM IS HERE. Here empid value set in insertEmployee method is not received. Instead get returns default value 0.
<<<insert employee details into database>>>
}
All the EJBs have below configuration in the weblogic-ejb-jar.xml file.
<enable-call-by-reference>true</enable-call-by-reference>
I'm using Weblogic server 10.3.0.4 and JDK160_21.
Can someone please let me know if anything is missing here or if any change is needed to get this working?
Thanks in advance.