InitialContext « jndi « Java Enterprise Q&A

Home
Java Enterprise Q&A
1.activemq
2.Ant
3.aspectj
4.axis
5.cxf
6.deploy
7.Development
8.ear
9.eclipse
10.ehcache
11.ejb
12.flex
13.grails
14.jax
15.jaxb
16.JBoss
17.jbpm
18.jdo
19.jersey
20.jetty
21.jms
22.jmx
23.jndi
24.junit
25.ldap
26.Library
27.log4j
28.netbeans
29.osgi
30.playframework
31.portlet
32.quartz
33.rabbitmq
34.restful
35.security
36.Session
37.soap
38.tapestry
39.Web Service
40.weblogic
41.websphere
42.wicket
43.workflow
44.wsdl
Java Enterprise Q&A » jndi » InitialContext 

1. How to mock the InitialContext class with jmockit?    stackoverflow.com

I'm using jmockit with my tests and with one class I wish to test, uses InitialContext directly. So I have the following:

public class MyClass {
  public void myMethod() {
  ...

2. Can I build a directory structure (JNDI) with the file based context factory com.sun.jndi.fscontext.RefFSContextFactory    stackoverflow.com

Using the com.sun.jndi.fscontext.RefFSContextFactory file based JNDI context factory and it seems to only allow 1 binding file in location you specify. For example

Hashtable properties = new Hashtable(2);
properties.put(Context.PROVIDER_URL,"file:///tmp/jms/mycontext");
properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
InitialContext ctx = new ...

3. Is it possible to get "everything" from javax.naming.InitialContext?    stackoverflow.com

Is it possible to retrieve "everything" (all names) from javax.naming.InitialContext? I didn't find any examples or documentation about it.

4. javax.naming.NoInitialContextException: Failed to create InitialContext using factory specified in hashtable    stackoverflow.com

I have small program which just creating intial context in unmanaged environment i.e. outside the container.I have been using Websphere 7.0. I have written following program to do the connection with application ...

5. JNDI + InitialContext stuff vs Reflection    forums.oracle.com

THRILLA IN MANILLA RUMBLE IN THE JUNGLE two superstars face off: Reflection API vs JNDI I hear there is more than one way to skin a cat wheneve ryou do any kind of software programming.. Do I use while or for loop, switch case or an if else etc etc etc. And they don't really matter. Is this one of those ...

6. JNDI InitialContext Question.    forums.oracle.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.