Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

When doing the JNDI lookup of Statefull session bean,the variable is null

843830Jul 16 2009 — edited Jul 16 2009
Hi

I have a stateless session implementation bean A (generated from WSDL) which is called through webservice from SAP PI server.The impl bean A gets the connection instance using MDM API from SAP MDM(MasterDataManagement) whenever it is been called.

Since everytime the connection is obtained,the performance is slow,This is due to bad design of getting the connection everytime .

I am trying to have stateful session bean B which gets the connection from MDM once during deployment and later whenever the implementation beanA is called it will do a JNDI lookup of beanB to get the connection instance to perform MDM operation,


the issue is the connection is set in bean B during deployment,but when i do a JNDI lookup the connection variable is retreived as null ,it looks it is not persist.

Could someone clarify wht wrong im doing here.

Thanks
Sabarinathan

Edited by: sabarinathan_ks on Jul 16, 2009 2:18 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2009
Added on Jul 16 2009
1 comment
99 views