I am trying to get a handle on EJB and I am confused about somehting... Each EJB server has a default atabase and all the examples i look at show my beans creating a new database using the default databae. Can I choose my own database and if so how do i integrate it into my EJB server. And can I have the database already populated dn just hook into it?
You connect to a database via a connection pool. Your EJB's access the connection pool, and don't know anything about the physical database.
So: EJB -> Connection Pool -> Database
The connection pool is set up differently for each type of app. server.
You'd have to read through your App. server documentation to see how to set up the connection pool.