Kohei Nozaki's blog 

Updating and Configuring Derby shipped with James


Posted on Friday Feb 06, 2015 at 02:30PM in Technology


Put latest Derby jars

I used derby.jar and derbynet.jar of 10.11.1.1 to accept network connections. put these jars you needed into $JAMES_HOME/lib.

Define that jars to wrapper.conf

Comment out following line in $JAMES_HOME/conf/wrapper.conf:

#wrapper.java.classpath.94=%REPO_DIR%/derby-10.9.1.0.jar

Then put following line:

wrapper.java.classpath.94=%REPO_DIR%/derby.jar

Make Derby to accept network connections

Add following line to $JAMES_HOME/conf/wrapper.conf.

wrapper.java.classpath.131=%REPO_DIR%/derbynet.jar

Also additional system properties are needed:

wrapper.java.additional.15=-Dderby.drda.startNetworkServer=true
wrapper.java.additional.16=-Dderby.drda.portNumber=11527

Config derby.log

I prefer to place derby.log into $JAMES_HOME/log, and append log to exist one.

wrapper.java.additional.17=-Dderby.stream.error.file=../log/derby.log
wrapper.java.additional.18=-Dderby.infolog.append=true

Define shutdown hook of Derby

Lob streaming is not supported

Currently OpenJPA, James’s JPA provider, is not supported lob streaming for Derby. James stored mail data in lob so If you frequently use larger mails, consider using other databases instead of Derby.



No one has commented yet.

Leave a Comment

HTML Syntax: NOT allowed