my ejb is successfully deployed in weblogic but the client prog. is giving problem.
my client:
import orderpack.*;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
public class OrderClient {
public static void main(String args[]){
try{
Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY ,
"weblogic.jndi.WLInitialContextFactory");
prop.put(Context.PROVIDER_URL,"t3://localhost:7001");
Context ctx = new InitialContext(prop);
Object obref = ctx.lookup("OrderManagement");
orderProcessHome home = (orderProcessHome)PortableRemoteObject.narrow(obref,orderProcessHome.class);
orderProcessRemote remote = home.create();
remote.process();
//remote.OrderProcessMethod();
}
catch(Exception e){e.printStackTrace();
}
}
}
the error i get:
OrderClient.java:26: cannot resolve symbol
symbol : method process ()
location: interface orderpack.orderProcessRemote
remote.process();
^
plz help me out
thanx
viru.
-
ejb deployed, client having prob. (2 messages)
- Posted by: viral shah
- Posted on: August 17 2005 06:38 EDT
Threaded Messages (2)
- in EJB HOw to run the Client program by mar reddy on August 23 2005 11:41 EDT
- in EJB HOw to run the Client program by mar reddy on August 23 2005 11:42 EDT
-
in EJB HOw to run the Client program[ Go to top ]
- Posted by: mar reddy
- Posted on: August 23 2005 11:41 EDT
- in response to viral shah
hi , pls give solution to complie and to run ejb client program in weblogic app server.
i was written all server side classes and created .jar file and deployed in weblogic server but i could able to compile the client prog.
i though problem with setting the classpath.
so could pls send path and classpath to run client
p_marreddy at rediffmail dot com
thanks
Marreddy -
in EJB HOw to run the Client program[ Go to top ]
- Posted by: mar reddy
- Posted on: August 23 2005 11:42 EDT
- in response to viral shah
hi , pls give solution to complie and to run ejb client program in weblogic app server.
i was written all server side classes and created .jar file and deployed in weblogic server but i could not able to compile the client prog.
i thought problem with setting the classpath.
so could any one pls send me path and classpath to run aclient
p_marreddy at rediffmail dot com
thanks
Marreddy