weblogic

This task can generate deployment descriptors for WLS 6.0, 6.1 and 7.0.

Attributes

Attribute Description Required
databaseType Sets 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 No, only used with 7.0 upwards, and optional even then.
poolname Specifies 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.
datasource Specifies 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.
version Sets the target WebLogic version to generate for. Possible values are 6.1 and 7.0 No, default is 6.1
persistence Sets the persistence type to use. Useful if you're using a different persistence manager like MVCSoft No, default is "weblogic"
createtables If "True", 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). No.
validateDbSchemaWith The 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. No.
useIds If 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"
xmlencoding The 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"
schema Sets the Schema attribute of the XmlSubTask object. No.
validateXML If this is set to true, the generated XML will be validated against its DTD or XML Schema. No.
acceptInterfaces Indicates whether or not to generate for interfaces. No, default is "true"
acceptAbstractClasses Indicates whether or not to generate for abstract classes. No, default is "true"
packageSubstitutions Sets the PackageSubstitutions attribute of the TemplateSubTask object No.
packageSubstitutionInheritanceSupported Indicates whether or not package substitution should be inherited No, default is "true"
subTaskClassName Sets a different name for the subtask which will be seen in the log messages. No.
prefixWithPackageStructure Indicates whether or not to prefix with package structure. No, default is "true"
templateFile Sets the name of the template file to use for generation Yes if its a nested element.
havingClassTag Sets the HavingClassTag attribute of the TemplateSubTask object No.
ofType No.
subTaskName Sets an optional name for the subtask that will be seen in XDoclet's debug messages. No.
destDir Sets the directory where the generated file will be written. No.
mergeDir Specifies the location of the merge directory. This is where XDoclet will look for merge files. No.

Merge Files

File name Description Relates to
weblogic-enterprise-beans.xml An XML unparsed entity containing weblogic-enterprise-bean elements for any beans not processed by XDoclet. weblogic-ejb-jar.xml
weblogic-security-role-assignment.xml An XML unparsed entity containing security-role-assignment elements. weblogic-ejb-jar.xml

Nested Elements

Element Description
configParam Describe the method
ofType
packageSubstitution Substitutes the package of the generated files.