• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Create TopicConnectionFactory on LDAP

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic