NO. Because you cannot start a transaction in ejbCreate. The container will be responsible for transaction only in business methods.

guest (.)
2001-3-15 -05:00

回到话题: EJB:Dear Jabber,in a stateful session bean's ejbCreate(String),I retrieve a record from db to intialize the attributes.Could I do this in one of the constructors instead of ejbCreate?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论