In order to call an EJB which resides on Weblogic from a Tomcat servlet i
believe all you need to do is include weblogic's classes in your web app's
classpath and perform an InitialContext instantiation using a
Hashtable/Properties object, as you would do when writing a standalone main
client program.
In WLS 5.1 that would include both weblogicaux.jar and weblogic\classes
directory; in WLS 6, weblogic.jar. Acccording to BEA's documentation it
sounds like you cannot get away with incuding only _some_ of the classes
mentioned above, although, through carefull trial and error you probably
can.

BTW: Although I am new to this group, sounds to me like the amount of jabber
invested in deciding whether Kam's questions are legit or not is a bit
exagerated, don't u think? You could simply ignore them, by that not hurting
anyone's feelings; That, of course, is my personal opinion.

zm.




-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Kam Premkumar
Sent: Monday, December 10, 2001 11:33 PM
To: [EMAIL PROTECTED]
Subject: Re: calling a ejb


I agree you guys. Even a small kid in java knows how to call an ejb from
an servlet. May be My question is wrong ?. I am running the servlets in
Tomcat and running the ejbs in weblogic. I dont know how to establish
the connection from tomcat servlet engine to Weblogic App server. This
is what I intent to mean.

PS : For Tim and alex. This mail listing is a casual place for knowledge
sharing. Here No body expects respects !!. Only solutions and knowledge
transfer. Anyway I dont want to hurt you guys !!, becuz I am hurt.

Thanks




[EMAIL PROTECTED] wrote:

> You right and the separation line is how much of a self respect one has.
> Yes there are planty of people including myself who could right the code
> that will call ejb from the setvlet.. or can we...???
>
> Call what... what method.....?  And what does it mean to call ejb.....?
You
> see how many questions can be raised from one. And jsp tutorial has a very
> good working sample of servlets and jsp's and ejb tutorial has a very good
> sample of EJB's and web and non web clients. And they are FREEEEEEEEEEE.
So
> if the guy would ask: where can I find good ejb and servlets samples
> then the answer is http://java.sun.com
>
> Otherwise RTFB rule still aplies
>
> Alex
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Chen, Gin
> Sent: Thursday, December 27, 2001 3:46 PM
> To: [EMAIL PROTECTED]
> Subject: Re: calling a ejb
>
>
>         I completely agree with you.. but.. where do we make that
separation
> of what is a stupid question?
>         I know, from getting this mailing list, I've seen ALOT of
questions
> that should be easy to figure out.
>         But then again.. obviously someone didnt figure it out. And from
the
> replies of the people that answer.. the question almost sounds legit.
>         I for one have asked questions that were not answered. And I have
> solved each of them. After I solved them, however, I start to wonder if
> maybe people didnt answer because the solution was so simple.. or because
> they themselves dont know. Usually I pick the former and, therefore, dont
> post my solutions. A few times, however, people have written directly to
me
> asking me for a solution should I find or receive one.
> -Tim
>
> -----Original Message-----
> From: Oleg Zhurakouksy [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 27, 2001 3:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: calling a ejb
>
>
> May be you right, but on the serious note....
> We are here to help each other. But we can't help anybody unless they want
> to help themselves.
> If this guy would spend at least 5 min to do some reaserch on the internet
>  I am not even talking about book store) he would stop asking all these
> stupid questions. And by doing it he would show everybody a lot of
respect.
> Otherwise........? I can't help him.
>
> Oh by the way Kam......
> if you curious what RTFB stands for:
>
> R - read
> T - the
> F - fu--ing
> B - book
>
> Have fun
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Wills
> Sent: Thursday, December 27, 2001 3:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: calling a ejb
>
>
> That isn't very nice. Maybe he hadn't had his shot of caffinee yet, or is
> still stuffed with turkey/goose/ham from Christmas. ;-)
>
> On Thu, 27 December 2001, Oleg Zhurakouksy wrote:
>
>>try to use RTFB rule
>>
>>
>
>
> ---------
> Mike Wills
> AS400 Programmer
> programmerATkoldarkDOTnet
> __________________________________________
> Launch your own web site Today!
> Create a Web site for your family,
> friends, photos, or a special event.
> Visit: http://www.namezero.com/sitebuilder
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to