• Post Reply Bookmark Topic Watch Topic
  • New Topic

CNCtxFactory Class in SJSAS 8.2

 
Vijitha Kumara
Bartender
Posts: 3952
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm trying to use an Application client to work with a bean deployed in SJSAS 8.2. For that we should pass a properties file to InitialContext with the following parameters.

<blockquote>code:
<pre name="code" class="core">
Properties env = new Properties();
env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
env.put("java.naming.provider.url","iiop://localhost:3700");
Context ic = new InitialContext(env);
</pre>
</blockquote>

But I couldn't find the CNCtxFactory class in j2ee.jar or appserv-rt.jar under the com.sun.jndi.cosnaming package (i.e : infact there is no such package). Is that class contain in another jar file? or any other class can be used instead?

Thanks in advance,
 
Sandeep Murthy
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try searching for the class in all the jars in your appserver lib folder. You can use any application which can search through archives. By the way, which application server are you using.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!