I use this with Quartz Servlet: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=83739
like that: | @Stateless | @Name("agentjob") | public class AgentJob implements Serializable, Job | { | | @PersistenceContext | private EntityManager em; | | public void execute() | { | // ... | } | | } | and this in class that is instantiate for a scheduled job: | Hashtable<String, String> env = new Hashtable<String, String>(); | env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.LocalOnlyContextFactory"); | env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces"); | Context ctx = new InitialContext(env); | | Job job = (Job) ctx.lookup("AgentJob/local"); | | job.execute(); | I am using Tomcat / Quartz 1.5.2 / EEJB / Seam CR3... and this is only a test for now... Cavani View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948087#3948087 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948087 ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user