×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    26

    midlet as EJB webservice client....help

    i have a midlet that is a client for an ejb web service. i have the following problems, my goal is to make an sms program that sends and receives sms through http.

    1. when the midlet accesses the web service, i would like to find a way to later asynchronously push a message to the midlet. how can i do this?
    2. can my stateless web service access a stateful session bean to keep states of clients?


    if there are better approaches to my problem, please help.

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: midlet as EJB webservice client....help

    i would like to find a way to later asynchronously push a message to the midlet. how can i do this?
    From the server side, you will need to have SMS aggregator tie-up like Openmarket or value-first which you can use to send a port directed SMS to the mobile device so that it can be consumed by the midlet using pushregistry.

    thanks,
    ~Amitabh

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    26

    Re: midlet as EJB webservice client....help

    thanks alot for the help.

    i think this wil cost me some money, i suppose just opening a socket from the device and have the server send the message to that port should work right?

    but how do i differenciate users? can having users use unique ports work? have like a socket pool in the server.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: midlet as EJB webservice client....help

    i suppose just opening a socket from the device and have the server send the message to that port should work right?
    All these will work, if the application is always on and always connected to the server, you cannot initiate the connection from server to client like this..... other way the client polls the server after every few sec's to fetch if ithas anything new or not.

    Or Implement a TCP CIR(connection invocation request) channel, keep it always on, keep alive true.... passing a ping (keep-alive) package every 10min (keep alive time-out) and pass a special CIR packet when you want the client to make a get upadte to the server when you have anything new for it.

    Or switch to SIP based implementations.

    What you want TCP Push, this is reality only on IDEN networks with IDEN device, not on regular GSM networks with Nokia devices.

    Similary microsoft,iphone (APNS) and blackberry (PIN Message) they have their own ways of doing the same w/o SMS.

    but how do i differenciate users? can having users use unique ports work? have like a socket pool in the server
    Maintain a Hashtable of CIR server sockets at the server end, keeping the USERName/Userid.device ID as key and server socket object as value.

    thanks,
    ~Amitabh

Similar Threads

  1. Strange behavior when altering MIDlet connectivity setting
    By wilhelm4711 in forum Mobile Java General
    Replies: 0
    Last Post: 2009-11-18, 23:12
  2. j2me Midlet Verification/Validation Problem
    By Nikolaos in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2008-06-16, 16:31
  3. Opening connection to the secure element fails when restarting the midlet.
    By tfroidcoeur in forum Near Field Communication
    Replies: 6
    Last Post: 2007-08-24, 08:38
  4. Pushregistry, Security Alert after signing the midlet?
    By juppi in forum Mobile Java Networking & Messaging & Security
    Replies: 15
    Last Post: 2007-08-08, 11:04
  5. How to create two instances of midlet
    By marquito99 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-04-30, 01:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×