weblogic

This task can generate deployment descriptors for WLS 6.0, 6.1, 7.0 and 8.1. The destinationFile attribute is ignored because this subtask creates multiple deployment descriptor files.

Implementing Class

xdoclet.modules.bea.wls.ejb.WebLogicSubTask

Attributes

AttributeDescriptionRequired
templateFileSets the template file for generation of weblogic-ejb-jar.xml. No.
cmpTemplateFileSets the template file for generation of weblogic-cmp-rdbms-jar.xml. Yes if its a nested element.
orderDatabaseOperations No.
enableBatchOperations No.
enableBeanClassRedeploy No.
databaseTypeSets the database type specified in the weblogic-cmp-rdbms-jar.xml deployment descriptor. This is a WLS 7.0 and higher feature. Possible values: DB2 INFORMIX ORACLE SQL_SERVER SYBASE POINTBASE

Valid values: DB2, INFORMIX, ORACLE, SQL_SERVER, SYBASE, POINTBASE
No, only used with 7.0 upwards, and optional even then.
poolnameSpecifies a default value for the pool-name element in the CMP descriptor, to use if no weblogic.pool-name tag appears on a bean (only applies when ejbspec=1.1) No.
datasourceSpecifies a default value for the data-source-name element in the CMP descriptor, to use if no weblogic.data-source-name tag appears on a bean. No.
versionSets the target WebLogic version to generate for. Possible values are 6.1, 7.0 and 8.1

Valid values: 6.0, 6.1, 7.0, 8.1
No, default is 6.1
persistenceSets the persistence type to use. Useful if you're using a different persistence manager like MVCSoft No, default is "weblogic"
createtablesIf "True" or "CreateOnly", then at deployment time if there is no Table in the Database for a CMP Bean, the Container will attempt to CREATE the Table (based on information found in the deployment files and in the Bean Class). Valid values are "True" and "False" for WLS Servers < Version 8.1 and "CreateOnly", "DropAndCreate", "DropAndCreateAlways", "AlterOrCreate" and "Disabled" for WLS Servers >= 8.1.

Valid values: False, True, Disabled, CreateOnly, DropAndCreate, DropAndCreateAlways, AlterOrCreate
No, default is "False" for WLS Servers < Version 8.1 and "Disabled" for WLS Servers >= 8.1
validateDbSchemaWithThe CMP subsystem checks that beans have been mapped to a valid database schema at deployment time. A value of 'MetaData' means that JDBC metadata is used to validate the schema. A value of 'TableQuery' means that tables are queried directly to ascertain that they have the schema expected by the CMP runtime.

Valid values: MetaData, TableQuery
No.
useIdsIf this attribute is set to true, XDoclet will generate id attributes in the XML document. Note that this is only available in some subtasks. No. Default is "false"
xmlencodingThe encoding of the produced xml file. If your XML file uses international characters, you might want to set this to "ISO-8859-1". No, default is "UTF-8"
schemaThe XML Schema to which the generated document should conform. No.
validateXMLIf this is set to true, the generated XML will be validated against its DTD or XML Schema. No, default is false.
acceptInterfacesIndicates whether or not to generate for interfaces. No, default is "true"
acceptAbstractClassesIndicates whether or not to generate for abstract classes. No, default is "true"
packageSubstitutionsSets the PackageSubstitutions attribute of the TemplateSubTask object No.
packageSubstitutionInheritanceSupportedIndicates whether or not package substitution should be inherited No, default is "true"
prefixWithPackageStructureIndicates whether or not to prefix with package structure. No, default is "true"
destinationFileThe destination file name. If a {0} is found it's assumed that a per class output generation is needed, so {0} is substituted with class name; otherwise a single file is generated with the specified name. No, default is determined by this task.
havingClassTagSets the HavingClassTag attribute of the TemplateSubTask object No.
ofType No.
subTaskNameSets an optional name for the subtask that will be seen in XDoclet's debug messages. No.
destDirSets the directory where the generated file(s) will be written. No.
mergeDirSpecifies the location of the merge directory. This is where XDoclet will look for merge files. No.

Merge Files

File nameDescriptionRelates to
weblogic-cmp-rdbms-beans.xmlAn XML unparsed entity containing weblogic-rdbms-bean for any CMP entity beans not processed by XDoclet.weblogic-cmp-rdbms-jar.xml
weblogic-cmp-rdbms-relationships.xmlAn XML unparsed entity containing weblogic-rdbms-relation for any CMR relationships of CMP entity beans not processed by XDoclet.weblogic-cmp-rdbms-jar.xml
weblogic-enterprise-beans.xmlAn XML unparsed entity containing weblogic-enterprise-bean elements for any beans not processed by XDoclet.weblogic-ejb-jar.xml
weblogic-security-role-assignment.xmlAn XML unparsed entity containing security-role-assignment elements.weblogic-ejb-jar.xml
weblogic-run-as-role-assignment.xmlAn XML unparsed entity containing run-as-role-assignment elements.weblogic-ejb-jar.xml

Nested Elements

ElementDescription
configParamSpecifies a configuration parameter for the subtask.
ofType
packageSubstitutionSubstitutes the package of the generated files.