This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Create TopicConnectionFactory on LDAP  RSS feed

Massimo Pascale
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all ecuse me for my English.
This is my problem :
I would want to create a TopicConnectionFactory on a server LDAP using JNDI API but I have an Exception as :
LDAP: error code 32 - No such Object
this is th code :
Hashtable env = new Hashtable();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.ldapCtxFactory");
env.put(avax.naming.Context.PROVIDER_URL, "ldap://localhost:389");
DirContext ldp = new InitialDirContext(env);
Context jndiContext = new InitialContext();
TopicConnectionFactory topicConnectionFactory = (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
ldp.bind("TopicConnectionFactory", topicConnectionFactory); //**********HERE IS THE EXCEPTION

I hope that someone can help me.
Ciao ciao.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!