Discussions

EJB programming & troubleshooting: ejb deployed, client having prob.

  1. ejb deployed, client having prob. (2 messages)

    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.
  2. in EJB HOw to run the Client program[ Go to top ]

    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
  3. in EJB HOw to run the Client program[ Go to top ]

    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