Configuration for Resin (version 3)
There are 2 main steps for enabling primrose to run within Resin.
Install jar file
Copy primrose.jar into Resin's user lib directory (eg RESIN_HOME/lib)
Configure resin.conf to load primrose:
Under the mainresintag in resin.conf, define a pool, and a web console. There are two sections to add :
-
Define a pool or two to be loaded
Note that you only require a single primrose.config file, yet each pool must be configured in resin.conf in order for Resin to load them.Make sure that the primroseConfigFile exists, and is configured correctly (see primroseConfig.html).<!-- Define a pool called 'examplePool' --> <resource jndi-name="java:comp/env/examplePool"> <type>uk.org.primrose.vendor.resin.PrimroseDataSource</type> <init> <poolName>examplePool</poolName> <primroseConfigFile>/usr/resin/conf/primrose.config</primroseConfigFile> </init> </resource> <!-- Define a pool called 'anotherPool' --> <resource jndi-name="java:comp/env/anotherPool"> <type>uk.org.primrose.vendor.resin.PrimroseDataSource</type> <init> <poolName>anotherPool</poolName> <primroseConfigFile>/usr/resin/conf/primrose.config</primroseConfigFile> </init> </resource>
-
Define an webconsole to provide web access to all pools (optional)
Make sure that the logFile directory exists, and can be written to by resin.<!-- Define a webconsole to provide web access to all pools (optional) --> <resource> <type>uk.org.primrose.vendor.resin.WebConsoleFactory</type> <init> <username>admin</username> <password>admin</password> <port>8090</port> <logFile>/usr/resin/logs/wbconsole.log</logFile> <logLevel>verbose,info,warn,error,crisis</logLevel> </init> </resource>
Also make sure that the port is available.
You may password protect the webconsole - if you not wish to, then just leave out the username and password elements.
-


