Configuring easily a database for a JBoss AS cluster
In GateIn project we sometime have to deal with the setup of a JBoss cluster. While JBoss clustering is quite easy to configure there are things you need to configure such as a shared database. In addition when doing tests you need to start from a fresh database. I will give you a tip I’m using when I’m setting up a GateIn cluster that can help you to save time for setting up a database.
By default GateIn uses the famous embedded database HSQLDB and it is very convenient because
- Deployed with GateIn, no need for extra setup
- Sufficient for doing development
- Easy to erase the database and start from fresh
When dealing with a GateIn cluster (or any other application that requires a database), ultimately you need a database that will be used by the cluster nodes. Does it mean I have to give up HSQLSDB? the answer is no with an extra configuration step.
By default HSQLDB comes as an in process database, but it is possible to use other configuration modes:
- Make the database open a port to accept remote connection
- Connect to a remote database
blog comments powered by Disqus