You must have 3 xml with your bean:
In jboss3.0.6, do you mean that the file is standardjbosscmp-jdbc.xml?
and how to write the xml?
could you give me an example?
one more question:
do you mean that i have to package all three xml files and bean files together?
thank very much!
Here are the 3 files I mentionned.
I used XDoclet so were they automatically generated but you can do it by yourself.
It's a quite simple example where you just have a table called BONUS with 2 fields (ID the primary key, and BONUS).
I know, it's not very clever to use the same name for the table and a field ;-)
Those 3 files must be put in a repository called META-INF which must be package in your jar file:
|-------- your package <----- *.class
|-------- META-INF <----------*.xml
Hope it'll help you. Regards