Send and receive message using J2me

Hi All
I m new to j2me and it is my first professional task i will vary thankfull if you peoples will help me
Scenario is that like bank client will send account number to some mobile number. Mobile that receives(connect to server via usb or if u have any other idea please guide me ) this message will search database and retrieve result and send result back to the client.
i will vary thatfull for your responce
thanks in advance
Shahzad
Software Engineer
Allianz EFU

Hi, i currently working in a sms company, i think i can give u some picture~
ur scenario is, u wan a mobile user, to send a sms to bank, in order to perform someting. it will going to be like this
FIRST, u have to go to the mobile service provider (those company who offer u the mobile number), they will having a API that able to communicate to their SMS Inbox (just like ur email inbox)
SECOND, u have to apply a SMS Inbox at the mobile service provider with a short code given (see example below).
THIRD, u just develop a java application using the API the mobile service provider gave, when a sms is sent into that sms inbox, a trigger to ur application, and the msg can retrieve. it can be so easy like just receiveSMS(), you will get the sender phono number together with the sms content, take it and process whatever u like. after that, u can send the sms back to the user, using the same API provided by the mobile service provider too-- sendSMS(sender_mobile, content).
user sent a sms with the content "XYBANK BALANCE <account no> <password>" and send to 8885555 (example)
where
XYBANK = shortcode (actually represent the sms inbox name, just like ur email address)
BALANCE = ur own decide code, when u receive the sms, u split the msg, if u found "balance", then go to the db and take out the balance of the particular account no.
hopefully it will give u a brief pic how this thing can work. btw....if u develop for the academic purpose only...i dont think the mobile service provider will give u the API.... >.<
Message was edited by:
e-Biau

Similar Messages

  • How can i send and receive messages through CAN

    Hi,
    how can i send and receive messages using Vector CAN CARDXL

    As mentioned in this forum post, if you have a dll, this can easily be called from LabVIEW or CVI.
    I also went to the vector website and it does look like they have LabVIEW drivers available for download.
    Peter Flores
    Applications Engineer

  • HT3529 I am confused about messaging. Shouldn't I be able to send and receive messages with cellular data off?  I can usually send the message, but often do not receive messages until I either have wifi or turn cellular on.

    I am confused about messaging. Shouldn't I be able to send and receive messages with cellular data off and without wifi? I can send the message but often do not receive messages from others, iPhone or other, until  I turn on cellular or wifi.

    Depends on the type of Message.
    SMS messages will send and receive with data off.  and while you can guarantee you send using SMS you cannot guarantee that whoever replies to you does also. They may be replying thorugh iMessage if they are using iPhones.
    However Android should be sending through SMS.
    You can turn off iMessage if you want to, though people with limtied SMS text messaging in their plans may not appreciate it, and stop messaging you.

  • Send and receive messages faster?

    Hello everyone.
    I have a problem, I have a message queue on my computer that receives about 30,000 messages per minute, and I read all messages in the shortest time possible ..
    How can I do to send and receive messages in a much faster, there is some function or something similar please let me help.
    I'm use
    //for send
    myMsgProducer.send(myTextMsg);//enviamos mensaje
    //for recive
    if (msg instanceof TextMessage) {
              TextMessage txtMsg = (TextMessage) msg;
              // System.out.println("Read Message: " + txtMsg.getText());
    thanks in advance.

    I want to see 30.000 messages per minute, and the broker is on another machine where I difernte of the client.
    all you get to read what I store the broker in a mysql database.
    I do not know what you mean or concerns with persistence.
    here is my code....
    try{
                        Queue myQueue;
                        ParametroCola tmpCArga = parametros;
                        com.sun.messaging.ConnectionFactory myFactory = new com.sun.messaging.ConnectionFactory();
                        Session mySess = null;                    
                        Connection myConn =null;
                        myFactory.setProperty(ConnectionConfiguration.imqAddressList,""+tmpCArga.getIp()+":"+tmpCArga.getPuerto()+","+tmpCArga.getAgente()+"");
                        myConn = myFactory.createConnection("admin","admin");
                   myConn.start();
                   //Crea la sesion con la conexion
                   mySess = myConn.createSession(false, Session.AUTO_ACKNOWLEDGE);
                   //Creamos la instancia destino
                   //myQueue = new com.sun.messaging.Queue("green");
                   myQueue = new com.sun.messaging.Queue(tmpCArga.getQueu());
                   //Creamos al consumidor de mensajes
         MessageConsumer myMsgConsumer = mySess.createConsumer(myQueue);
         //Start the Connection created in step 3.
         //myConn.start();
         //Receive el mensaje de la queue.
         Message msg = myMsgConsumer.receive();
         if (msg.equals("")){
              System.out.println("No hay nada");
         else{
              //Recupera contenido de mensaje
              if (msg instanceof TextMessage) {
              TextMessage txtMsg = (TextMessage) msg;
              System.out.println("Read Message: " + txtMsg.getText());
              }//end else
         //Cerramos sesion y coneccion.
         mySess.close();
         myConn.close();
                   }catch (Exception e) {
    String mensaje = e.getMessage();
    System.out.println(mensaje);
                   }

  • Can ipod touch 4th generation send and receive messages from a phone number?

    I have an iphone number connected to imessage but my iphone broke.  On my mac messages app it allows me to be reached at (my phone number).  Is it possible on the ipod touch 4th generation to send and receive messages from my phone number as opposed to an email address?

    Only if you have an iPhone using with iOS 6 or greater using the same APple ID for Settings>Messages>Send and Recevice.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage

  • TS3276 I have no sound on my MacBook Air for sending and receiving messages. All sound settings have been checked and are OK. This problem has arisen many times and is intermittent in the sense that the sound returns and disappears for no apparent reason.

    I have no sound on my MacBook Air for sending and receiving messages. All sound settings have been checked and are OK. This problem has arisen many times and is intermittent in the sense that the sound returns and disappears for no apparent reason.

    Open System Preferences > Sound > Sound Effects
    Select:  Play user interface sound effects
    And make sure the Mute box is not selected.
    Now open Mail. From the Mail menu bar clik Mail > Preferences then select the General tab.
    Make a selection from the:  New messages sound  pop up menu.

  • My iPhone only sends and receives messages from email

    I am switching my iPhone 3GS formerly on AT&T to Straight Talk. I set up my phone, but the iMessage is acting up. I sign in to my Apple ID, and it has my number (grayed out) and my email as options to send and receive messages. When I go into settings > messages > send and receive, it only shows the email. This is very frustrating and I just want to figure it out. Any ideas?

    It's because the phone number hasn't activated yet. This could be because the APN settings for Straight talk are not correct. It also can take up to 24 hours for the number to activate through the iMessage servers.

  • Can we send and receive messages from iMessages ? If yes I am unable to do why plz. Send me the solutions THANKS.

    CCan we send and receive messages from iMessages if yes why I am unable to do it plz.send me solutions THANKS.

    Try reading through these troubleshooting guides for some help:
    If you get an error when trying to activate iMessage or ...
    If you can't send or receive messages on your iPhone, iPad ...

  • Using ipad2 wifi,cannot send or receive  messages using messages , running ios5

    ipad2 wifi,cannot send or receive  messages using messages , running ios5

    Problem solved
    Changed DNS settings to google public settings
    8.8.8.8

  • Send and receive messages on social apps using mobile data

    guys i cant seem to be able to use apps like whatsapp, fb messenger or hike to send or receive messages when connected over mobile data network. the only app working is hangouts. however all seem to be working over wifi. i use a vodafone 3g connection. please suggest some remedy as i am at my wits end. for whatsapp i cant even verify my number using mobile data connectivity. data is working for other purposes like downloading through google play or playing videos or searching the web.

    Hi AraniHalder
    Welcome to the Community.
    You forgot to mention the Lenovo model you are using and it's firmware build number(Settings->About phone....)
    Regards.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as ''ACCEPT AS SOLUTION"! 
    Unsolicited PM's will not be answered! ....Please post your question/s in the appropriate forum board.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Trouble send and receiving messages and trouble calling people or receiving phone calls

    Hello everyone, I bought a Blackberry Q5 one year ago and has worked perfectly since but on christmas day I had was struggling to send message to people I thought nothing of it since it was christmas and people would be wishing there families and friends a merry christmas. So i just carried on as usual not aware that the problem was much worse then i thought, since then I have tried time and time again to try text people and call them but nothing would happen.
    The Problems I am experiencing,
    Everytime I try sending a message it fails and times out after a while doesn't matter whom they are being sent to it's the same story no matter who I send them to, and then of course when i try calling someone the phone goes to the calling screen but doesn't make a sound for atleast 10 seconds then a message pops up saying "Call Failure, The call could not be connected. Please try again later". This message appears even when I ring '789' which is the number to find out what my balance is on my contract.
    At first I thought it was the Sim what was cauing the problems but when i swapped it into another Virgin phone i received quite an alarming amount of messages what would not come through on my phone, this is when i realised I am not just struggling to send messages but to receive them as well. I have scoured the internet for possible answers but nothing has worked, so far I have tried manually scanning for available networks and selecting the correct one which did not change the problem this didn't make things better nor did it make things worse.
    I have also tried changing the data services while roaming settings which again did not make any differences, I have tried changing network mode no changes again, turning the mobile network off all together and then turning it back on after 5 minutes no success there either. I have even reset the phone back to factory setting to try and fix the problem, but no, the problem still will not go away.
    Please if there is anyone out there who has any ideas on how to fix what is happening to my phone please do give me your advice, at this moment I really need a miracle to come around at the next corner.

    Hi rhupa!
    Here is an article that will help you troubleshoot this issue:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Mail Connection Doctor shows one or more red dots in the account Status column
    Check your Incoming IMAP or POP and Outgoing SMTP email account settings
    Use Apple's online Mail Setup Assistant to discover what the correct settings should be for both your Incoming (IMAP or POP) and Outgoing SMTP email servers. If your email service provider is not listed in the Mail Setup Assistant, visit your email service provider's website or contact their support staff to get the correct settings. You can use this "cheat sheet" when asking your email service provider about the settings you need.
    After you have the correct email service provider settings, make sure Mail is configured properly.
    Click here if your Incoming and Outgoing email account settings are correct, but the issue persists
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Why can't I send and receive messages on my ipad

    All of a sudden my ipad would not send or receive messages.  The settings look correct.

    Are you connected to the internet via wifi?
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Set Up Alert Sounds
    http://www.quepublishing.com/articles/article.aspx?p=1873027&seqNum=3
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    iOS 7 allows you to block phone numbers or e-mail addresses from contacting you via the Phone, FaceTime, or Messages
    http://howto.cnet.com/8301-11310_39-57602643-285/you-can-block-people-from-conta cting-you-on-ios-7/
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457#19087457
    How to watch FaceTime calls on the big screen with Apple TV
    http://www.imore.com/daily-tip-ios-5-airplay-mirroring-facetime
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    How to Receive SMS Messages on an iPad
    http://yourbusiness.azcentral.com/receive-sms-messages-ipad-16776.html
    Apps for Texting http://appadvice.com/appguides/show/apps-for-texting
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • I receive calls but can't place a call. I send and receive messages and mails. I drop some water on top of the phone.

    Accidentally I drop couple drops of water on the phone.
    The phone still works perfect.
    I send and receive mails, text messages, and I also can receive calls hear and talk.
    But when I want to place a call i automatically receive error message.
    I change my chip to other phone and worked perfect.
    I try using a different sim on iPhone and has the same problem, just can't make a call.
    I updated ios.
    I restore to factory.
    And still the same problem.
    Can someone help me ?
    Telephone company says they just cant help because is not line problem and "it seems they can't solve the hardware problem".

    marujelli wrote:
    Accidentally I drop couple drops of water on the phone.
    The phone still works perfect.
    But when I want to place a call i automatically receive error message.
    Apparently, your definition of "works perfect" is radically different from mine...
    Make an appointmet at the genius bar. An out of warranty replacement will cost you $149.

  • Java codes and apis to send and receive SMS using a GSM modem(iTegno3000)

    Could any one please send me the codes and apis that can be use to send and receive SMS through iTegno3000 modem(GSM modem).I am a srilankan undergraduate.I am looking forward to hearing from you soon.

    hi i am also have the same doubt ..did u get soluation for this means can u reply to me

  • I can't send and receive message with my 3GS french iphone with the iOS5. What can I do?

    I have install the new iOS5 and now i can't send or receive message. What can i do to resolve this problem? Can I downgrade to the iOS 4.3.5 and where can i find the information to do that

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro 
    https://discussions.apple.com/community/mac_os 
    http://www.apple.com/support/macbookpro
    This is helpful Mail Setup Wizard:
    http://www.apple.com/support/mail
    This, is not forum for notebook owners.
    I would post in Mountain Lion : Mail

Maybe you are looking for

  • Is there any way to find text highlighted in adobe reader and automatically copy it to comment boxes?

    If I use a pdf highlighted in Adobe Reader (metro) in another PDF reading program, one with functionality to retrieve and list various annotations on the PDF, it simply finds "sticky note" as Adobe Reader highlights the text but fails to copy and pas

  • FCP: Motion Distort Aspect Ratio -33.33?

    Good morning, I recently exported two different sequences from FCP. Both films were exported using 'QuickTime Movie' and 'Current Settings'. One of the films came out letter-boxed and the other did not. In investigating this I found the only differen

  • Configuring Legal Entity as Operating Unit without creating new OU

    Hi, I have read the doucment "120funmo.pdf" on page 25/60. Eastern operations can be created as Legal entity and identify as Operating Unit and Inventory organization without creating any new OU and INV. ORG. How this can be achieved? I have created

  • Any reason why I should use Safari on my PC

    I use Mozilla now. I now have an Iphone. Is there any reason why I should download and use Safari on my PC? I expect the functions will be different from IE or Mozilla or maybe better, but is it a good idea to download and use since I have an Iphone?

  • Display result Cloumn wise to Row wise

    create table t(table_id number primary key, Grade_id number, Value number); insert into t values(1,77,11); insert into t values(2,77,12); insert into t values(3,77,13); insert into t values(4,88,14); insert into t values(5,88,15); insert into t value