-
1. Re: JBoss castor-Jdo session bean example?
alci Feb 14, 2002 8:15 AM (in response to pding)Hi,
I have got jboss-castorjdo working with Postgresql.
What I did is :
1) load the jdbc driver in jboss using jboss.jcml mbean org.jboss.JdbcProvider
org.hsqldb.jdbcDriver,your.driver.Class
//put your driver here, org.postgresql.Driver for example
2) configure the DataSource with :
MyDS
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
//here you can use your drivers XADataSource class instead
...
Attributes depending on you driver.
3) Add the castor-jdo mbean :
name="Configuration">file:../conf/default/database.xml
jdo/someName
0
false
false
false
true
4) Add you database.xml and mapping files in the right place (jboss_home/conf/default in the example)
That should work...
May I also advice you to spend 10$ for the commercial jboss doc, which will give you invaluable informations (at least, this was the case for me !)
Good luck
Franck