Raghunath wrote:
> Hi
>
> I'm learning ejb 3.0 and i need some clarifications.
> Please let me know
>
> Dependency Injuction
>
> ====================
>
> @EJB
> private static HelloWorld helloWorld;
>
> public static void main(String[] args) {
>
> System.out.println("Looking up HelloWorld");
> System.out.println("Using Dependency Injection ..
> invoking sayHello ");
> helloWorld.sayHello("Debu Panda!");
> System.out.println("Please view the console to see the
> output emitted by the EJB Method");
> }
>
> =====================
>
> How client JVM internally connects with the perticular ejb (suppose
> java:comp/env/ejb/HelloWorld)
We have a simple example that shows the steps involved :
https://glassfish.dev.java.net/javaee5/ejb/examples/Sless.html
In the simplest case, there is no need to provide any additional mapping
information
to point the remote @EJB reference to the target ejb. We cover the
global JNDI
mapping requirements in our EJB FAQ :
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
>
> alont with the client class , what extra things it need to have..
>
> please help me..
>
> raghunath nandyala