FileDocCategorySizeDatePackage
ResourceDeployer.javaAPI DocGlassfish v2 API4493Fri May 04 22:35:42 BST 2007com.sun.enterprise.server

ResourceDeployer

public interface ResourceDeployer
Interface to be implemented by different resource types (eg. jms-resource) to deploy/undeploy a resource to the server's runtime naming context. The methods can potentially be called concurrently, therefore implementation need to do synchronization if necessary.

Fields Summary
Constructors Summary
Methods Summary
public voiddeployResource(java.lang.Object resoure)
Deploy the resource into the server's runtime naming context

param
resoure a resource object (eg. JmsResource)
exception
Exception thrown if fail

public voiddisableResource(java.lang.Object resoure)
Disable the resource in the server's runtime naming context

param
resoure a resource object (eg. JmsResource)
exception
Exception thrown if fail

public voidenableResource(java.lang.Object resoure)
Enable the resource in the server's runtime naming context

param
resoure a resource object (eg. JmsResource)
exception
Exception thrown if fail

public java.lang.ObjectgetResource(java.lang.String name, com.sun.enterprise.config.serverbeans.Resources rbeans)
utility method to find a resource from Resources beans and converte it to a resource object to be used by the implemented ResourceDeployer

param
name resource name (normally the jndi-name)
param
rbeans Resources config-beans
exception
Exception thrown if fail

public voidredeployResource(java.lang.Object resoure)
Redeploy the resource into the server's runtime naming context

param
resoure a resource object (eg. JmsResource)
exception
Exception thrown if fail

public voidundeployResource(java.lang.Object resoure)
Undeploy the resource from the server's runtime naming context

param
resoure a resource object (eg. JmsResource)
exception
Exception thrown if fail