weblogic中创建域的方法

weblogic中创建域的方法有
1.最简单的是使用weblogic提供的UI工具:Configuration Wizard,这是最傻瓜化的方法,应该也是最常用的方法
2.使用wlst提供的命令createDomain(domainTemplate, domainDir, user, password)方法,此方法既快捷又轻松,但是在创建时无法修改模板中定义的配置设置。
3.使用wlst手工创建,使用一系列的wlst命令,在创建域时可以修改配置,在需要批处理的脚本时,这种方法最有用
4.使用weblogic提供的ant任务weblogic.ant.taskdefs.management.WLConfig,按照bea的说法,这种方法基本已经是不建议使用了,建议使用wlst,下面是一段示例代码:

< taskdef name ="wlconfig"
classname
="weblogic.ant.taskdefs.management.WLConfig"
classpathref
="wls.classpath" />

< wlconfig url ="t3://${wls.host}:${wls.port}"
username
="${wls.username}"
password
="${wls.password}" >
< query domain ="mydomain"
type
="Server"
name
="${wls.server}"
property
="ccserver" />

< create type ="JDBCConnectionPool" name ="CCPool" property ="ccPool" >
< set attribute ="URL" value ="jdbc:oracle:oci:@hjzx2" />
< set attribute ="DriverName"
value
="oracle.jdbc.driver.OracleDriver" />
< set attribute ="Password" value ="oracle" />
< set attribute ="Properties" value ="user=shychjzx" />

< set attribute ="CapacityIncrement" value ="1" />
< set attribute ="InitialCapacity" value ="1" />
< set attribute ="MaxCapacity" value ="10" />
< set attribute ="RefreshMinutes" value ="0" />
< set attribute ="ShrinkPeriodMinutes" value ="15" />
< set attribute ="ShrinkingEnabled" value ="true" />
< set attribute ="TestConnectionsOnRelease" value ="false" />
< set attribute ="TestConnectionsOnReserve" value ="false" />
< set attribute ="Targets" value ="${wls.server}" />
</ create >

< create type ="JDBCDataSource" name ="CCDataSource" >
< set attribute ="JNDIName" value ="CCDataSource" />
< set attribute ="PoolName" value ="CCPool" />
< set attribute ="Targets" value ="${wls.server}" />
</ create >

< create type ="JMSJDBCStore"
name
="CCJDBCStore"
property
="ccjdbcstore" >
< set attribute ="ConnectionPool" value ="${ccpool}" />
< set attribute ="PrefixName" value ="cc" />
</ create >

< create type ="JMSServer" name ="CCJMSServer" >
< set attribute ="Store" value ="${ccjdbcstore}" />
< set attribute ="Targets" value ="${wls.server}" />
< create type ="JMSQueue" name ="RegistrationQueue" >
< set attribute ="JNDIName" value ="SendJMSQueue" />
</ create >
</ create >
</ wlconfig >


你可能感兴趣的:(oracle,UI,weblogic,ant,jdbc)