createDatasource(String jndiName, String url, String username, String password, String driver) Creates and saves data source in the module if it does not exist yet on the target server or in the module.
getServerDebugInfo() Return server debug info.
Note: if server is not running and needs to be up for retrieving debug info,
this call will return null.
setServerInstanceID(String severInstanceID) Set ID of the server instance that will be used for deployment.
public boolean
useDefaultServer() If the module wants to specify a target server instance for deployment
it needs to override this method to return false.
public void
verify(FileObject target, OutputStream logger) Invoke verifier from current platform on the provided target file.
Parameters: target - File to run verifier against. Parameters: logger - output stream to write verification resutl to.
Creates and saves data source in the module if it does not exist yet on the target server or in the module.
Data source is considered to be existing when JNDI name of the found data source and the one
just created equal.
Parameters: jndiName - name of data source Parameters: url - database URL Parameters: username - database user Parameters: password - user's password Parameters: driver - fully qualified name of database driver class created data source exception: DatasourceAlreadyExistsException - if conflicting data source is found since: 1.15
Deploys data sources saved in the module.
exception: ConfigurationException - if there is some problem with data source configuration exception: DatasourceAlreadyExistsException - if module data source(s) are conflictingwith data source(s) already deployed on the server since: 1.15
fireServerChange
final protected void fireServerChange(String oldServerID, String newServerID)(Code)
getConfigSupport
final public ConfigSupport getConfigSupport()(Code)
getConfigurationFiles
final public FileObject[] getConfigurationFiles()(Code)
Returns all configuration files known to this J2EE Module.
getConfigurationFiles
final public FileObject[] getConfigurationFiles(boolean refresh)(Code)
Gets the data sources saved in the module.
set of data sources throws: ConfigurationException - reports problems in retrieving data sourcedefinitions. since: 1.15
Gets the data sources deployed on the target server instance.
set of data sources throws: ConfigurationException - reports problems in retrieving data sourcedefinitions. since: 1.15
Return server debug info.
Note: if server is not running and needs to be up for retrieving debug info,
this call will return null. This call is also used by UI so it should not
try to ping or start the server.
Id of server isntance for deployment. The default implementation returns
the default server instance selected in Server Registry.
The return value may not be null.
If modules override this method they also need to override
useDefaultServer .
Return destination path-to-source file mappings.
Default returns config file mapping with straight mapping from the configuration
directory to distribution directory.
Returns list of root directories for source files including configuration files.
Examples: file objects for src/java, src/conf.
Note:
If there is a standard configuration root, it should be the first one in
the returned list.
Invoke verifier from current platform on the provided target file.
Parameters: target - File to run verifier against. Parameters: logger - output stream to write verification resutl to. true