Ok - I thought I knew what to do, but that doesn't work as well.

I extended the create method with an additional parameter, the relationship field, 
which should be initialized in the ejbPostCreate method, but I still get the same 
error message. I inserted System.out.println's to check which method gets called first 
and the ejbPostCreate method is called after the ejbCreate method. Shouldn't it be the 
other way around ??

        /**
  |      * @return
  |      * @throws CreateException
  |      * 
  |      * @ejb.create-method 
  |      */
  |     public MoonPK ejbCreateMoon(String planet, String moon, int radius, int 
diameter, PlanetLocal plocal) throws CreateException{
  |             setPlanet(planet);
  |             setMoon(moon);
  |             setRadius(radius);
  |             setDiameter(diameter);
  |             return null;
  |     }
  |     
  |     public void ejbPostCreateMond(String planet, String moon, int radius, int 
diameter, PlanetLocal plocal){
  |                                 setPlanetCMR(plocal);
  |                 }

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840621#3840621

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840621


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to