Push Registry :- "How to use"

hi ,
can anybody give me some tutorials link on how to use push registry, i had readed the tutorial on sun site but i am not able to understand it

http://developers.sun.com/techtopics/mobility/allarticles/#push
and http://www.google.com/search?hl=en&q=PushRegistry+tutorials

Similar Messages

  • The promblem of execution of Push Registry

    Hello,everybody!
    I have some problem about J2ME Push Registry.
    I used SMSLib API to send a sms message from server to motivate my program in my mobile phone,
    and the program on my mobile phone is from this page:
    http://discussion.forum.nokia.com/forum/archive/index.php/t-84092.html
    My problem is that the push registry just can run well "at the first time",
    that means the sms message just can motivate the program when just finishing installing the progaram,
    and then push registry can't work anymore,
    but if I remove the program on the mobile phone,and then re-install the program again,then push registry can run well another time.
    By the way,I've tried this on different mobile phones,one is ASUS v66,another is Sony Ericsson K750i,and the result is the same,just can run well "at the first time".
    Best Regards.

    Your "thinking" is wrong here. You can not use the column order to model your program flow. As SQL is set/tupel based, there is no given sequence of the execution order. Otoh you want to have a specific order in wich your functions must be executed otherwise the result will be wrong (or undefined). Thus here you need a procedural approach. This can be done by using PL/SQL for example.
    You would code your functions in that way, that they are working correctly independent from the place where they are called ie if function1 needs the setvalues function, this function must be called inside the function1 then.
    Are you sure you need all these functions in this procedural approach inside the sql-statement? This is mostly not needed and can be accomplished by using pure SQL. If not, may be your design is broken.

  • How to handle multiple SMS using push registry

    Hello all
    I m using push registry. for incomming sms
    My application have some tasks after reciving sms form a particular phone no. Application will starts When u get a SMS from a number say 122222.
    After reciving an sms application is busy in further task.
    What will happen when another sms comes??
    Will Application Suspendes?? or application listen that sms??

    hi vinay,
    My name is lakshman.I am alos trying to implement the sms and call option to my application.
    If you don't mind can you give me suggestions in the following
    1) how to Implement the call option in our application
    2)how to implement the sms option in our application
    i am waiting for your reply
    thanks in advance
    or else give me the site address where i can find the solutions
    ok thankyou
    lakshman

  • When i update to the latest version (7.0.3), there is a message appear to me when i open any application that contains notification such as (What'sApp or BBM),this message said (Connect to iTunes to use push Notification),How I can to stop these message?

    When i update to the latest version (7.0.3), there is a message appear to me when i open any application that contains notification such as (What'sApp or BBM) , this message said (Connect to iTunes to use push Notification) , How I can to stop these messages that appear to me constantly?

     Hi,
    One of my ex-colleagues has installed a NI-DAQ 6.5 in our system. [And I do not see any other naitional instruments card in the CPU of the computer, may be he removed it] I deleted the account and all his files in the system. When I am trying to install version8.0, its not getting installed and giving me a message that I should uninstall the previous version by going to Add/Remove programs in the control panel.
    I tried doing that, but the "Change/Remove" button does not seem to work...[There is no response and so unable to install the new version...]
    Any idea how can this problem be solved?
    It is a windowsXP operating system with SP2 installed on a machine with P4 processor.
    Thanks

  • How to use Enterprises Services Bundles In PI Services Registry

    Hi All,
    i need information regarding How to use Enterprises Services Bundles In PI Services Registry.
    please provide some information. please help me..
    regards,
    jas
    Edited by: jasmines123456789 on Nov 10, 2009 2:42 PM

    Hi,
        Enterprise Services (ES) bundles are collections of enterprise services, grouped by common business scenarios, which enable customers, partners and independent software developers to extend the functionality of the SAP Business Suite.ES bundles help create composite applications using SAP NetWeaver's enterprise services development and modeling tools. In this way, SAP is promoting an evolutionary path to SOA and lowering barriers to overall SOA adoption.
    SAP providing bundles of enterprises for evry industry,if you want to use any enterprise services then you have to read teh documentation for the servcies and how this service can help you to reuse,if you want to provided any extension for the same you can.
    All enterprise services stored in Service Registry,first you have to consume the services fromService Regsitry.Service Registry is the place holders where servies available.
    refer below link how to use Enterprise Service BundleS
    https://wiki.sdn.sap.com/wiki/display/ESpackages/Opportunity+Management
    Regards,
    Raj

  • When I click on my magazines, I keep getting a message "connect to ITunes to use push notifications", how do I get rid of this?

    When I click on my magazines, I keep getting a message "connect to ITunes to use push notifications", how do I get rid of this?

    I spent at least half an hour googling the error message today, perhaps more.
    Thanks for the link. I hadn't found that one.
    I followed the instructions and connected my iphone to iTunes for a sync. I even turned off my phone completely and started again.
    But I get the same error messages.
    What's your next suggestion? You seem a very helpful fellow.

  • Question about push registry

    hello, I'm a beginner in j2me and I'm developing an application that receive a message via socket, and I want my application to be always ready to receive the message even if it not running. I thought of static push registry put the thing I couldn't understand are:
    - my application must send different messages for each clients, so is pushing to the registry will help me here ??
    - when I use it how the connection be established (I mean do I have to write connecter.open()), because I use the dynamic one and by the example provided by sun I create the connection and then push it to registry ..???
    - do I need some specific code to be written on the server side ?
    - can u please give the steps of how to test static push registry ??
    hope u will help me ^_^
    thanks

    I understood what I want but I stuck in a problem with static push-registry, it work fine on the emulator but when I install it on a real device nothing happen.
    the device I use is E71 .. I want to know if anyone try push with it and he success or E71 is not supporting static push-registry.
    when I install the application it dose ask me if I agree to run it automatically ..... also, I try the dynamic one and it success...
    thanks

  • Whats the logic in push registry???

    hi,
    was jus doin this push registry thing. in short Midlet registers itself to AMS then whenever some event occurs such as time or something happnes at specific port then midlet is started....
    but in example application i saw and tried to make i have to keep my listner midlet running so that it can listen to push events. now wheres that AMS working.....????
    i thought push registry was some sort of demon working beind the scene and gets activated only when some event occurs. infect i should not call it deamon according to book it is dead and only activates when called by AMS due to some registred event....
    AAqib

    I don't understand the question. The Docs are pretty specific here...
    "When the application is not running, the application management software(AMS) listens for inbound notification requests. When a notification arrives for a registered MIDlet, the AMS will start the MIDlet via the normal invocation of MIDlet.startApp method."
    Like the docs say, your applet will be started when the desired even occurs. It does not need to be running to listen for events. This really is how it works. If you use the 'Alarm' functionality, your midlet will be started after a set amount of time. The Javadoc's on the PushRegistry even have example code.
    Are you having trouble with something specific?

  • PUSH REGISTRY will work in Emulator or not

    I want to know how to use push registry .
    First i will change the JAD file .
    When i run this in emulator , the changes made in JAD files are again changed to the default .
    So how to use this in emulator . Give the steps for that .
    Edited by: sathiya_sathiya on Apr 15, 2009 9:52 PM

    Please explain more details here so that you will get correct and appropriate answer for your query.

  • Help needed regarding sms push registry

    HI experts,
    Is it possible to send an sms to a mobile from servlet for invoking push Registry functionality?
    If yes, then tell me how?
    Any one helps me in this regard.
    Thanks and regards,
    raghavendra.M

    Yes.
    How to..
    1. Install a sms gateway and gsm modem.
    2. send sms using the gateway.
    Check out the nowsms gateway or kannel gateway.
    Cheers
    Phani

  • Push Registry - "ping ponging" midlets

    i am currently trying to build test apps that utilizes push registry using sockets
    basically, i have 2 midlets, let's name them midlet1 and midlet2
    1. i launch midlet1
    2. then i exit midlet1
    3. exiting midlet1 triggers the push for launching midlet2
    4. midlet2 launches by itself
    5. i then exit midlet2
    6. similarly, exiting midlet2 triggers the push for launching midlet1
    7. midlet1 launches by itself
    8. i tried repeating everything from step 1, but it doesnt work..
    anyone familiar with this situation?
    i tried closing the socket connection during destroyApp() and of course the threads are stopped as well, but obviously they didn't worked for me..
    Edited by: novarian_brian.balote on Sep 26, 2008 1:22 AM
    Edited by: novarian_brian.balote on Sep 26, 2008 1:23 AM
    Edited by: novarian_brian.balote on Sep 26, 2008 1:24 AM

    sure, so yes its only on midp2, the JAD stuff you're talking about is only for the pushregistry in midp2.
    how it works? you tell the AMS (application management system) on the phone that when it installs MyMIDlet it should attach it to some port (say... 5444 for example).
    cool so now its installed.
    now when your phone gets an SMS nothing happens... UNLESS that SMS is directed at port 5444. At that point, the AMS will invoke MyMIDlet.
    but ya, you need MIDP2.0

  • Deskjet 6988dt, how to use photo/envelope slot for printing 4x6 photo paper?

    Windows 7 Home Premium 64-bit OS.  Printer has the extra250 sheet paper tray.  Upper and lower tray work fine.  I can of course load photo paper in upper tray and print photos from there, but I was trying to load just one sheet of photo paper in the little slot since I don't want to have photo paper loaded all the time.  Since I have to use the generic Windows driver for this printer as HP doesn't have a driver update for this printer and Windows 7, the only selections I'm seeing in printer properties is "automatic, upper, lower".  I've tried all three of those settings and none take the paper from the little slot where I'm manually feeding the 4x6 photo paper.  What am I doing wrong?  Could it be that this feature just isn't enabled with the generic Windows driver?
    The reference/instruction documentation that came with this printer is very sparse.  I can't find any instruction on how to use the photo/evelope slot.  In fact I'd say overall the documentation is very poor.
    I just checked the HP site, still no Windows 7 64-bit driver available.
    Thanks for any help or ideas.

    Found a .pdf document on line for the Desjet 6980 series printers. Much more comprehensive than what came with the printer.
    http://h10032.www1.hp.com/ctg/Manual/c00591373.pdf
    Follow these steps to use the photo/envelope feeder to print a single photo:
    1. Insert the photo paper into the photo/envelope feeder with the side to be printed on
    facing down.
    2. Gently push the photo paper into the photo/envelope feeder as far as it will
    comfortably go.
    3. Slide the photo/envelope feeder forward as far as it will go.
    4. Print the photo.
    Problem was, although I was inserting the 4x6 photo paper into the feeder, I wasn't pushing the little plastic slide forward.

  • How to use bean in forms

    i create one form based on emp. then i create beanarea and set its "Implementation Class Property"
    to oracle.forms.demos.Calendar.
    i copied calendar.jar from D:\oracle\ds9i\forms90\demos\jars to this lacation
    D:\oracle\ds9i\forms90\java
    after i write D:\oracle\ds9i\forms90\java\calendar.jar
    in the below registry paths:
    forms90_classpath
    forms90_builder_classpath
    forms90_path
    but not working.i am new in oracle plz help. i want to know how to use bean in forms

    1. \forms\server\formsweb.cfg
    archive_jini=frmall_jinit.jar,FormsProperties.jar
    2. regedit
    HKEY_LOCAL_MACHINE => FORMS_BUILDER_CLASSPATH
    C:\DevSuiteHome_1\forms\java\frmbld.jar;C:\DevSuiteHome_1\jlib\importer.jar;
    C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\jlib\utj.jar;
    C:\DevSuiteHome_1\jlib\dfc.jar;C:\DevSuiteHome_1\jlib\help4.jar;
    C:\DevSuiteHome_1\jlib\oracle_ice.jar;C:\DevSuiteHome_1\jlib\jewt4.jar;
    C:\DevSuiteHome_1\jlib\ewt3.jar;C:\DevSuiteHome_1\jlib\share.jar;
    C:\DevSuiteHome_1\forms\java\frmwebutil.jar;C:\DevSuiteHome_1\forms\java\frmall.jar;
    C:\DevSuiteHome_1\forms\java\FormsProperties.jar;
    3. Untuk Jdev.. include..Libraries [THE WAY I AM CREATING A BEAN..NO NEED TO READ THIS]
    ORacle Forms
    C:\DevSuiteHome_1\jdev\lib\ext\frmjdev_pjc.jar

  • How to use batch mode in cq dam - new questions added

    Hi I am doing DAM migration. I am using custom code to pick the image and create asset by calling Assetmanager.createAsset which creates dam assets.
    This code I am calling through the scheduler which will run for every 0.5 hr. Around 1000 images we are trying to push in each cycle. I came acrosss batchMode for saving all the images per batch so that it will reduce the migration time But I am not sure how to use it.
    .setBatchMode(true); isBatchMode are the methods available in Asset api.
    Please share your thoughts on this.
    Some more Point I want to ask.
    1.What is the best appraoch when we are pushing images to DAM
         Stopping the workflows push all the images and run the work flows. (Is it possible to do this?)
         Do the both simultaniously
         Do it in the bath (i.e push bunch of images and then run the workflows)
    2.When i am migrating images (from file system which is residing in the same box where cq is running )it is almost taking 0.5 hr for 1000 images (avg size of image is 100kb). Is there any possibility to      improve this process.
    3. When I am adding images I am adding subassets to some of the images so when ever I add subasset cq is creating new version of the asset which is not required for me. What is the best approach to avoid      creating too many versions for images in DAM. By doing this is there any performance improve in the system.
    Thanks,
    Maruthi

    Hi Jorg,
    Thank you.
    I will try out batch saving option.
    I have few more doubts.
    1. Today I tried for moving aroung 5k images through the scheduler in my local machine. It went smoothly with out much issues but as usual some of the renditions are failing for some of the sub assets. This is about 3 for every 10 images. Renditions are generating properly for all assets it is failing in case of sub assets only. Along with this I am getting version exceptions. Below are errors which I am facing very frequently during migration dry run. This seems to be beacuse of the non synchronized execute methods in WF steps. What is your call on these issues how can we avoid these kind of errors.
    20.02.2013 19:16:00.082 *ERROR* [JobHandler: /etc/workflow/instances/2013-02-20/model_1361367956960012000:/content/dam/<IMAGE PATH>/subassets/<Image Name>/jcr:content/renditions/original] com.day.cq.dam.core.impl.AssetImpl setRendition: cannot set new rendition [cq5dam.thumbnail.140.100.png] for asset [<IMAGE PATH>/subassets/<Image Name>]:  javax.jcr.version.VersionException: Unable to perform operation. Node is checked-in.
    20.02.2013 19:17:01.660 *ERROR* [JobHandler: /etc/workflow/instances/2013-02-20/model_1361368020884400000:/content/dam/<IMAGE PATH>/jcr:content/metadata] com.day.cq.dam.core.impl.handler.xmp.NCommXMPHandler Stack Trace: java.lang.Exception: Unable to create revision.
    Caused by: javax.jcr.RepositoryException: Unable to update item: item.save()
    Caused by: javax.jcr.InvalidItemStateException: Item cannot be saved because it has been deleted externally: item.save()
    20.02.2013 19:19:08.666 *WARN* [JobHandler: /etc/workflow/instances/2013-02-20/model_1361368144852589000:/content/dam/<IMAGE PATH>/subassets/<Image Name>/jcr:content/renditions/original] com.day.cq.dam.core.process.ExtractMetadataProcess unexpected error occurred during metadata extraction. Cause: Unable to perform operation. Node is checked-in. javax.jcr.version.VersionException: Unable to perform operation. Node is checked-in.
    2. Can you share about experience in DAM migrations. What is the avg time it takes for migrating about 1 to 1.2 lac images which are aroung 60    gig. We thought of running the scheduler (this.scheduler.addPeriodicJob(jobName, job, config, period, canRunConcurrently);)for every 0.5 hr in  that case it will go on for 3 days.

  • Push Registry : MIDlet  activated by servlet ?

    hello, i have been trying to figure this out for days now could someone please help. I am trying to get the MIDlet to by activated by a Servlet which resides on a apache webserver , is this possible?
    how do you go about in getting the MIDlet to register a connection which waits for some activity sent via HTTP? do you register a socket to listen on a port on the device and get the servlet to send data to that port via HTTP?(if so how is this done?)
    Basically all i am trying to do is get a servlet to send data to the midlet. The MIDlet is installed from the webserver with ease, i want the midlet to wait till the server decides to send some data. the servlet will activate the midlet (this is the problem) , so then the midlet will open the http connection to the servlet.
    Please ask if the question needs clarifying, I would be very thankful for any advice provided.
    cheers
    Max

    thanks for info
    i have been trying for a while now and cant seem to get this working what i have got is a MIDlet that listens on port 90 of a socket connection. i am trying to create a Servlet that sends data onto port 90 so the midlet can be activated via the push registry. i am having the trouble with the servlet(which i cant get working, i assume that the code is wrong), i cant seem to get a socket connection working, i have tried to open a socket connection but have had no luck.
    i have posted some code, the MIDlet is there and so is my attempt at a servlet.
    what i want to do is get the servlet sending the midlet data on a specified port
    and the midlet recieveing that data and displaying it on the mobile emulator
    (so far all the MIDlet code does is listen for some activaty on port 90 and then send some data to the browser on the following url : http://localhost:90/)
    if anyone can get this problem on this example code i am testing on, fixed it would be much appreciated!!
    Thanks
    Max
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.pki.*;
    public class PatchyMIDlet
        extends MIDlet
        implements CommandListener, Runnable {
      private Display mDisplay;
      private Form mForm;
      private ServerSocketConnection mServerSocketConnection;
      private boolean mTrucking = true;
      public void startApp() {
        mDisplay = Display.getDisplay(this);
        if (mForm == null) {
          mForm = new Form("PatchyMIDlet");
          mForm.addCommand(new Command("Exit", Command.EXIT, 0));
          mForm.setCommandListener(this);
        Thread t = new Thread(this);
        t.start();
        mDisplay.setCurrent(mForm);
      public void pauseApp() {}
      public void destroyApp(boolean unconditional) { shutdown(); }
      private void log(String text) { log(null, text); }
      private void log(String label, String text) {
        StringItem si = new StringItem(label, text);
        si.setLayout(Item.LAYOUT_NEWLINE_AFTER);
        mForm.append(si);
      private void shutdown() {
        mTrucking = false;
        try { mServerSocketConnection.close(); }
        catch (IOException ioe) {}
      public void commandAction(Command c, Displayable s) {
        if (c.getCommandType() == Command.EXIT) {
          shutdown();
          notifyDestroyed();
      public void run() {
        try {
          mServerSocketConnection =
    (ServerSocketConnection)Connector.open("socket://:90");
          log("Startup complete.");
          SocketConnection sc = null;
          while (mTrucking) {sc =
    (SocketConnection)mServerSocketConnection.acceptAndOpen();
            log("client: ", sc.getAddress());
            // Strictly speaking, each client connection
            // should be handled in its own thread. For
            // simplicity, this implementation handles
            // client connections inline.
            Reader in = new InputStreamReader(sc.openInputStream());
            String line;
            while ((line = readLine(in)) != null) ;
            // Ignoring the request, send a response.
            PrintStream out = new PrintStream(sc.openOutputStream());
            out.print("HTTP/1.1 200 OK\r\n\r\n");
            out.print(getMessage());
            out.close();
            in.close();
            sc.close();
        catch (Exception e) {
          log("exception: ", e.toString());
      private String readLine(Reader in) throws IOException {
        // This is not efficient.
        StringBuffer line = new StringBuffer();
        int i;
        while ((i = in.read()) != -1) {
          char c = (char)i;
          if (c == '\n') break;
          if (c == '\r') ;
          else line.append(c);
        if (line.length() == 0) return null;
        return line.toString();
      private java.util.Random mRandom = new java.util.Random();
      private String getMessage() {
        int i = Math.abs(mRandom.nextInt()) % 5;
        String s = null;
        switch (i) {
          case 0: s = "Above all the others we'll fly"; break;
          case 1: s = "There is no reason to hide"; break;
          case 2: s = "I dreamed about Ray Charles last night"; break;
          case 3: s = "Someone keeps moving my chair"; break;
          case 4: s = "Joseph's face was black as night"; break;
          default: break;
        return s;
    }the Servlet code, which i cant get working:
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    import java.net.*;
    import java.lang.*;
    public class Servlet extends HttpServlet {
      private int mCount;
      public void doGet(HttpServletRequest request, HttpServletResponse response) throws
          ServletException, IOException {
        String message = "Hits: " + ++mCount;
        String connectString = "socket://:90";
        SocketConnection sc = null;
        DataOutputStream dos = null;
          // open a socket connection with the remote server
          sc = (SocketConnection) Connector.open(connectString);
    // an OutputStream is created on top of the
          // OutputConnection object for write operations
          dos = sc.openDataOutputStream();
    // perform write operations
          dos.writeChars("hello");
      }

Maybe you are looking for

  • Problems with Home Sharing - works with some users but not all

    Hi all, On our Mac we have 3 different user accounts. Among the three, home sharing seems to work for two of them, but not three. For example, if I'm logged into User A's account, I'm able to access the library for users B & C. However, B & C are abl

  • How To: Mylex 170 RAID + Solaris 8 x86

    Hi, My hardware: 1. Intel SAI2 Server Board http://developer.intel.com/design/servers/sai2/ 2. Mylex 170 RAID Adapter http://www.mylex.com/products/acceleraid/datasheets/aclrd170.html it always tell me "no disk found" when install Sol8 x86 (10/01). i

  • CachedRowSetImpl and DataSource

    Hi pals, I got a problem with the CachedRowSetImpl. I set the DataSourceName of the CRS. When I debug, it can successfully connect to the DB and reads the data. It however throws an execution saying "java.sql.SQLException: The url cannot be null". If

  • Iphone 6 plus case

    Does anybody have any suggestions for the best iphone 6 plus case?  I am looking for something that is not heavy and does not increase the size of the phone...thanks

  • Audio Stopped Working after Gnome3 Install

    I assume PulseAudio may have something to do with this, but audio works neither from within Gnome nor from without - no sound. Another thread (https://bbs.archlinux.org/viewtopic.php?id=116712) suggested changing the output settings in Gnome, so I ch