The answer is no. In the EJB design, create methods play a role of CONTRUCTORs. ----This is a design pattern.

jabber (jabber)
(#33272@0)
2001-3-14 -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技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=33272