Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Java EE 5 Development with NetBeans 6
  • Table Of Contents Toc
Java EE 5 Development with NetBeans 6

Java EE 5 Development with NetBeans 6

4 (5)
close
close
Java EE 5 Development with NetBeans 6

Java EE 5 Development with NetBeans 6

4 (5)

Overview of this book

This book is written as a tutorial, leading you through examples to illuminate the main theory and get you working with the Entity Framework as quickly as possible. This book is for C# developers who want an easier way to create their data access layer. You will need to be comfortable with ADO.NET, but you don't need to know anything about the Entity Framework. Along the way we will create some ASP.NET applications, so being familiar with this will also help.
Table of Contents (17 chapters)
close
close
Java EE 5 Development with NetBeans 6
Credits
About the Author
About the Reviewers
Preface
1
Debugging Enterprise Applications with the NetBeans Debugger
2
Identifying Performance Issues with NetBeans Profiler

EJB Timer Service


Stateless session beans and message-driven beans (another type of EJB discussed in the next chapter) can have a method that is executed automatically at regular intervals. This functionality is useful in case we want to execute some logic periodically (once a week, every day, every hour, etc.) without having to explicitly call any methods. This functionality is achieved by the EJB timer service.

In order to use the EJB timer service, an instance of javax.ejb.TimerService must be injected into the EJB via the @Resource annotation. This object will be used to create and cancel timers in two different methods in the EJB. Finally, the EJB must have a method to be invoked when the timer expires. This method must be decorated with the @Timeout annotation. The following example illustrates how to use the EJB timer service.

package com.ensode.ejbtimer.ejb;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.annotation.Resource;
import javax...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Java EE 5 Development with NetBeans 6
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon