Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > SMS Gateway(Java Programming)

Reply
Thread Tools

SMS Gateway(Java Programming)

 
 
lady89 lady89 is offline
Junior Member
Join Date: Aug 2008
Posts: 2
 
      08-14-2008
I currently doing a java program on SMS Gateway where we can send and receive SMS using the GSM modem. We could send SMS from the website that is control by our admin. Once our admin send the broadcast question to registered users. We also set a specific format to our receive sms. Then the registered users can reply back answer to us. Then if the reply is in the correct or wrong format, we will send an auto reply. Now, my problem is the gateway sometimes jammed because it have to handle both receiving and sending sms at the same time.

I planned to use queue method(Linked List) to queue up the sms.I plan to queue the sending sms first before the gateway process the receiving sms.

I currently stuck with this.I tried using the following code:

Queue<SMSMessage> smsQueue = new LinkedList<SMSMessage>();
......
......
public void run() {
while(true) {
// peek at the head of the queue, but don't grab it
Object pull = smsQueue.peek();
SMSMessage enqueued = null;
// grab the head of the queue
if (pull!=null) {
enqueued = smsQueue.poll();
System.out.println("Enqueued successful");

//send the message here
String num = enqueued.getPhoneNo();
String msg = enqueued.getMessage();


Please help me... thanks alot..
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SMS gateway software, SMS gateway, SMS software, SMS server, SMPP software, WAP Push John UK VOIP 0 08-29-2007 05:14 AM
SMS gateway software, SMS gateway, SMS software, SMS server, SMPP software, WAP Push John ASP .Net 0 08-29-2007 05:08 AM
SMS gateway software, SMS gateway, SMS software, SMS server, SMPP software, WAP Push John Java 0 08-28-2007 05:53 AM
SMS Messages Funny SmS Jokes,Games,Status Checkers,Phone Directory Twinkle UK VOIP 0 05-06-2006 07:17 AM
TelePK.Com {SmS Jokes,Funny SmS Jokes Ready To Use,Mobile World} Pager O Rama Digital Photography 0 04-23-2006 12:27 PM



Advertisments