Hi:

You can add weblogic.jar to your CLASSPATH.

Thanks
EJT.


--- Sandeep <[EMAIL PROTECTED]> wrote:
> Hi,
>    I write the following code for EJB 2.0 Client for WebLogic 6.1:
>
> import java.util.*;
> import javax.ejb.*;
> import javax.naming.*;
> import javax.rmi.*;
> import weblogic.jndi.*;
>
>
>
> public class NostraClient
> {
>  public static void main(String[] args)
>  {
>   String url = null;
>   try
>   {
>    if(args.length != 1)
>    {
>     url = "t3://sandeep:7001";
>    }
>    else
>    {
>     url = args[0];
>    }
>   Properties h = new Properties();
>
h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
>   h.put(Context.PROVIDER_URL, url);
>         Context initial = new InitialContext(h);
>         Object objref = initial.lookup("NostraHomeInterface");
> NostraHomeInterface home = (NostraHomeInterface)
> PortableRemoteObject.narrow(objref,NostraHomeInterface.class);
>         NostraRemoteInterface hello = home.create();
>    System.out.println(hello.generate());
>    hello.remove();
>   }
>   catch (Exception e)
>   {
>    e.printStackTrace();
>   }
>  }
> }
>
>
> My problem is that the client computer requires three files:
> the Home Interface
> the Remote Interface and the Client program.
> It also requires weblogic.jar
>
> How do I modify the client code such that weblogic.jar is not required?
>
> Regards,
> Sandeep
>
> ===========================================================================
> 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".
>


__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

===========================================================================
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