On Mon, 25 Sep 2000, Kamen wrote:
> Hi Sebastien,
> now - I tried the beans in the testbeans and testbeans2 examples as well.
> Hereafter I will present the some source code and output trace - both on the
> client and the server.
> 1)Client source code:
> import java.util.*;
> import javax.naming.Context;
> import javax.naming.InitialContext;
> import javax.rmi.PortableRemoteObject;
> import org.jboss.zol.testbean2.interfaces.AllTypesHome;
> import org.jboss.zol.testbean2.interfaces.AllTypes;
>
> public class TestClient {
> public static void main(String[] args) {
> try {
> InitialContext ic = new InitialContext();
> Object objref = ic.lookup("AllTypes");
> System.out.println("lookup ok");
> AllTypesHome home =
> (AllTypesHome)PortableRemoteObject.narrow(objref,
> AllTypesHome.class);
> System.out.println("narrow ok");
> AllTypes oAll = home.create("1");//this line is generating the
> exception!!!
If the create call is generating the exception, let's start with
the server code behind the "create" call. Can you post your bean
implementation class, or at least the ejbCreate method thereof?
Aaron
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]