Creating a module for background processes
A service module interacts with an application server and performs other actions in the background. It starts automatically when the BlackBerry® device starts and runs without input from a BlackBerry device user. The service module can send messages to and receive messages from an application server and can add messages to the message list. The messages that it sends can use any protocol you want (for example, a native protocol, an email message protocol, or an SMS text message protocol). The user cannot stop the service module.
When the device starts, the service module should register an application folder and listen for updates to the folder, such as when the user deletes a message or marks a message as read or unread.