DevPortal

How do I use -configuration Flag for Custom Node Configuration?


You can use the -configuration flag with the NodeCreator utility and pass the name of a configuration file as a parameter. For example: nodecreator.bat -configuration config.xml or nodecreator.sh -configuration config.xml.

The config.xml file can have the following structure:

<server-configuration>
 <configuration service-name="ResourceService">
  <datasource name="myDS" connection-factory="myCF" transaction-participation="true" description="No Description">
   <pool-properties min-pool-size="10" max-pool-size="20" initial-pool-size="2" refresh-interval-seconds="" connection-request-timeout-seconds=""
   idle-timeout-seconds="" cache-size=""/>
   <connection-validation sql="" class=""/>
  </datasource>
  <connection-factory name="myCF" description="" classname="COM.cloudscape.core.RmiJdbcDriver" url="jdbc:cloudscape:rmi: D:\CTS\j2eects\db_cs40\DB1"
  authorized-by="Container">
   <login-parameters user="" password="" mask-password="false"/>
  </connection-factory>
  <jms-adapter name="myAdapter" description="No Description" interface-class="com.pramati.jms.client.JMSProviderImpl">
   <properties>
    <property name="com.pramati.naming.cacheLookups" value="false"/>
    <property name="java.naming.factory.initial" value="com.pramati.naming.PramatiLocalContextFactory"/>
    <property name="java.naming.provider.url" value="rmi://localhost:9090"/>
    <property name="com.pramati.force.standalone.ctx" value="false"/>
   </properties>
  </jms-adapter
 </configuration>
 <auto-deploy-applications>
  <application>C:/ejb11/BankDesk/par/BankDesk.ear.par
  <application>D:/ejb11/jspDesk/par/jspDeskWeb.war.par
 </auto-deploy-applications>
</server-configuration>

As an example, the above adds the mentioned resources in the newly created nodes - the relevant entries are added to the resource-config.xml files.

The supported resources for this tag are:

The auto-deploy-applications tag allows you to specify a list of applications that would be automatically deployed on the nodes that are being created.


Related Topics:

© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal