context « jndi « Java Enterprise Q&A





1. java.lang.String in jndi default context with Apache Geronimo - How?    stackoverflow.com

In a servlet I do the following:

  Context context = new InitialContext();
  value = (String) context.lookup("java:comp/env/propertyName");
On an Apache Geronimo instance (WAS CE 2.1) how do i associate a value ...

2. Programmatically determining JNDI root context / ear name in JBoss 5.1    stackoverflow.com

The default jndi context in JBoss 5.1 for an EJB is "earname/ejbname/local". In some instances where injection is not available I need to manually do a jndi lookup, however if my ...

3. Are there any JNDI Context implementations that are simple, meaning they can be started/stopped etc w/out leaking    stackoverflow.com

I am not a particular fan of JNDI - i think its a bad technology when one wants to use OSGI for a number of reasons.

  • JNDI is not self contained.
  • Its too ...

4. Setting access control for different contexts in LDAP through JNDI    stackoverflow.com

I am creating separate contexts (eg: ou=marketing, ou=finance) in LDAP to store user entries of different departments under different contexts. I need to set the access control at the creation of ...

5. Access remote objects with an RMI client by creating an initial context and performing a lookup    stackoverflow.com

I'm trying to look up the PublicRepository class from an EJB on a Weblogic 10 server. This is the piece of code:

/**
     * RMI/IIOP clients should use ...

6. LDAP, JNDI, and Initial Context relationship    stackoverflow.com

What's the relationship among LDAP, JNDI, and the Initial Context. My understanding is JNDI is Java's way of looking up names. LDAP is a protocol which is used to look up names. ...

7. WebSphere: EJB initial context + cluster lookup    stackoverflow.com

I was wondering whether the following simple code will work, given that I have: 1. WebSphere ND.

  1. two application servers acting as web-servers.
  2. two application servers acting as application-servers (as cluster X)
Can I access ...

8. jboss jndi context is empty    stackoverflow.com

An ejb-jar deployed to jboss 7 has a jdni binding "java:global/foo!IFoo". Jboss management console shows this binding. The jndi port is 1099 as by default. A client on jboss gets an object to ...

9. How to set the JNDI context in SAP NWDS    stackoverflow.com

I am using NetWeaver Developer Studio. I tried to create the context for JNDI but the initial context is not setting up properly. I tried using the com.sap.engine.services.jndi.InitialReplicatingContextFactoryImpl but I keep ...





11. fetching naming contexts from LDAP using JNDI    forums.oracle.com

hi, i'm acessing LDAP using JNDI and i want ot kno how to fetch the naming contexts present in a directory server. presently i'm doing it using dattrs = ctx.getAttributes(ldapURL, new String[]{"namingContexts"}); String str = dattrs.toString(); String[] results = str.split(" "); int i=results.length; for(int j=1;j

12. WARNING: Could not bind factory to JNDI,Context is read only how can overco    forums.oracle.com

WARNING: Could not bind factory to JNDI javax.naming.NamingException: Context is read only at org.apache.naming.NamingContext.checkWritable(NamingContext.java:901) at org.apache.naming.NamingContext.createSubcontext(NamingContext.java:5 15) at org.apache.naming.NamingContext.createSubcontext(NamingContext.java:5 36) at org.apache.naming.SelectorContext.createSubcontext(SelectorContext.ja va:421) at javax.naming.InitialContext.createSubcontext(InitialContext.java:423) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:69) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFac toryObjectFactory.java:90) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java: 303) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav a:1213) at com.gssamerica.expensereporting.business.dao.HibernateUtil.(H ibernateUtil.java:38) at com.gssamerica.expensereporting.business.dao.RoleHome.roleList(RoleHo me.java:102) at com.gssamerica.expensereporting.business.listener.LookupCacheListener .cacheRoles(LookupCacheListener.java:168) at com.gssamerica.expensereporting.business.listener.LookupCacheListener .contextInitialized(LookupCacheListener.java:48) at org.apache.catalina.core.StandardContext.listenerStart(StandardContex t.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 343) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at ...