I have a stateless session bean and an entity bean. The session bean has a method that has "Required" trans-attribute. It in turn calls two entity bean methods, first of which has "Required" trans-attribute while the second has "RequiresNew" trans-attribute. It returns successfully after calling the 1st method but hangs for ever before calling the second method. If I change the trans-attribute for the second method to "Required", it goes fine. Or if I keep the trans-attrib unchanged and comment out the call to 1st entity bean method (that has "Required" attribute), then also everything goes fine.

Could someone help pleeese? Thanks a lot.

// the following code hangs

SessionBean {

hasRequiredAttribute() {

  entityBean.hasRequiredAttribute(); // method 1

  // it hangs here !!

  entityBean.hasRequiresNewAttribute(); // method 2

}

}

// the following code works fine

SessionBean {

hasRequiredAttribute() {

  entityBean.hasRequiredAttribute(); // method 1

  // it goes fine when the method 2's attribute is also changed to "Required"

  entityBean.hasRequiredAttribute(); // method 2

}

}

// the following code works fine also!

SessionBean {

hasRequiredAttribute() {

   //comment out 1st method call which has "Required" attribute

  //entityBean.hasRequiredAttribute();

  // it goes fine!!

  entityBean.hasRequiresNewAttribute(); // method 2

}

}



Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup

Reply via email to