I access the database with the Entity Manager like this :
@PersistenceContext(unitName = "jobs")
protected EntityManager em;
public Collection<T_Jobs> getJobs() {
return em.createQuery("from T_Jobs").getResultList();
}
for example to retrieve the jobs, but Id like to do that on the database which
I want.
I think at a solution, but I have to create a file -ds.xml fro each database
(hence for each client). Then I have to write the list of -ds.xml file in my
persistence.xml file.
I would have a number of fix database, that would be great, but that changes
everytyme. Therefore, I have to find a best mean.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915750#3915750
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915750
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user