Java 类javax.ejb.Schedules 实例源码
项目:actionbazaar
文件:NewsletterBean.java
/**
* Sends out the holiday newsletter
*/
@Schedules({
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "Last Thu", month = "Nov", year = "*"),
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "18", month = "Dec", year = "*")
})
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void sendHolidayNewsletter() {
// Sends out a holiday newsletter...
}
项目:actionbazaar
文件:NewsletterBean.java
/**
* Sends out the holiday newsletter
*/
@Schedules({
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "Last Thu", month = "Nov", year = "*"),
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "18", month = "Dec", year = "*")
})
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void sendHolidayNewsletter() {
// Sends out a holiday newsletter...
}
项目:actionbazaar
文件:NewsletterBean.java
/**
* Sends out the holiday newsletter
*/
@Schedules({
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "Last Thu", month = "Nov", year = "*"),
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "18", month = "Dec", year = "*")
})
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void sendHolidayNewsletter() {
// Sends out a holiday newsletter...
}
项目:actionbazaar
文件:NewsletterBean.java
/**
* Sends out the holiday newsletter
*/
@Schedules({
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "Last Thu", month = "Nov", year = "*"),
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "18", month = "Dec", year = "*")
})
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void sendHolidayNewsletter() {
// Sends out a holiday newsletter...
}
项目:actionbazaar
文件:NewsletterBean.java
/**
* Sends out the holiday newsletter
*/
@Schedules({
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "Last Thu", month = "Nov", year = "*"),
@Schedule(second = "0", minute = "0", hour = "12",
dayOfMonth = "18", month = "Dec", year = "*")
})
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void sendHolidayNewsletter() {
// Sends out a holiday newsletter...
}
项目:tomee
文件:FarmerBrown.java
@Schedules({
@Schedule(month = "5", dayOfMonth = "20-Last", minute = "0", hour = "8"),
@Schedule(month = "6", dayOfMonth = "1-10", minute = "0", hour = "8")
})
private void plantTheCorn() {
// Dig out the planter!!!
}
项目:tomee
文件:FarmerBrown.java
@Schedules({
@Schedule(month = "9", dayOfMonth = "20-Last", minute = "0", hour = "8"),
@Schedule(month = "10", dayOfMonth = "1-10", minute = "0", hour = "8")
})
private void harvestTheCorn() {
// Dig out the combine!!!
}
项目:Mastering-Java-EE-Development-with-WildFly
文件:SchedulerBean.java
@Schedules({ @Schedule(dayOfMonth = "Last"), @Schedule(dayOfWeek = "Fri", hour = "23") })
public void doPeriodicCleanup() {
logger.info("multi scheduler example");
}
项目:actionbazaar
文件:BidServiceBean.java
@Schedules(
{@Schedule(hour="16",dayOfWeek="Mon-Thu"),
@Schedule(hour="16",dayOfWeek="Mon-Thu")})
public void broadcastNewBids() {
}
项目:tomee
文件:SchedulesMetaTest.java
@Schedules({
@Schedule(second = "0", minute = "0", hour = "0", month = "*", dayOfMonth = "15", year = "*"),
@Schedule(second = "59", minute = "59", hour = "23", month = "*", dayOfMonth = "Last", year = "*")
})
public void method() {
}