Package org.nuxeo.runtime.test.runner
Class JndiHelper
java.lang.Object
org.nuxeo.runtime.test.runner.JndiHelper
helper for common jndi operations copied from jboss Util class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidBind val to name in ctx, and make sure that all intermediate contexts existstatic voidBind val to name in ctx, and make sure that all intermediate contexts existstatic ContextcreateSubcontext(Context ctx, String name) Create a subcontext including any intermediate contexts.static ContextcreateSubcontext(Context ctx, Name name) Create a subcontext including any intermediate contexts.static voidRebind val to name in ctx, and make sure that all intermediate contexts existstatic voidRebind val to name in ctx, and make sure that all intermediate contexts existstatic voidUnbinds a name from ctx, and removes parents if they are emptystatic voidUnbinds a name from ctx, and removes parents if they are empty
-
Constructor Details
-
JndiHelper
public JndiHelper()
-
-
Method Details
-
createSubcontext
Create a subcontext including any intermediate contexts.- Parameters:
ctx- the parent JNDI Context under which value will be boundname- the name relative to ctx of the subcontext.- Returns:
- The new or existing JNDI subcontext
- Throws:
NamingException- on any JNDI failure
-
createSubcontext
Create a subcontext including any intermediate contexts.- Parameters:
ctx- the parent JNDI Context under which value will be boundname- the name relative to ctx of the subcontext.- Returns:
- The new or existing JNDI subcontext
- Throws:
NamingException- on any JNDI failure
-
bind
Bind val to name in ctx, and make sure that all intermediate contexts exist- Parameters:
ctx- the parent JNDI Context under which value will be boundname- the name relative to ctx where value will be boundvalue- the value to bind.- Throws:
NamingException- for any error
-
bind
Bind val to name in ctx, and make sure that all intermediate contexts exist- Parameters:
ctx- the parent JNDI Context under which value will be boundname- the name relative to ctx where value will be boundvalue- the value to bind.- Throws:
NamingException- for any error
-
rebind
Rebind val to name in ctx, and make sure that all intermediate contexts exist- Parameters:
ctx- the parent JNDI Context under which value will be boundname- the name relative to ctx where value will be boundvalue- the value to bind.- Throws:
NamingException- for any error
-
rebind
Rebind val to name in ctx, and make sure that all intermediate contexts exist- Parameters:
ctx- the parent JNDI Context under which value will be boundname- the name relative to ctx where value will be boundvalue- the value to bind.- Throws:
NamingException- for any error
-
unbind
Unbinds a name from ctx, and removes parents if they are empty- Parameters:
ctx- the parent JNDI Context under which the name will be unboundname- The name to unbind- Throws:
NamingException- for any error
-
unbind
Unbinds a name from ctx, and removes parents if they are empty- Parameters:
ctx- the parent JNDI Context under which the name will be unboundname- The name to unbind- Throws:
NamingException- for any error
-