thanks ,it worked as you said.I had to copy in 2nd m/c the Remote stub and
Home Stub from the extracted ConverterClient.jar.I've used it like RMI ie,
IIOP here.
Dynamic downloading of stub CLASSES may not work for now ......
may also pl. answer :
1. I deployed AdderEJB as Session Bean and AdderServlet as an WebComponent
in J2EE RI and tested the adder.html and it worked.
Then undeployed WebComponent and with a client application in 2nd (client)
m/c
first accessed the methods of the Session Bean.It was also ok.
Now I wrapped the same application in a Servlet on JWS2.0 on 2nd m/c,
it given NullPointerException while trying to access the Bean methods.
What may be the problem ?? Is it not possible to call Remote methods of
a Bean from a servlet on JWS.in the lookup i gave
iiop://192.254.11.1:1059/MyAdder
.. and from a client application it perfectly works.
----- Original Message -----
From: Bo Xu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 2:34 AM
Subject: Re: Testing Sun's J2EE RI 1.2.1 kit 15 examples: Ex:1
> Hi pchakraborty,
>
>
> I am not sure about your email, but I suggest you try :-)
>
> 0
> copy ConverterClient.jar into your client computer (192.254.11.2),
> and set it into your CLASSPATH
>
> 1
> in 192.254.11.1:
> a j2ee -verbose
> b look "name service port :-)", I suppose it is 1050
>
> 2
> In your client code(which will run in 192.254.11.2), try the following
:
>
> ...
> Context initial = new InitialContext();
> Object objref = initial.lookup("iiop://192.254.11.1:1050/<your
JNDIName>");
>
> ConverterHome home=
> (ConverterHome)PortableRemoteObject.narrow(objref,
ConverterHome.class);
> ...
>
>
> Bo
> Sept.12, 2000
>
>
>
> pchakraborty wrote:
>
> > Hi experts,pl. help..
> >
> > I've just downloaded and installed JDK1.3 and J2EE 1.2.1 on my NT 4.0
m/c
> > and tested the Sun's example of ConverterClient on the m/c.
> > my questions are :
> >
> > 1. I am using J2EE RI 1.2.1.after deployment it shows client code at
> > http://192.254.11.1:9191/ConverterClient.jar and saved to
> > e:\ejbtest\ConverterClient.jar.JNDI name given was "MyConverter".
> >
> > which JNDI driver (SPI) has been used by J2EE RI here??
> > which naming /or directory service it has been bound to ??
> >
> > 2.From a client (192.254.11.2) on Win95 running JDK1.3 what I have to
set
> > in a Properties object to pass as a parameter to get the Initial
Context so
> > that it can look up
> > and download whatever necessary for it to execute.??(This client can
ping my
> > server).
> > May I get the exact lines of codes to be written (Win95 m/c and jdk1.3)
> > before giving
> > .. ie., how to construct the props object here......
> > Context ctx = new InitialContext(props)
> >
> > thanks a lot in advance
> >
> >
===========================================================================
> > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > > of the message "signoff J2EE-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".
>
===========================================================================
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".