[jboss-user] [EJB 3.0] New message: "Re: How to initialize the State of an EJB3 Stateful Bean"
jaikiran pai
do-not-reply at jboss.com
Mon Feb 1 03:05:40 EST 2010
User development,
A new message was posted in the thread "How to initialize the State of an EJB3 Stateful Bean":
http://community.jboss.org/message/523252#523252
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
You can use @Init. Here's what the EJB3 spec says:
> Section 4.3.10.1 of EJB3 Spec:
>
> If the bean is a stateful session bean and the client has used one of the create<METHOD> methods defined in the session bean’s home or local home interface to create the bean, the container then calls the instance’s initialization method whose signature matches the signature of the create<METHOD> invoked by the client, passing to the method the input parameters sent from the client. If the bean class was written to the EJB 3.0 API, and has been adapted for use with an earlier client view, this initialization method is a matching Init method, as designated by use of the Init annotation, or init-method deployment descriptor element[12]. If the bean class was written to the EJB 2.1 or earlier API, this initialization method is a matching ejbCreate<METHOD> method, as described in Section 4.6.4.
>
>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523252#523252
More information about the jboss-user
mailing list