Title: EJB Workings Question

I am trying to figure out why i am getting marshalling exceptions in preparing hte bean insteance.

And was wondering could someone explain the order things go in so i can attempt to figure out whats happening

Like if i do a set from a servlet to an entity bean

this is what happening when it errors:
Set entity context
EJB Findby PK
EJB STORE
start of set PMMain(in servlet)
Start of setAll(in ejb set)
End of setAll (end of that ejb set)
EJB STORE
EJB LOAD
RETURN of LOAD
Exception:ProjectEdit.savePMMain(): Transaction was rolled back: Error preparing bean instance: com.evermind.transaction.MarshallingXAException; nested exception is:

        com.evermind.transaction.MarshallingXAException
Insert PMMain Returning(return from servlet ... should have had 1 more line after the set)


This is when it is succucessful:
EJB STORE
Set entity context
EJB Findby PK
EJB STORE
start of set PMMain (again in servlet)
Start of setAll (set in EJB)
End of setAll (end of set in ejb)
EJB STORE
End of setAll Call (in servlet)
Insert PMMain Returning
EJB STORE

also no errors:
start of set PMMain
Start of setAll
End of setAll
EJB STORE
End of setAll Call
Insert PMMain Returning
EJB STORE
EJB LOAD
HERE
THERE
RETURN of LOAD
EJB STORE


Any ideas whats going on??

The only thing i can see .. is that it doesnt seem like to do the ejb load in the middle of the setAll call .... but i cant control that.

Reply via email to