ibm liberty server.xml config example

liberty jpa2.0 可以和jaxws jaxb 2.2 和平共处

liberty jpa2.1 就不行,不过项目里用的是hibernate 是不用他默认实现,直接不加载jpa组件。

<server description="new server">

 

<!-- Enable features -->

<featureManager>

<feature>jsp-2.2</feature>

<feature>jaxb-2.2</feature>

<feature>jdbc-4.0</feature>

<feature>servlet-3.0</feature>

<feature>jaxws-2.2</feature>

<feature>ejbLite-3.1</feature>

<feature>localConnector-1.0</feature>

</featureManager>

 

<!-- To access this server from a remote client add a host attribute to 

the following element, e.g. host="*" -->

<httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>

<jdbcDriver id="db2universal" libraryRef="db2Lib"/>

<library id="db2Lib">

        <fileset dir="${shared.resource.dir}/lib/db2" id="db2Fileset" includes="db2jcc.jar, db2jcc4.jar" caseSensitive="false"></fileset>

</library>

<dataSource id="regiedb" isolationLevel="TRANSACTION_READ_COMMITTED" jdbcDriverRef="db2universal" jndiName="jdbc/REGIEAPP" type="javax.sql.DataSource" transactional="true">

<connectionManager numConnectionsPerThreadLocal="10" id="ConnectionManager" minPoolSize="1"/>

<properties URL="" databaseName="" password="" portNumber="port" serverName="" user="" driverType="4"/>

    </dataSource>

<!-- Automatically expand WAR files and EAR files -->

<applicationManager autoExpand="true"/>

 

    <applicationMonitor updateTrigger="mbean"/>

 

    <enterpriseApplication id="com-icss-regie-inspcert-ear" location="com-icss-regie-inspcert-ear-1.0-SNAPSHOT.ear" name="com-icss-regie-inspcert-ear"/>

</server>

 

-----------------------------------------------------------

 <server description="new server">

 

    <!-- Enable features -->

    <featureManager>

        <feature>jaxrs-2.0</feature>

   <feature>localConnector-1.0</feature>

<feature>jaxws-2.2</feature>

<feature>jdbc-4.1</feature>

<feature>jndi-1.0</feature>

</featureManager>

    <httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>

    <applicationManager autoExpand="true"/>

    <applicationMonitor updateTrigger="mbean"/>

    

    <jdbcDriver id="db2universal" libraryRef="db2Lib"/>

<library id="db2Lib">

        <fileset caseSensitive="false" dir="${shared.resource.dir}/lib/db2" id="db2Fileset" includes="db2jcc.jar, db2jcc4.jar"/>

</library>

<dataSource id="regiedb" isolationLevel="TRANSACTION_READ_COMMITTED" jdbcDriverRef="db2universal" jndiName="jdbc/REGIEAPP" transactional="true" type="javax.sql.DataSource">

<connectionManager id="ConnectionManager" minPoolSize="1" numConnectionsPerThreadLocal="10"/>

<properties URL="" databaseName="regiedb" driverType="4" password="" portNumber="" serverName="" user="/>

    </dataSource>

 

    <enterpriseApplication id="com-icss-regie-inspcert-ear" location="com-icss-regie-inspcert-ear-1.0-SNAPSHOT.ear" name="com-icss-regie-inspcert-ear"/>

</server>

 

------------------------------------------------------------------------------------------------------------------------

<server description="new server">

 

    <!-- Enable features -->

    <featureManager>

        <feature>jaxrs-2.0</feature>

   <feature>localConnector-1.0</feature>

<feature>jaxws-2.2</feature>

<feature>jdbc-4.1</feature>

<feature>jndi-1.0</feature>

</featureManager>

    <httpEndpoint httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>

    <applicationManager autoExpand="true"/>

    <applicationMonitor updateTrigger="mbean"/>

    

    <jdbcDriver id="db2universal" libraryRef="db2Lib"/>

<library id="db2Lib">

        <fileset caseSensitive="false" dir="${shared.resource.dir}/lib/db2" id="db2Fileset" includes="db2jcc.jar, db2jcc4.jar"/>

</library>

<dataSource id="regiedb" isolationLevel="TRANSACTION_READ_COMMITTED" jdbcDriverRef="db2universal" jndiName="jdbc/REGIEAPP" transactional="true" type="javax.sql.XADataSource">

<connectionManager id="ConnectionManager" minPoolSize="1" numConnectionsPerThreadLocal="10"/>

<propertie" databaseName="regiedb" driverType="4" password="password" portNumber="port" serverName="host" user="user"/>

    </dataSource>

<transaction recoverOnStartup="true" waitForRecovery="true" />

    <enterpriseApplication id="com-icss-regie-inspcert-ear" location="com-icss-regie-inspcert-ear-1.0-SNAPSHOT.ear" name="com-icss-regie-inspcert-ear"/>

</server>

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值