You can call an EJB anywhere in a servlet. But of course, you must follow the rules of accessing it.
I'm sure weblogic has a good tutorial for this. Apparently it's your first time into ejb. Throwing in my 2-cents worth would not make it easier for you than recommending you to look for a tutorial you deem suitable.
A quick search through Google shows me a list of such site. One of those on top is
this Weblogic EJB Tutorial..
Good luck! I don't know about you, but I've been needing a lot of them since I started.
Originally posted by amarender reddy:
hello,
i'm sorry if i'm posting the query at the wrong place.
i just want to know how to call a Session EJB from my servlet.?
Is creating a home and remote interface using JNDI Naming operation works from my servlet's init()?
If so should I give a web.xml file along with weblogic-ejb-jar.xml and ejb-jar.xml................Or is there any other way.........plz do give me a quick reply.
Thanks in advance