Hi Raj,
EJB 3.0 supports Dependency Injection mechanism that allows the
container to inject the resources into your components. You may want to
look into some of the materials covered below.
Some sample examples:
https://glassfish.dev.java.net/javaee5/ejb/EJB30.html
Jsr220:
http://jcp.org/en/jsr/detail?id=220
You may want to look into our FAQ also:
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
--Mahesh
Raj Kumar wrote:
> Hi,
>
>
>
> We have just started a project and going to use EJB3.0.I would like to
> know 2 things.
>
>
>
> 1) Do we need to implement Service Locator Design patterns in
> EJB3.0 as we need to do the same in EJB2.1?
>
> 2) Or, EJB 3.0 provides some annotation for this.
>
>
>
> Please give me some tips on this or send me some link where I can get
> the information.
>
>
>
> Thanks in advance!
>
>
>
>
>
>
>
> Regards..... Raj.
>
> Tel. Office: 91-0120-4074526
>
> e-mail: raj.kumar_at_headstrong.com <mailto:raj.kumar_at_headstrong.com>
>
>
>
>
>
>
> ***The information transmitted is intended only for the person or
> entity to which it is addressed and may contain confidential and/or
> privileged material. Any review,retransmission,dissemination or other
> use of, or taking of any action in reliance upon, this information by
> persons or entities other than the intended recipient is prohibited.
> If you received this in error, please contact the sender and delete
> the material from any computer.***
>