IT tutorials
 
Technology
 

BlackBerry Development : Pushing Data to Internal Users - Controlling Access to Push, Locating Internal Push Recipients

9/14/2013 7:32:25 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

1. Controlling Access to Push

By default, anyone can push data to any BlackBerry device as long as he has access to the user’s BES. All the push capabilities described in this chapter are available to anyone who has the necessary information. The BES administrator can, and should, configure the BES so each push request can only be performed when the appropriate credentials (username and password) are provided.

The credentials sent to MDS-CS for authentication are sent in HTTP Basic Authentication format. To use this feature, the push application must add the credentials for the push user to the request HTTP headers. The credentials are passed as a Base64 encoded combination of the username and password (username:pswd). To perform this operation in Java, use the following code:

String auth = "Basic " + new BASE64Encoder().encode((username +
":" + pswd).getBytes());
mdsConn.setRequestProperty("Authorization", auth);

2. Locating Internal Push Recipients

Depending on the configuration of an organization’s BlackBerry environment, it might be difficult to locate the recipient for a push request. If the BES environment is configured with a single BES domain and a central push server (see Figure 1), the application can submit the push request to the central push server and it will locate the recipient’s BES and deliver the data.

Figure 1. Locating push recipients in a single BES domain

If the BES environment is configured with multiple BES domains or a single domain without a central push server, as shown in Figure 2, the task is more difficult. In this scenario, the push application has to maintain a list of all the valid MDS servers in the environment (in a single domain or multiple domains, it doesn’t matter—the MDS server is not aware of the other MDS servers) and push to each MDS server until the server accepts the push request.

Figure 2. Locating push recipients in a multiple BES domain environment

When the MDS server receives the push request, it validates the user against the BES Configuration Database. MDS returns a HTTP result code of 200 when it locates the user and accepts the push. It returns an HTTP result code 403 if the email address or PIN for the recipient cannot be located. The push application must loop through each MDS server until it receives confirmation that the push has been accepted before moving to the next push recipient.

When developers first learn about this feature, their first inclination is to modify the table containing push recipient information to include the MDS server information. When the push application retrieves recipient information from the table, it also retrieves the MDS server information. The problem with this approach is that users sometimes switch BES. Because of this, as soon as this table is created, it is out of date.

 
Others
 
- BlackBerry Development : Pushing to a Java Application,The Enterprise Push Process
- SQL Server 2008 : Task automation and alerts (part 2) - Event alerts, Error logs
- SQL Server 2008 : Task automation and alerts (part 1) - Maintenance plans
- SQL Server 2008 : Monitoring and automation - Performance Monitor
- Windows Phone 7 : Using the Game Framework (part 3) - Overriding Object Properties
- Windows Phone 7 : Using the Game Framework (part 2) - Adding Game Objects to the Game Host
- Windows Phone 7 : Using the Game Framework (part 1) - Creating Derived SpriteObject Classes
- SharePoint 2010 : Planning Your Search Deployment - Environment Planning and Metrics (part 3) - Typical Server Configurations
- SharePoint 2010 : Planning Your Search Deployment - Environment Planning and Metrics (part 2) - Initial Deployment Guidelines
- SharePoint 2010 : Planning Your Search Deployment - Environment Planning and Metrics (part 1)
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us