Advertisement
Guest User

Untitled

a guest
Jun 10th, 2016
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.43 KB | None | 0 0
  1. <jmsActivationSpec id="batchActivationSpec" maxEndpoints="5">
  2. <properties.wasJms destinationRef="batchJobSubmissionQueue" destinationType="javax.jms.Queue" maxBatchSize="5" maxConcurrency="5" messageSelector="com_ibm_ws_batch_applicationName = 'LibertyBatchPOC' AND com_ibm_ws_batch_partitionNum = 1" remoteServerAddress="localhost:7280:BootstrapBasicMessaging">
  3. </properties.wasJms>
  4. </jmsActivationSpec>
  5.  
  6. <server description="new server">
  7.  
  8. <!-- Enable features -->
  9. <featureManager>
  10. <feature>wasJmsClient-2.0</feature>
  11. <feature>batchManagement-1.0</feature>
  12. <feature>batch-1.0</feature>
  13. <feature>javaMail-1.5</feature>
  14. <feature>batchManagement-1.0</feature>
  15. <feature>jdbc-4.1</feature>
  16. <feature>jndi-1.0</feature>
  17. <feature>localConnector-1.0</feature>
  18. <feature>jaxb-2.2</feature>
  19. </featureManager>
  20.  
  21. <!-- To access this server from a remote client add a host attribute to
  22. the following element, e.g. host="*" -->
  23. <httpEndpoint httpPort="9082" httpsPort="9445" id="defaultHttpEndpoint"/>
  24.  
  25. <!-- Automatically expand WAR files and EAR files -->
  26. <applicationManager autoExpand="true"/>
  27. <!---DB2 database setup-->
  28. <library id="DB2Lib">
  29. <fileset dir="${shared.resource.dir}" includes="*.jar"/>
  30. </library>
  31. <dataSource id="testDB" jndiName="jdbc/test" transactional="false">
  32. <jdbcDriver libraryRef="DB2Lib"/>
  33. <properties.db2.jcc currentSchema="TestSchema" databaseName="DB2C" password="password" portNumber="5002" serverName="aa.test.com" user="TestDB"/>
  34. </dataSource>
  35. <!-- Database setup for DERBY -->
  36. <!-- Database setup for DERBY Network DB -->
  37. <!-- Batch persistence config. References a databaseStore. -->
  38. <batchPersistence jobStoreRef="BatchDatabaseStore"/>
  39.  
  40. <!-- The database store for the batch tables. -->
  41. <!-- Note this database store is referenced by the batchPersistence element. -->
  42. <databaseStore createTables="true" dataSourceRef="batchDB" id="BatchDatabaseStore" schema="JBATCH" tablePrefix=""/>
  43.  
  44. <!-- Derby JDBC driver -->
  45. <!-- Note this library is referenced by the dataSource element -->
  46.  
  47. <library id="DerbyLib">
  48. <fileset dir="${shared.resource.dir}/derby/lib" includes="derbyclient.jar"/>
  49. </library>
  50. <!-- Data source for the batch tables. -->
  51. <!-- Note this data source is referenced by databaseStore element -->
  52. <dataSource id="batchDB" jndiName="jdbc/batch" type="javax.sql.XADataSource">
  53. <jdbcDriver libraryRef="DerbyLib"/>
  54. <properties.derby.client createDatabase="create" databaseName="${shared.resource.dir}/databases/BATCHDB" password="pass" portNumber="1527" serverName="localhost" user="user"/>
  55.  
  56. </dataSource>
  57.  
  58. <jdbcDriver id="derbyDriver" javax.sql.ConnectionPoolDataSource="org.apache.derby.jdbc.ClientConnectionPoolDataSource" javax.sql.XADataSource="org.apache.derby.jdbc.ClientXADataSource" libraryRef="DerbyLib"/>
  59.  
  60. <!-- Authorization and Security -->
  61. <keyStore id="defaultKeyStore" password="Liberty"/>
  62.  
  63. <basicRegistry id="basic" realm="ibm/api">
  64. <user name="bob" password="bobpwd"/>
  65. <user name="jane" password="janepwd"/>
  66. </basicRegistry>
  67.  
  68. <authorization-roles id="com.ibm.ws.batch">
  69. <security-role name="batchAdmin">
  70. <user name="bob"/>
  71. </security-role>
  72. </authorization-roles>
  73.  
  74. <batchJmsExecutor activationSpecRef="batchActivationSpec" queueRef="batchJobSubmissionQueue"/>
  75.  
  76. <!-- note that message selector need space around the equal sign -->
  77. <jmsActivationSpec id="batchActivationSpec" maxEndpoints="5">
  78. <properties.wasJms destinationRef="batchJobSubmissionQueue" destinationType="javax.jms.Queue" maxBatchSize="5" maxConcurrency="5" messageSelector="com_ibm_ws_batch_applicationName = 'LibertyBatchPOC' AND com_ibm_ws_batch_partitionNum=1" remoteServerAddress="localhost:7280:BootstrapBasicMessaging">
  79. </properties.wasJms>
  80. </jmsActivationSpec>
  81.  
  82. <jmsQueue id="batchJobSubmissionQueue" jndiName="jms/batch/jobSubmissionQueue">
  83. <properties.wasJms deliveryMode="Persistent" queueName="batchLibertyQueue" readAhead="AsConnection" timeToLive="0"/>
  84. </jmsQueue>
  85. <logging maxFileSize="200" maxFiles="10" traceFileName="trace.log" traceSpecification="com.ibm.jbatch.*=all:com.ibm.ws.jbatch.*=all"/>
  86. <applicationMonitor updateTrigger="mbean"/>
  87. </server>
  88.  
  89. <?xml version="1.0" encoding="UTF-8"?>
  90. <server description="BatchDispatcher">
  91.  
  92. <!-- BATCH DISPATCHER -->
  93.  
  94. <!-- Enabled features -->
  95. <featureManager>
  96. <feature>wasJmsClient-2.0</feature>
  97. <feature>batchManagement-1.0</feature>
  98. </featureManager>
  99.  
  100. <!-- JMS Configuration -->
  101. <batchJmsDispatcher connectionFactoryRef="batchConnectionFactory"
  102. queueRef="batchJobSubmissionQueue" />
  103. <batchJmsEvents connectionFactoryRef="batchConnectionFactory" />
  104. <jmsConnectionFactory id="batchConnectionFactory"
  105. jndiName="jms/batch/connectionFactory">
  106. <properties.wasJms remoteServerAddress="localhost:7280:BootstrapBasicMessaging" />
  107. </jmsConnectionFactory>
  108.  
  109. <jmsQueue id="batchJobSubmissionQueue" jndiName="jms/batch/jobSubmissionQueue">
  110. <properties.wasJms deliveryMode="Persistent"
  111. queueName="batchLibertyQueue" readAhead="AsConnection" timeToLive="0"></properties.wasJms>
  112. </jmsQueue>
  113. <!-- Server HTTP port setup -->
  114. <httpEndpoint id="defaultHttpEndpoint" httpPort="9081"
  115. httpsPort="9444" />
  116.  
  117. <!-- Database setup for DERBY -->
  118. <!-- Database setup for DERBY Network DB -->
  119. <!-- Batch persistence config. References a databaseStore. -->
  120. <batchPersistence jobStoreRef="BatchDatabaseStore" />
  121.  
  122. <!-- The database store for the batch tables. -->
  123. <!-- Note this database store is referenced by the batchPersistence element. -->
  124. <databaseStore id="BatchDatabaseStore" createTables="true"
  125. dataSourceRef="batchDB" schema="JBATCH" tablePrefix="" />
  126.  
  127. <!-- Derby JDBC driver -->
  128. <!-- Note this library is referenced by the dataSource element -->
  129.  
  130. <library id="DerbyLib">
  131. <fileset dir="${shared.resource.dir}/derby/lib" includes="derbyclient.jar" />
  132. </library>
  133.  
  134. <!-- Data source for the batch tables. -->
  135. <!-- Note this data source is referenced by databaseStore element -->
  136. <dataSource id="batchDB" jndiName="jdbc/batch" type="javax.sql.XADataSource">
  137. <jdbcDriver libraryRef="DerbyLib" />
  138. <properties.derby.client createDatabase="create"
  139. databaseName="${shared.resource.dir}/databases/BATCHDB" serverName="localhost"
  140. portNumber="1527" user="user" password="pass" />
  141.  
  142. </dataSource>
  143.  
  144. <jdbcDriver id="derbyDriver"
  145. javax.sql.ConnectionPoolDataSource="org.apache.derby.jdbc.ClientConnectionPoolDataSource"
  146. javax.sql.XADataSource="org.apache.derby.jdbc.ClientXADataSource"
  147. libraryRef="DerbyLib" />
  148.  
  149. <!-- Authorization and Security -->
  150. <keyStore id="defaultKeyStore" password="Liberty"/>
  151.  
  152. <basicRegistry id="basic" realm="ibm/api">
  153. <user name="bob" password="bobpwd" />
  154. <!--<user name="jane" password="janepwd" />-->
  155. </basicRegistry>
  156.  
  157. <authorization-roles id="com.ibm.ws.batch">
  158. <security-role name="batchAdmin">
  159. <user name="bob" />
  160. </security-role>
  161. </authorization-roles>
  162.  
  163. <!-- Enable Batch tracing for troubleshooting purposes -->
  164. <logging maxFileSize="200" maxFiles="10"
  165. traceSpecification="com.ibm.jbatch.*=all:com.ibm.ws.jbatch.*=all"
  166. traceFileName="trace.log" />
  167.  
  168. </server>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement