The helloClient is not executing
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   srikanth_patil
Posted On:   Thursday, July 25, 2002 05:03 AM

I deployed the HelloBean by using weblogic6.1 and stored HelloClient is ClientClasses.and when i am trying to execute the HelloClient it is creating the context but it is unable to find the HelloHome saying that it is Unresolved could u help me my clinet progrmme is here import java.rmi.*; import javax.naming.*; import java.util.*; public class HelloClient { public static void main(String args[]) { try { Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory"); p.put(Context.PROVIDER_URL, "t3://localhost:7001"); Context ctx = new InitialContext(p); System.out.println(&   More>>

I deployed the HelloBean by using weblogic6.1 and stored HelloClient is ClientClasses.and when i am trying to execute the HelloClient it is creating the context but it is unable to find the HelloHome saying that it is Unresolved
could u help me my clinet progrmme is here

import java.rmi.*;
import javax.naming.*;
import java.util.*;
public class HelloClient
{
public static void main(String args[])
{
try
{
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://localhost:7001");
Context ctx = new InitialContext(p);
System.out.println("context created");
HelloHome home=(HelloHome)ctx.lookup("HelloHome");
System.out.println("home created");
Hello hel=home.create();
System.out.println("Hello created");
String retval=hel.sayHello("sriman");
System.out.println("returned " + retval);
hel.remove();
}
catch(Exception e)
{
System.out.println(e.getMessage() + "exception");
}
}
}

   <<Less
About | Sitemap | Contact