Questions tagged [jndi]

The Java Naming and Directory Interface (JNDI) is a Java API for a directory service that allows Java software clients to discover and look up data and objects via a name.

The Java Naming and Directory Interface (JNDI) is a Java API for a directory service that allows Java software clients to discover and look up data and objects via a name. Like all Java APIs that interface with host systems, JNDI is independent of the underlying implementation. Additionally, it specifies a service provider interface (SPI) that allows directory service implementations to be plugged into the framework. It may make use of a server, a flat file, or a database; the choice is up to the vendor.

For additional info check:

3073 questions
1
vote
1 answer

Is it possible to get Websphere deploymentDescriptor like ibm-ejb-jar-bnd.xmi via JMX?

I hope to get jndi binding name for EJBs from Websphere deploymentDescriptor via JMX. But I only found the method getDeploymentDescriptor which can only get the original ejb-jar.xml.Is it possible to get Websphere deploymentDescriptor like…
phiobos
  • 11
  • 1
1
vote
0 answers

Java Jndi connection gets full before max connection limit

I have five applications connected to each other, In this I have set max connection limit for each application 50 in context.xml file. like this,
1
vote
1 answer

Jboss client send message to remote hornetq in Jboss

I have a client run in JBoss (JB_Client) and it needs to send messages to a remote Jboss server (JB_Server) HornetQ. And Remote jboss server (JB_server) needs to send the response message back to it's HornetQ. So JB_Client MDB is listening to remote…
user2771655
  • 1,052
  • 3
  • 20
  • 38
1
vote
1 answer

My ant build suddenly started giving javax.naming.NoInitialContextException: Need to specify class name in environment or system property

I have a build.xml file which was working perfectly till yesterday, today it suddenly stared giving below exception... I did not do any modifications in the application, it was successfully identifying JNDI name previously, I cannot understand what…
1
vote
4 answers

How to clear cache in Pentaho

I am using Pentaho 5. My dimensions keep changing frequently and I need the changes to be applied to the dashboard, this is not possible because Pentaho keeps caching. I have created the cube using the datasource wizard and the querys using mdx over…
Sindu_
  • 1,347
  • 8
  • 27
  • 67
1
vote
1 answer

JMS : Closing naming context fails

This code throw an exception in context.close() : final Properties env = new Properties(); env.put(Context.INITIAL_CONTEXT_FACTORY, org.jboss.naming.remote.client.InitialContextFactory.class.getName()); env.put(Context.PROVIDER_URL,…
user1459961
1
vote
1 answer

ActiveMQ in JBoss - Using JNDI for jdbcPersistentAdaptetr

Running ActiveMQ in clustered environment with a Master/Slave relationship using Oracle as a datastore. Using a jdbcPersistentAdapter.
ed4becky
  • 1,488
  • 1
  • 17
  • 54
1
vote
1 answer

Tomcat JNDI + Standalone Java

All, I understand that one can't access Tomcat's JNDI provider from outside Tomcat i.e, can't use a stand-alone java class to invoke the tomcat jndi. But this was in older version tomcat 5 and 6 Does anyone here has an idea if this is feasible with…
Faz
  • 534
  • 1
  • 9
  • 27
1
vote
0 answers

Services with missing/unavailable dependencies error in JBoss EAP 6.2.0.GA

I am trying to migrate my project war from Tomcat 6 to JBoss EAP 6.2.0. When trying to deploy the war I am getting the following exception: 16:58:58,493 WARN [org.jboss.as.ee] (MSC service thread 1-4) JBAS011001: Could not resolve resource-env-ref…
Yogesh A
  • 11
  • 2
1
vote
1 answer

How to set Jboss Modeshape JNDI property

How can ı set jndi-name property on my local jboss modeshape repository named as a "sample" I've just tried, /subsystem=modeshape/repository=sample:add(jndi-name="jcr/sample") code but it fails { "outcome" => "failed", "failure-description"…
kamilc
  • 15
  • 4
1
vote
0 answers

JNDI lookup failed from different VM

When doing a lookup on a JNDI server from within the same vm that started the server (being part of a spring web app), resources that are bound to JNDI (in this case JMS queue and connection factory) are returned as expected. When connecting to the…
Florian
  • 1,142
  • 1
  • 9
  • 21
1
vote
1 answer

LDAP : ldapwhoami equivalent with JNDI

I'm using JNDI to connect to a LDAP directory, with a Kerberos authentication. I need to know the user which is currently connected. In other words, I need an equivalent of the command ldapwhoami in JNDI. Thanks for your help !
GuillaumeP
  • 504
  • 5
  • 19
1
vote
1 answer

I'm getting javax.naming.OperationNotSupportedException when trying to bind dbcp's BasicDataSource

I'm using Apache's commons DBCP 1.4 version of Jar. And I'm following JNDI example on binding BasicDataSource through fscontex. As shown in code provided by the below link http://commons.apache.org/proper/commons-dbcp/guide/jndi-howto.html. I have…
cmodha
  • 105
  • 9
1
vote
1 answer

LDAP java error: adding entry.javax.naming.directory.NoSuchAttributeException

I have a problem adding an entry in LDAP, precisely I want to add a user. class AddUser { public static void main(String[] args) { String userName = "manager"; String password = "pass"; Hashtable env = new Hashtable(); …
user840718
  • 1,563
  • 6
  • 29
  • 54
1
vote
1 answer

Config JNDI from web interface

Is there any way to specify jndi resource through JBoss AS7 admin interface? I have been looking around, but was unfortunate to find anything like that.
G1yyK
  • 216
  • 2
  • 7
1 2 3
99
100