PUSH information automatically starts java Mobile programs

Source: Internet
Author: User

Abstract
Sometimes, for an enterprise-level mobile application, it is very important to push information from the server to a mobile device and automatically activate an installed mobile application for necessary processing. The text message service (SMS) is used as the push Information protocol. Using the push registration mechanism, the JAVA tiny version application using Mobile Information Device Profile 2.0 has this feature.
Copyright Disclaimer: Any website authorized by Matrix must retain the following author information and links for reprinting.
Author: Srijeeb Roy; magic003 (author's blog: http://blog.matrix.org.cn/page/magic003)
Original article: http://www.matrix.org.cn/resource/article/44/44449_Push+JAVA+Mobile.html
Keywords: Push; JAVA; mobile
Mobile technology is becoming increasingly popular. The tiny version of Java, or Java ME (the new name of Sun's j2's Platform), is one of the most popular technologies for developing mobile applications. With Java ME, we can run a variety of wireless applications on handheld devices using JVM or KVM.
Connected Limited Device Configuration (CLDC) is included in Java ME. It is intended for devices that only have Limited resources and use KVM. Similarly, Mobile Information Device Profile (MIDP) is also included in Java ME, a cldc-based profile to run applications on Mobile phones. The application module running on a mobile device is called MIDlet and is a MIDP application. A MIDlet is mainly a group of classes that run in sequence, and they are controlled by the application management software (AMS) running on mobile devices.
The latest version of MIDP (2.0) introduces many new features to help developers build robust enterprise-level applications. One of the most important features is the push registration mechanism. In Java ME applications, we sometimes need to push data from the server and automatically start a mobile application on the device, without the need to explicitly start the device. Imagine a situation where a work term for his/her name is established, the user must be automatically notified and be responsive to the terms of work as soon as possible. The push registration mechanism of Java ME can easily push information to a Java ME application and automatically start the program. In this article, I will show you how to add the push registration feature to your mobile application.
The action of the Push registration mechanism can be described as follows:
1. MIDlet registers a port with the protocol name in the mobile device. If any information arrives at the specified port and the same protocol is used, AMS forwards it to the MIDlet. Static completion of registration using the Java ME application Descriptor (JAD) file. The program can also use the built-in API of the application to perform dynamic registration.
2. The slave server sends the information to a specific mobile device and registers the listening protocol and port with the MIDlet application.
3. After the information is transmitted to the mobile device, AMS calls the MIDlet application that registers the listener port and protocol. Once the information is transferred to the MIDlet, it is the responsibility of the application to process the information. Typically, an application opens a screen based on the information and allows you to perform transactions with the server.
In the example in this article, we will use a GSM (Global Mobile Communication System) Modem to push information from the server. Figure 1 describes the scenarios we will implement in this article at a higher level.

Figure 1. High-level scenarios from server push SMS messages to mobile devices
In the jad file, each push registration entry contains the following information: MIDlet-Push-<n >:< ConnectionURL>, <MIDletClassName>, and <AllowedSender>.
MIDlet-Push-<n>: register the property name for push. The MIDlet suite can contain multiple push registrations. The value of <n> starts from 1 and must use continuous ordinal numbers for the attached entries. The first missing entry will be aborted. Any remaining entries are ignored.
ConnectionURL: the connection string used by Connector. open.
MIDletClassName: the connection MIDlet. The specified MIDlet must use the MIDlet-<n> record to log in the manifest of the description file or jar file.
AllowedSender: a specified filter that limits which senders can properly start the request's MIDlet.
The MIDP 2.0 specification defines the syntax of the datagram and socket in-band connections. When other standards define push semantics for other connection types, they must define both the syntax expected by the filter domain and the expected format of the connected URL string.
In the jad file, a typical example of push registration is to use socket connection, which is similar to the following:
MIDlet-Push-1: socket: //: 77, com. sample. SampleApplication ,*.
In this example, the descriptor entries store a stream socket at Port 77 and allow all senders.
From server push information to mobile settings, there may be some problems: if we want to send information to a specific device that has registered a listening stream socket on a specified port, we must know the wireless network IP address of the mobile phone. In a wireless network, many mobile phones do not always connect to the environment (sometimes, the provider does not support static IP addresses in the network of the device), and sending information to the device is problematic. If we do not know the wireless IP address of the device, we cannot use a socket connection to send messages from the server to the device.
The short message service (SMS) can be used in this case. When using SMS, we specify the phone number of the target device. In this case, we do not need to know the IP address of the device. However, using SMS as a trigger also causes some problems: MIDP2.0 only defines the syntax for the datagram and socket in-band connections, but not for the SMS connection, therefore, it is not guaranteed that all devices supporting MIDP2.0 can use SMS as a trigger for push registration. However, the wireless message API (WMA1.1)-an Optional package that supports SMS in MIDP-is now supported by many mobile devices, so there is a greater possibility, as a trigger of the push registration mechanism, SMS is supported by many devices. For this article, I use the Nokia 6600 mobile phone, which supports SMS as a trigger for the push registration mechanism.
In addition, sending an SMS message from the server to the device is not simple, because there are many ways. The SMS service provider provides APIs (or exposes service URLs) through which you can send messages from your server applications to your specified mobile phone. However, this method relies on the SMS service provider and its special plan. You can use a GSM Modem to interact with your server application. In this article, I will use an open-source product, SMSLib for Java V1.0 (formerly jSMSEngine), which enables the GSM Modem to interact with your Java Server.
Another important thing to note here is that a simple SMS message will not activate the MIDlet. We must send an SMS message to the specific port of the MIDlet registration listener. Therefore, the software (or SMS service provider) used to send an SMS message must be able to send it to the port specified by the device. SMSLib for Java v1.0 supports this function.
When we use the GSM Modem scheme, we must understand that the GSM Modem will use the SIM card internally to send SMS messages. The SIM card depends on a mobile service provider. Therefore, each SMS message will incur the same cost as sending messages from a standard GSM mobile phone. On the contrary, for an enterprise-level application (depending on the service plan), sending batch SMS messages via the provider's SMS gateway will prove to be more cost-effective. However, if the application does not need to send a large number of SMS messages to start the MIDlet, the GSM Modem scheme will be an effective overhead, and can cancel special batch SMS service Dependencies from mobile service providers.
Although I recommend that you purchase a separate GSM Modem for your recent product, you are not required to buy it. Generally, many GSM mobile phone models have a built-in GSM modem. Any one of those mobile models can be used as a GSM Modem instead of a separate modem. In this article, I use another Nokia 6600 mobile phone instead of a separate GSM Modem, because Nokia 6600 has a built-in GSM modem.
Now, let's develop an instance program that enables us to send an SMS message from a Java Server application to a specified port of a mobile phone and automatically start a MIDlet in the mobile device.
Use push to register the feature development client MIDlet
To develop the client, we use Sun Java Wireless Toolkit (formerly known as j2-wireless Toolkit ). I use version 2.2. This product is free of charge and can be downloaded from Sun's website. To install and run this toolkit, you must have J2SE 1.4.2 _ 02 or an updated version installed on your machine.
I use Windows 2000 Professional operating system.
After installing Sun's toolkit, follow the steps described below:
1. Open the KToolBar from the Start Menu: select the program, then the j2e-wireless Toolkit 2.2, and then the KToolbar. Will open an application window, 2 SO.

Figure 2. Open KToolbar
2. Now, click the new project icon in the window just opened. A pop-up window is displayed, where you can specify the project name and MIDlet class name. Enter MySamplePushRegistryProject in the project name and com. sample. MySamplePushRegistry in the MIDlet class name.

Figure 3. Create a project
3. After step 2, another pop-up window will automatically appear, which will allow you to set other settings of the project. Make sure that you select the tag in the API. In this label, select JTWI from the drop-down menu of the Target Platform (if not selected ). Make sure that the CLDC 1.0 radio button is selected. Do not check the multiple selection boxes of the Mobile Media API (because no APIs related to multimedia are used ). See Figure 4.

Figure 4. Set API preferences
4. Now go to the push registration tag. Click Add. A pop-up window appears. In the connection URL field, enter sms: //: 50001, com. sample. MySamplePushRegistry in the class field, and enter * in the allowed sender domain *. See Figure 5.

Figure 5 set push registration attributes
5. After step 4, an entry will be added to the parent window. 6.

Figure 6. Set the attributes of push registration (continued)
6. Now enter the license label. Click Add. Select javax/microedtion/io/Connector/sms from the license tree and click OK. Repeat the same steps to add the javax/wireless/messaging/sms/receive and javax/microedtion/io/PushRegistry licenses.
7. After step 6, the three licenses will be added to the application. 7.

Figure 7. Add a license
8. Now enter the User-Defined tag. Here, we add User-Defined variables, which will include the SMS port. From our program, we can refer to this user-defined variable to read the SMS port. In this tag, click Add. Open a pop-up window. Enter SMS-Port as the property name. Select OK. The pop-up window appears. Enter 50001 as the SMS-Port value. 8.

Figure 8. add custom property SMS-Port
9. Now, click OK in the settings window. This action will be taken back to the KToolbar.
10. after step 9, if you observe the jad file generated by the preceding steps, C:/WTK22/apps/MySamplePushRegistryProject/bin/MySamplePushRegistryProject. jad (assuming that the j2_wireless Toolkit 2.2 is installed in directory C:/WTK22), you will find the complete configuration set in the previous step. The most important of all entries is: MIDlet-Push-1: sms: //: 50001, com. smaple. MySamplePushRegistry, *. This entry ensures that your application listens to SMS messages on port 50001.
Now let's focus on the code of the MIDlet application. Here, I only provide part of the code snippet of the MIDlet. Please refer to the resource to download all the code used in this application.

public class MySamplePushRegistry extends MIDlet
   implements CommandListener, Runnable, MessageListener {
  
   //....
  
   public void startApp() {
      smsPort = getAppProperty("SMS-Port");
      String smsConnection = "sms://:" + smsPort;
      if (smsconn == null) {
         try {
            smsconn = (MessageConnection)
               Connector.open(smsConnection);

            smsconn.setMessageListener(this);
         } catch (IOException ioe) {
            ioe.printStackTrace();
         }
      }
      display.setCurrent(resumeScreen);
   }
   public void notifyIncomingMessage(MessageConnection conn) {
      if (thread == null) {
         thread = new Thread(this);
         thread.start();
      }
   }    
   public void run() {
      try {
         msg = smsconn.receive();
         if (msg != null) {
            if (msg instanceof TextMessage) {

               content.setString(((TextMessage)msg).getPayloadText());
            }
            display.setCurrent(content);
         }
      } catch (IOException e) {
         e.printStackTrace();
      }
   }
   //other methods to follow
}

In this section, the following points are worth noting: the class MySamplePushRegistry integrates the MIDlet. This class implements the CommandListener, Runnable, and MessageListener interfaces. In the startApp () method of the MIDlet, we use the getAppProperty () method to get the value of the SMS-Port attribute. We also used Generic Connection Framework (GCF) to create a Connection to listen to SMS messages. The open () method of the GCF Connector class creates an SMS connection. If a message arrives, the notifyIncomingMessage () method is called, which creates and starts a thread (if not created ). In the run () method of the thread, the program waits for a message (smsconn. receive ()). When the message is received, we get the original message and set the message in the Alert class. In real-life applications, users usually open a screen to process messages.
Once your code is ready, use the create icon in KToolbar to create it. After compilation and error-free pre-verification are created, you need to package the application into a JAR. To complete this task, select the project menu, package, and create the package.
Before deploying an application to a real device, we first test whether the application is correctly transferred in the simulator. Select the project menu and run it through OTA. This step is to simulate the over-the-air installation of the MIDlet. The sequence diagram in Figure 9 describes all the processes. Keep this simulator window open.

Figure 9. Install the application in the simulator using the over air Method
Now, go to the File menu in KToolbar and select Utilities. A pop-up window is displayed, as shown in figure 10.

Figure 10. Enable Utilities
Click WMA, and then open the console. Another pop-up window is opened:

Figure 11. Open the WMA Utilities Console
Select the send SMS button in the window. The content of the window will change, as shown in Figure 12. In the select client area, select + 5550000 as the phone number. In the port text box, enter 50001. In the Message domain, enter Hi Test Message. Click send now.

Figure 12. send SMS messages from Utilities
If everything works well in the above steps, the simulator window, as shown in Figure 13, will show that a message has arrived at the simulated mobile phone number, telling the user that the message has arrived, and wait for approval.

Figure 13. The simulator MIDlet is activated by the SMS message
If you select Yes on the simulator, the MIDlet starts automatically, and the "Hi Test Message" is displayed in the simulator, as shown in figure 14.

Figure 14. The simulator MIDlet receives the SMS
The next step is to install the MIDlet on the real device. You can use OTA to install the application. For more information, see Sun's toolkit documentation. In addition to OTA, we can install the MIDlet via cable/infrared/bluetooth technology if the device supports those options. As a client device, I use Nokia 6600, which supports infrared technology, and because I have an infrared adapter, I use infrared technology to install MIDlet in Nokia 6600.
If the above steps run well, your client application is ready. Now it is time to develop the server application. In fact, it sends an SMS message to the MIDlet listening on port 50001.
Develop server applications to send SMS messages to specific device ports
As mentioned above, in order to develop code for the interaction between the server and the GSM Modem, I use the open-source SMSLib for Java, which uses the attention command (AT command) to interact with the GSM modem. It also uses Java communication API or RxTx to communicate with the operating system in use, and communicates with an external device (GSM Modem) to send AT commands.
To send messages to the specified port, the user data and the user data title indication (UDHI) domain of the Protocol Data Unit (PDU) must be modified. SMSLib completes it internally, so the complexity caused by sending SMS messages is encapsulated in the SMSLib code. If you are interested in observing how messages are correctly sent, you can carefully check the SMSLib code.

 

Perform the following steps to complete server encoding and deployment:
1. Download The SMSLib code from the SMSLib website. During download, smslib-java-v1.0.1.zip is supported. SMSLib for Java can be used with Java communication APIs or RxTx. Recently, Sun removed support for Java communication API for Windows, so it would be better to use RxTx. But if you already have a Java communication API, you can also use it to run with SMSLib. In this article, I will detail the methods for running the instance programs.
2. Start with Java communication API 2.0. First, make sure that you have installed the API correctly. Decompress javacomm20-win32.zip. In the commapi subdirectory, you will find the following file:
& #61548; javax. comm. properties
& #61548; win32com. dll
& #61548; comm.. jar
Copy javax. comm. properties to the lib directory of your Java Runtime Environment. Copy win32com. dll to the bin directory of your JRE. When running any program that uses SMSLib, make sure that comm. jar is in classpath.
To ensure that Java communication APIs are correctly installed, enter the commapi \ samples \ BlackBox directory from the command box. Set the PATH variable as follows: for example, the Home Directory of JRE is C: \ j2sdk1.4.2 _ 03 \ jre. Modify the JRE settings accordingly.
Set PATH =.; c: \ j2sdk1.4.2 _ 03 \ jre \ bin ;. Run the following command to run the Java black box program:
Java-classpath.; ../comm.. jar; BlackBox. jar; BlackBox.
If the Java communication API is correctly installed, a Swing window showing the available serial port (COM port) of your machine appears, as shown in Figure 15. When the window is closed, the command box will contain some lines related to the available COM port. The following example shows the command prompt output. Remember, depending on the available ports on your PC, the content of Swing windows and command line prompts may change. However, if you can see the GUI and the following lines in the command prompt box (as shown below), you can assume that the Java communication API has been correctly installed. After this test, close the Swing window to abort the Black Box program.

Figure 15. Test the Java communication API Installation
Instance command prompt box output:
COM1: PORT_OWNED
COM2: PORT_OWNED
Closing port 1 (COM2)
Closing COM2
Closing port 0 (COM1)
Closing COM1
3. Now it's time to connect the GSM Modem to your computer. I use a Nokia 6600 mobile phone as a GSM modem. Nokia 6600 does not have a serial port connector (COM port connector ). However, it provides infrared technology to connect to a computer and then act as a GSM modem. If you have a phone with a serial port direct connector, it will be easier to use. Generally, the actual GSM modem provides a serial port connector. However, this option also works if your device lacks a serial port connector but contains a built-in GSM modem that can be connected using infrared or bluetooth technology.
In order to implement the COM-side function without the physical COM port, you must map a virtual COM port to your infrared or Bluetooth connection. SMSLib requires a compatible GSM phone or GSM modem. Most GSM phones can be used if modem capabilities are provided. SMSLib uses a serial connection (physical or analog, such as Bluetooth, infrared, USB, etc.) to communicate with the GSM modem. With Nokia 6600, you can use SMSLib to send SMS messages, but because Nokia 6600 stores incoming messages in a memory card instead of a SIM card, these messages cannot be received in this mode. Similarly, Nokia 6600 does not allow reading messages from the memory card using the AT command. However, we only need to send SMS messages to activate our MIDlet. Nokia 6600 can successfully complete these steps (no need to receive SMS messages ). For phones connected using infrared or bluetooth technology, the most important thing is to map infrared or Bluetooth connections to a virtual COM port. Refer to your mobile phone document to check whether it supports Virtual COM port ing.
For example, I installed the Nokia PC kit on my PC. To connect to Nokia 6600 from my PC, I use an external USB infrared adapter. Therefore, in this case, I have installed an infrared driver on the PC.
Now, I use a USB port on the PC to connect to the external infrared adapter. On the Nokia 6600 device, I select the menu, connect, and then the modem. The options for connecting via infrared are under the modem. Now, I select the option "Connect" and place the mobile phone number within the valid range of the infrared adapter.
4. The next step is to verify that from the PC, we can use the AT command to access the GSM modem. To do this, select the Start Menu, program, attachment, communication, and then Super Terminal. A dialog box is opened and a logical name is requested. Provide any name you are willing to provide. For convenience, I provide the "GSM Modem" name ". Select OK.

Figure 16. Open a Super Terminal
5. Another pop-up window appears. In the use connection drop-down list, select the COM port name (virtual or actual), and the GSM Modem connects to the PC through this port. Take me as an example. It is COM4.

Figure 17. Select COM port in the Super Terminal
6. In the next dialog box (COM port attribute), click OK.
7. Now you will be taken to a window where you will enter some commands (for example, we will enter the AT command ). Enter the following command to test connectivity-But remember, when you enter the command, nothing will be written in the console: AT + CPMS = ?.
Key Point: Do not enter any unknown commands in the Super Terminal. This may permanently damage your mobile device or erase all data.
If everything goes well, you will see some output, as shown in 18. The output may be different, but there is no output, an output error, or the terminal does not respond to this connectivity error.

Figure 18. Execute the AT command in the Super Terminal
8. From the call menu, use the disconnect command to disconnect from the Super Terminal.
9. After completing the above steps, we can prepare to write the Java sample program. This program will send the SMS message to the specified port of the GSM Modem We Just configured:

import org.smslib.*;

public class SendMessageWithPortsSMSLib {
   public static void main(String[] args) {
      CService srv = new CService("COM4", 9600, "", "");
      System.out.println("SendMessage(): sample application.");
      System.out.println("  Using " + srv._name + " v" + srv._version);
      try {
         srv.setSimPin("0000");
         srv.connect();
         srv.setSmscNumber("");
         COutgoingMessage msg =
            new COutgoingMessage("+9198301...", "Message from smslib API.");
         msg.setMessageEncoding(CMessage.MESSAGE_ENCODING_7BIT);
         msg.setSourcePort(0);
         msg.setDestinationPort(50001);
         srv.sendMessage(msg);
         srv.disconnect();
      }
      catch (Exception e) {
         e.printStackTrace();
      }
      System.exit(0);
   }
}

In the code snippet above, we first use four parameters to create an instance of the CService class. The first parameter is the name of the COM port. (Take me for example. Here is COM4, because my GSM modem is connected to a virtual COM port. Make sure that the value here is changed based on your COM port name .) The second parameter specifies the baud rate. When the modem is connected, you will find this restriction. The third parameter specifies the composition of the mobile/GSM modem. The fourth parameter specifies the mode. Parameters 3 and 4 sometimes play an important role in a specific composition and mode that requires different AT instruction sets to interact with the GSM Modem. For example, the Sony Ericsson mode requires a different AT Instruction Set and logic. Therefore, with the jSMSEngine release, you can find a separate processing package for Sony Ericsson. For specific types of components and modes, jSMSEngine has different processing packages. For Nokia, the default Processing Package is good enough for Nokia 6600 and our purposes. Therefore, I did not specify any value for the third and fourth parameters.
After the CService is initialized, we use the connect () method to connect to the GSM modem. We set the SMSC number (SMS center number) to null. This will be obtained by the SIM card. After that, we use the class CoutgoingMessage () to create a sent message. The constructor of COutgoingMessage () requires two parameters: set the number of sent messages and the message itself. In a typical practical application, some indicators similar to digital code are sent as SMS messages. According to the Code, some actions are performed on the MIDlet side. Another important point is the setDestinationPort () method. Here we set the target port.
Figure 19 shows the detailed creation process.

Figure 19. Detailed creation process
Important Note: SMSLib uses J2SE 5.0 API in CLogger. java. CLogger. java has a row using the PrintStream constructor and uses the java. io. File type as the parameter. Constructors in this PrintStream class are supported only from J2SE 5.0. However, because I use J2SE 1.4, I changed the row from: stream = new PrintStream (new File (filename); to: stream = new PrintStream (new FileOutputStream (filename ));
After the change, I built the source code provided by SMSLib and created a new JAR using JRE 1.4.2.
10. To compile the sample program, make sure that there are new JAR (generated after you modify the CLogger code) and comm. jar in your classpath. Then compile the sample application.
11. Run the application after compilation. Make sure that the JAR mentioned in the previous step is in classpath. If everything goes well, you can see that the MIDlet installed on another device has been automatically started and your message is displayed.
Now, let's see how to use RxTx to replace Java communication API 2.0. You can download RxTx from SMSLib. When using RxTx, pay attention to the following points:
1. Copy RXTXComm. jar to the (JDKDIR) \ jre \ lib \ ext directory, and copy the rxtxSerial. dll file to the (JDKDIR) \ jre \ bin directory.
2. for use, SMSLib is packaged together with the Java communication API, but a small part of the code is modified so that it can be used together with RxTx. To allow SMSLib to be used with RxTx, modify CSerialDriver. java and delete the javax. comm. *; line .*;. Add line import gnu. io .*;. And then generate again.
3. RxTx also supports Win32. When I write this article, RxTx supports physical serial connections, but there are some exceptions for "virtual" serial ports, for example, connect the analog serial port through Bluetooth/infrared/USB. However, in actual situations, you will not use a mobile phone as a modem, but a real GSM Modem, which will be connected through the real COM (Serial) port. This will not be a problem. Now, taking me as an example, I receive some errors when sending an SMS message because my infrared connection has a virtual port ing. To eliminate those errors, I commented out some lines in CSerialDriver. In particular, locate outStream. flush ();, comment out, and generate again.
4. Now, start with Step 3 in the above list. In Step 11, make sure that when you run SendMessageWithPortsSMSLib, your classpath contains the recently generated JAR (for RxTx changes) and RXTXcomm. jar and rxtxSerial. the dll file replaces the Java communication API comm. jar and the corresponding dll file.
Note: SMSLib uses Java communication APIs or RxTx to call the operating system locally. I recommend that you do not embed the Code directly into the application server or Web server. An optional solution is to embed the code into a separate RMI (remote method call) server or Web service server and then access it from the application server. However, because we use a GSM Modem, the sending speed of SMS is very low; so if we call an interface (RMI or Web service) directly, we 'd better use an asynchronous design. For example, when you try to send a message to a device, put the required information (mobile number, port, message, etc.) into a Java Message Service queue. Write a message-driven bean to collect messages, and then use a Web service to call the service (embedded in the SMS sending code ).
I 've talked about a feasible method. You can choose any design that best fits your architecture. But when making any decision, remember the following two points:
Using a GSM Modem, the speed of sending SMS messages is not very fast (depending on the GSM Modem and SMS service provider you choose)
SMSLib uses Java communication API or RxTx, which will be called locally on the Operating System
Although I suggest using two Nokia 6600 mobile settings (one as a GSM Modem and the other as a Java ME client), you can use only one to test this behavior. First, install the MIDlet on the device. Then use the same device as the GSM modem. When sending an SMS message, send the message to the same mobile number as the mobile device of the GSM modem that you use as the message sending device. In this case, the mobile phone number of the sender and receiver is the same.
Summary
In this article, you learned how to use the push registration feature to write Java ME applications. At the same time, you also learned how to send an SMS message from the server and then automatically start the MIDlet. To test the push registration feature, you can use two mobile phones that support MIDP 2.0 and WMA1.1 (server-side SMS push is not required ), and the SMSSend and SMSRecieve sample programs provided by Sun Java Wireless Toolkit. However, in actual applications, you may need to send SMS messages from the server rather than from another MIDlet.
The code snippets shown in this article are not very complex; the steps for building an environment are very complex. However, once the environment is correctly set up, you will be very excited to see the use of server-side SMS push, push registration features run on real devices. If you encounter any problems when using SMSLib, you can always publish problems and request help from the SMSLib user group. Finally, I would like to thank Thanasis Delenikas, the owner of the SMSLib project, for sharing some valuable information about the recent development of SMSLib.
Related to the operator
Srijeeb Roy has a bachelor's degree in computer science and engineering from Jadavpur University in Kolkata, India. He works as a technical architect in a Java EE-based project at Tata Consultancy Services Limited. He has worked in the Java/Java EE field for more than six years, and has more than seven years of experience in the IT industry. He developed multiple internal Java frameworks for his company and customers. He also works in several other fields, such as Forte, CORBA, and Java ME.
Resource Source
Download the source code in the article:
Http://www.javaworld.com/javaworld/jw-04-2006/push/jw-0417-push.zip
Download Sun Java Wireless Toolkit:
Http://java.sun.com/products/sjwtoolkit/
Download SMSLib:
Http://smslib.org/
RxTx homepage:
Http://rxtx.org/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.