[jboss-user] [EJB 3.0] - Re: JNDI lookup of EJB3 SLSB from Quartz
jharby1
do-not-reply at jboss.com
Wed Dec 17 15:47:57 EST 2008
Ok, thanks here is the Quartz job execute method.
| public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
| try {
| Context ctx = getInitialContext("jnp://localhost:1099");
| FundingService fs = (FundingService) ctx.lookup("policyService-1.2/FundingServiceBean/remote");
| List<Check> checks = fs.getAllActiveChecks();
| System.out.println("RUNNING");
| }
| catch (Exception e) {
| e.printStackTrace();
| throw new JobExecutionException("Unable to execute a scheduled job", e, false);
| }
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197217#4197217
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197217
More information about the jboss-user
mailing list