There should be nothing special.

We do it all the time with our WebSphere environment and ours goes like
this.
 iiop://<ipAddress>:900/

A simple assumption : I assume you can talk between the boxes, ip wise.


-- Aravind

> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sripada Srinivas
> Sent: Friday, 21 April 2000 14:02
> To: [EMAIL PROTECTED]
> Subject: Re: WebLogic - Almost there
>
>
> Hi,
>
> Any one tried with Sevlet and EJB component on different machines??
>
> I have tried with Weblogic 4.5 and NAS4.0 - Both cases the
> servlet is unable to connect to the remote bean through look up services.
>
> Is there any special setting required for this apart from setting
> the provider_url to the proper IP address.
> I am using something like t3://192.123.1.1:7001 for  Web logic and
>
>
> Regards,
> Sripa
>
> "Nail A." wrote:
>
> > Hi.
> >
> > By using
> >
> >      Context initial = new InitialContext();
> >      Object objref = initial.lookup("MyAccount");
> >      BeanHome home = (BeanHome)PortableRemoteObject.narrow(objref,
> >   BeanHome.class);
> >
> > you'll get the Bean's HomeInterface. The client have to use the
> > javax.rmi.PortableRemoteObject.narrow(..)-method to be able to convert
> > the result of the method getEJBObject(), which have been invoked on a
> > handle, to the type of the remote interface.
> >
> > regards
> > Nail
> >
> > > -----Original Message-----From: John McDonald
> > > [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, April 19, 2000 12:33 PMTo: [EMAIL PROTECTED]
> > > Subject: WebLogic - Almost there
> > >
> > >
> > >
> > > Alright, first and foremost I want to thank all of you who
> helped me get
> > > this far. We're almost there.
> > >
> > > I'm now getting a semi-unusual error. A class cast exception, which
> > > tells me that I am somehow casting incorerectly which strikes
> me as odd,
> > > since this is an example from a book(Mastering EJB and the J2EE by Ed
> > Roman).
> > > Heres the exception and the code.
> > >
> > > --------- EXCEPTION -------------
> > > C:\JBuilder3\java\bin\javaw.exe -classpath
> > >
> >
> "D:\WebLogic\myserver\clientclasses;C:\JBuilder3\lib\dx3.0.jar;C:\
> JBuilder3\lib\dx3.0-res.jar;C:\JBuilder3\lib\jbcl3.0.jar;C:\JBuild
> er3\lib\jbcl3.0-res.jar;C:\JBuilder3\lib\jgl3.1.0.jar;C:\JBuilder3
> \lib\dbswing3.
> > > AppAccelerator(tm) 1.2.010 for Java (JDK 1.2), x86 version.
> > > Copyright (c) 1997-1999 Inprise Corporation. All Rights Reserved.
> > >
> > > java.lang.ClassCastException:
> > >
> >
> com.wiley.compBooks.roman.session.helloworld.HelloBeanHomeImpl_ServiceStub
> > > at bean.HelloClient.main(HelloClient.java:30)
> > >
> > >  --------- END EXCEPTION ------------------
> > >
> > > ------------ CODE ------------------------package bean;
> > >
> > > import javax.ejb.*;import javax.naming.*;import java.rmi.*;
> > > import java.util.Properties;
> > >
> > > /** * This class is an example of client code which invokes
> > >  * methods on a simple stateless session bean. */public class
> > > HelloClient {
> > >
> > >  public static void main(String[] args) {
> > >
> > >   try {   /*    * Get System properties for JNDI initialization    */
> > >       Properties props = System.getProperties();
> > >
> > >    /*    * Get a reference to the HelloHome Object - the
> > >     * factory for Hello EJB Objects    */
> > >    Context ctx = new InitialContext(props);
> > >    HelloHome home = (HelloHome) ctx.lookup("Hello");
> ///This is
> > > the line which throws the exception
> > >
> > >    /*    * Use the factory to create the Hello EJB Object    */
> > >    Hello hello = home.create();
> > >
> > >    /*    * Call the hello() method, and print it    */
> > >    System.out.println(hello.hello());
> > >
> > >    /*    * Done with EJB Object, so remove it    */   hello.remove();
> > >   } catch (Exception e) {   e.printStackTrace();  } }}
> > >
> > > -------------- END CODE ---------------------------
> > >
> > > Any ideas? Once again, thank you for all your help thus far.
> > >
> > >
> >
> ==================================================================
> =========
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > > body
> > > of the message "signoff EJB-INTEREST".  For general help,
> send email to
> > > [EMAIL PROTECTED] and include in the body of the message "help".
> > >
> >
> > --
> > Sent through GMX FreeMail - http://www.gmx.net
> >
> >
> ==================================================================
> =========
> > To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> > of the message "signoff EJB-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
> ==================================================================
> =========
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to