Friday, July 24, 2009

Create EJBTimer On Weblogic 10.3 using resource injection

Programming the EJB Timer Service

EJB 3.0 Metadata Annotations Reference

Interface TimerService.createTimer,%20long,

@Stateless(mappedName = "ejb/TestTimer")
public class TestTimerEJB implements TestTimer {

// resources that the container will inject
private TimerService timerService;

//inject data source
private javax.sql.DataSource datasource;

public void execute(Timer timer) {
System.out.println("Hi from TestTimerEJB timer");

No comments:

Post a Comment