Skip to main content

Posts

Showing posts from November, 2007

jboss with embedded derby in network mode

Embedding derby into Jboss In this post I want to show how you can start jboss with an embedded derby network database. The aim is, that when jboss starts: it will start derby open port 1527 for derby to receive jdbc calls create a new database if there is none existing create a datasource inside jboss You can now use any derby jdbc client to communicate with the database, and use derby datasource inside jboss as well. I had to implement three components: an mbean to start the derby network server a datasource to connect to derby database with option create=true an mbean that will get an initial connection so that database gets created Jboss mbean In Jboss you can deploy mbeans, which automatically get started on deployment. The implementation of an Mbean is very simple: you must create an interface that ends with Mbean and has methods start() and stop(), and implement a class for this interface that shares the same name without the Mbean part. Then you create an xml with a reference t...
Installing ubuntu 7.10 behind a proxy I installed my laptop Dell D830 behind a proxy with a password. After putting in the install CD, I get a tryout system that shows me how ubuntu will look like. In this system I already set the proxy, else I will get problems during installation that it cannot find the deb repositories. I made proxy settings under System - Preference - Network Proxy, and, under Synaptic - Preferences - Network. I think the latter is most important. This will make the installation work. After the installation I needed to set these proxy settings again.