Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch 2 2 as7-- HORNETQ-898 : Adding removeJNDI() to ConnectionFactory management api #174

Merged
merged 1 commit into from
May 14, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -365,4 +365,10 @@ public interface ConnectionFactoryControl
*/
@Operation(desc = "Adds the factory to another JNDI binding")
void addJNDI(@Parameter(name = "jndiBinding", desc = "the name of the binding for JNDI") String jndi) throws Exception;

/**
* Remove a JNDI binding
*/
@Operation(desc = "Remove an existing JNDI binding")
void removeJNDI(@Parameter(name = "jndiBinding", desc = "the name of the binding for JNDI") String jndi) throws Exception;
}
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,11 @@ public void addJNDI(@Parameter(name = "jndiBinding", desc = "the name of the bin
jmsManager.addConnectionFactoryToJNDI(name, jndi);
}

public void removeJNDI(@Parameter(name = "jndiBinding", desc = "the name of the binding for JNDI") String jndi) throws Exception
{
jmsManager.removeConnectionFactoryFromJNDI(name, jndi);
}

public long getCallTimeout()
{
return cfConfig.getCallTimeout();
Expand Down