I was trying to improve the performance of an
EJB call . I want to understand how many remote call ejb client makes to get the actual object .
If following are a general steps then is it true that client call two time remote call at the time of look up and at the time of create ? Can any body explain this steps
InformerHome home= (InformerHome)ctx.lookup( "ejb/informer" );
Informer informer = home.create();
// get handle into the EJB naming directory
InitialContext ctx = new InitialContext();
// get hold of the object you want by name
InformerHome home= (InformerHome)ctx.lookup( "ejb/informer" );
// get reference to business interface from home interface
Informer informer = home.create();
// use the business interface
informer.getTheTime() ;