hi, i'm trying to get the EntityManager em from a Schedulable like this :
EntityManagerFactory emf=Persistence.createEntityManagerFactory("em"); emi=emf.getEntityManager(); but i don't know where to put the persistence.xml to register em; i have another persisntence.xml witch is in the persistence.par file in my application ,but now for scheduling i user -service.xml and hibernate.properties outside the application. please help, Viorel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3915528#3915528 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3915528 ------------------------------------------------------- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user