• Post Reply Bookmark Topic Watch Topic
  • New Topic

WebSphere InitialContextFactory external jar  RSS feed

Vijay Dharap
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am developing application deployed on Websphere App Server. For my application, I need to use a jar developed by external team. They have used following piece of code for looking up InitialContextFactory

If i use this code, I am getting following error.
The class "com.ibm.ejs.ns.jndi.CNInitialContextFactory" has been deprecated. It has been replaced with "com.ibm.websphere.naming.WsnInitialContextFactory".

If I reverse engineer the code and temporariely put referance of WsnInitialContextFactory as following the the error goes away.

Now my question is, I will not be allowed to reverse engineer external jar. But I want it to use the new InitialContextFactory. Is there any way by which I can instruct external jar code to use the WsnInitialContextFactory?

Thanks in advance,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!