Closed a1730 closed 4 years ago
I'm not familiar with the Jetty 9 modules and I'm not sure what the btm-config.properties file has to do with that. Could you be more explicit?
Starting with Jetty 9.1, a new Module system was introduced, replacing the previous start.config + OPTIONS techniques from past Jetty Distributions. The module system allows the user to add Bitronix to a Jetty instance. When you want enable a module [http://www.eclipse.org/jetty/documentation/9.3.13.v20161014/startup-modules.html], you can use the --module=
All one need do to add Bitronix to jetty with the module file provided above is: java -jar /opt/jetty-distribution/start.jar --add-to-startd=btm
and Bitronix will be added to ${jetty.base}
, configured and ready to run.
Going further, one can configure bitronix with the resource loader. I am using this facility to provide default resources for a production environment so the operator does not need to modify Jetty XML to create the JNDI bindings. Hence the need for the properties file.
I used setResourceConfigurationFilename() in my jetty-btm.xml file, leveraging Jetty IOC, to point to an empty file in development where developer bind datasource objects to jetty JNDI but not for production. In production, we populate the resource properties file and leverage BTM read-only JNDI for the datasources.
Does this make sense?
Please close this request. I'm serving the file from my GitHub account. Thank you.
I would appreciate if someone in the core team can create an empty btm-config.properties file associated with the btm project for use in creating a Jetty 9 modules file. I had to reach into the zyeeda/docker github project to get a blank properties file but it would be nice if I don;t have to leave the BTM project for this.
Thank you.