java - JBAS014360: EJB 3.1 FR 4.3.14.1 concurrent access timeout on org.jboss.invocation.InterceptorContext -
i'm doing migration jboss 7.1 , seam 2.3, having issues jbas014360: ejb 3.1 fr 4.3.14.1 concurrent access timeout on org.jboss.invocation.interceptorcontext
here action class:
@name("myaction") @scope(scopetype.conversation) public class myaction implements java.io.serializable { @in(create = true) private myservice myservice; @in(required = false) @out(required = true) private user user; @in(required = false) @out(required = false) private acquisition acquisition; @begin(join = true) @create public void init() { // more code acquisition = myservice.getnext(user); } public void savehistory() { myservice.savehistory(acquisition, user); } }
and service class.
@stateless @name("myservice") public class myserviceimpl implements myservice { @in(create = true) private entitymanager em; @transactionattribute(transactionattributetype.requires_new) public acquisition getnext(user user){ // em.createnamedquery(...); // acquisition.update(user); // em.flush(); // return acquisition } @transactionattribute(transactionattributetype.requires_new) public acquisition savehistory(acquisition acquisition,user user){ history = createhistoryobject(...); acquisition.gethistories().add(history); return acquisition; } }
getnext(user user)
method called init()
block , causes exception.
savehistory(...)
method called xhtml page , works expected.
what's wrong init()
block? change in ejb 3.1 or in seam 2.3?
can explain this?
i found way work.
if put the
@in(create = true) private entitymanager em;
in myaction.class
, nothing else, works.
still looking explanation of behavior.
any ideas?
Comments
Post a Comment