Skip to Content
0
Oct 07, 2005 at 11:42 AM

Asynchronous Java Proxy (Outbound)

36 Views

Hi Friends,

I am working on Asynchrounous Java Proxies. I have developed an application.In which iam trying to send the Vendor details(Vendor Name,Vendor Number and City) from JAVA to JDBC through XI.

I am getting an null pointer exception when I execute the JSP application.

This is the part of Source Code of Java Class in my project : VendorSender.java

InitialContext ctx = new InitialContext();

Object ob = ctx.lookup("java:comp/env/ejbVendorOut_PortTypeBean");

VendorOut_PortTypeHome home =

(VendorOut_PortTypeHome) PortableRemoteObject.narrow(ob,VendorOut_PortTypeHome.class);

//Initialize the enterprise bean

vendrem = home.create();

} catch (Exception e) {

throw new Exception(

"Error instantiating Vendor01 EJB" + e.toString()+e.getStackTrace().toString());

}

}

Can any one help me out ,Where is the Error?

I have checked out with Java Proxy Problem post in SDN but still problem remains same.

Thanks in Advance,

Sudheer