Pushing data from a Java application * confused *.

Hello community,

I'm new to the BlackBerry Push. I tried to understand what options are available to provide data to a Java application and how it can be tested.

There are so many documents on this subject, for example:

  1. Push for the BlackBerry Enterprise Server software
  2. BlackBerry Push service
  3. Push blackBerry SDK service

What I discovered thanks to these documents.

  1. There are two formats that can be used to send data through the BES (PAP push / push RIM)
  2. BlackBerry Push service has two levels (BB push Essentials / BB push more - limited to 8 KB content)
  3. In the Push Service SDK, there are two modes available (public and business mode)

For me, these information are really confusing.

What I don't understand:

I. can the software of the BlackBerry Push Service SDK be used for both options 1. & 2. mentioned above? (referring to public and business mode)

II. is there documentation how to push Service SDK can be configured for the mode of the company?

III. when you use BES Push is also limited to 8 KB content size?

IV. is it possible to only a single client application that can be used to BES and BIS push?

Thanks in advance.

I. the SDK can be used to push either a BIS or BES. The SDK has a setting to determine if its pressure through the (public) BIS or BES (company). The SDK can be used to push push Essentials or Plush Push. The SDK software uses the API of PAP.

II. I'm not sure of the documentation, but I don't know that the SDK can ask a BES for sure. But in the end, you need to set the PushSDK.properties flag to push public were false.

III. no the BES is not a limitation of 8 k.

IV. I'm not an expert on client applications, but I think you need to develop a version for BIS and a version for BES.

Tags: BlackBerry Developers

Similar Questions

  • Pass the string as params from a Java application to another

    I'm moving a String as a parameter to a Java Aplications of a second as a startup parameter

    for example I have applications that must call start another Java application (just contains only JOptionPane, simple JFrame or JDialog) before System.exit (0); I'm trying to send some descriptions to close the application to another.

    East of simulations of what these codes I tried this and in this form, the code works correctly and displays the string in the JTextArea...
    import java.io.IOException;
        import java.util.concurrent.*;
    
        public class TestScheduler {
    
            public static void main(String[] args) throws InterruptedException {
                ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(10);
                executor.setContinueExistingPeriodicTasksAfterShutdownPolicy(true);
                executor.setExecuteExistingDelayedTasksAfterShutdownPolicy(true);
                for (int i = 0; i < 10; i++) {
                    final int j = i;
                    System.out.println("assign : " + i);
                    ScheduledFuture<?> future = executor.schedule(new Runnable() {
    
                        @Override
                        public void run() {
                            System.out.println("run : " + j);
                        }
                    }, 2, TimeUnit.SECONDS);
                }
                System.out.println("executor.shutdown() ....");
                executor.shutdown();
                executor.awaitTermination(10, TimeUnit.SECONDS);
                try {
                    Process p = Runtime.getRuntime().exec("cmd /c start java -jar C:\\Dialog.jar 'Passed info'");
                } catch (IOException ex) {
                    ex.printStackTrace();
                }
                System.out.println("System.exit(0) .....");
                System.exit(0);
            }
    
            private TestScheduler() {
            }
        }
    
    //
    import java.awt.*;
    import java.util.ArrayList;
    import javax.swing.*;
    
    public class Main {
    
        private static ArrayList<String> list = new ArrayList<String>();
    
        public Main() {
            JFrame frm = new JFrame();
            JTextArea text = new JTextArea();
            if (list.size() > 0) {
                for (int i = 0; i < list.size(); ++i) {
                    text.append(list.get(i));
                }
            }
            JScrollPane scroll = new JScrollPane(text,
                    ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
                    ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
            frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frm.add(scroll, BorderLayout.CENTER);
            frm.setLocation(150, 100);
            frm.setSize(new Dimension(400, 300));
            frm.setVisible(true);
        }
    
        public static void main(String[] args) {
            if (args.length > 0) {
                for (String s : args) {
                    list.add(s);
                    System.out.print(s + " ");
                }
            }
            Main m = new Main();
        }
    } 
    My question:

    whether is there another way to pass a value to a Java application (it should be called System.exit (0);) to another Java application, another way I tried using process/ProcessBuilder

    My crospost http://stackoverflow.com/questions/6121990/pass-string-as-params-from-one-java-app-to-another

    Yes, there are other ways. Is this way do not meet your needs?

    1. There is another exec() signature that accepts an array where the first element is the command and the rest of the elements are its args. It may or may not be a varargs call. That looked something like this, but it might not work exactly as I.

    exec("cmd", "/c", "start", "java", "-jar", "C:\\Dialog.jar", "Passed info");
    // OR
    exec(new String[] {"cmd", "/c", "start", "java", "-jar", "C:\\Dialog.jar", "Passed info"});
    

    2. you can place the information in a file that the second process reads.

    3. you can store information in a database that the second dealing with applications.

    4. you can have a single process open a ServerSocket and either connect to it and send the data in this way.

    5. you can use a higher level like Active MQ, JMS messaging tool, etc.

    6. you can use the RMI.

    7. you can use CORBA.

    I don't know that there are other approaches as well.

    I have no idea to the approach that is best for your needs. It's something that you need to understand, if you do decide, if you view details about your needs here, someone can offer some advice.

  • Display data from another web application

    Hello

    I hope than to display data from my application 'team' on my 'articles' approx. basically display image of the author, email etc., which comes from the app TEAM. I know that this is possible.  I use the data of the src field extract the name of the authors, but of course this provides only a link. Are there tutorials - what can anyone tell me? Thank you.

    So does that mean as a concrete response by using the system of normal with BC, is tag that you insert this code for your team web app {module_webapps, 123456, i, {tag_author_id}} on your layout displayed products app page.  ID tag of the author is a field set up in the articles web app and a field of the data source to connect to your team application.

  • How can I dynamically pull in data from a Web application to a native or hybrid application sold in the Apple/Android/Windows store?

    I built a few hybrid and native apps using the API of Wordpress, and now I need to make an app that has its roots in a site of BC.  I need to make an API call from a native application or hybrid in the webapp (name, image, content and llink) points.

    Sorry for the slow response, BC events no, other things such as CRM and other items Yes, just look to the top of the developer reference:

    The developer reference

    Where's the API V3:

    BRITISH COLUMBIA. Next - access all the data of British Colombia: output JSON everywhere, more REPOSENT API

  • Loading data from the planning application sample

    Hello

    I created an example of planning application in the workspace (V 11.1.1.3). By default, they dimension 'Year' the year of departure as FY11. Whereas, loading data from file 'SampleApp_data.txt' that comes with the installation is the year of departure as FY09. Then, when I insert data in environmental assessment (form free loading), there is an error that the FY09 member is not present. Does anyone know how can I approach properly load the sample data? I tried to replace by FY11 by FY12 FY10 FY09 and so forth in Notepad, but the process still hang on the first attempt.

    Thanks in advance,
    Aerts

    The easiest way is not sample application tick the options and change the calendar 2008 or 2009, go to the finsh tab, then return to the first screen and sample application tick, then finished, it will create with the year of departure.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Recover data from the flex application

    Hello

    We use html data in Flex via Flashvars, I want to use the HTML flex application data, how can I do?

    I know we use javascript for it functions, but I need an example.

    Kindly help.
    Mandeep

    You can see this FB 2.0.1 topic help (or via LiveDocs on the web):
    Access Flex from JavaScript

    -------------------------- MXML ---------------------------


    http://www.Adobe.com/2006/mxml"creationComplete =" initApp () ">"

    flash.external import. *;

    public function initApp (): void {}
    ExternalInterface.addCallback("IsStatic",IsStatic) ("myFlexFunction", myFunc);
    }

    public void myFunc(s:String):void {}
    S = L1.text;
    }

    ------------------------------- HTML ----------------------------

    wrapper/AddCallbackWrapper.html

    AddCallback Wrapper


    Enter a new title:






    http://download.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=9, 0,0,0' height = "200" width = "400" >


    http://www.Macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' height = 100% "width = 100% ' flashVars =" / > "

  • I can't use iCloud for backup of data from third-party applications

    I use an iPod touch 6th generation and I wanted to use iCloud for backup of Twitter, IG, Pinterest etc. I've tried searching steps. So far I've been finding the same set of instructions:

    Settings > iCloud > storage > select your iDevice > turn on apps you want to iCloud to save

    But after clicking on the storage, I don't see that 'manage storage' and below, the option 'change of Plan '. Why does my iPod not not the option choose iDevice? I can see the option to save the data of integrated applications, but not applications, third-party. My iCloud that unit is on but my Photos under icloud is disabled. I really need the extra space. What seems to be the problem?

    Click Manage store (settings > iCloud > storage > Storage manage and you see what moves backup iCloud storage.)

  • Parameters for the issue of "launch a Java application from another Java application.

    In:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To _...

    Specifically for example 2.

    ApplicationManager.getApplicationManager().launch("yourCodFileName?param1¶m2");
    

    Where can I get information on what these settings are: '? param1.  There are the existing settings for the BlackBerry native apps like tasks and Messages? Are they the same as the arguments of the application when you use the API 'Invoke '?

    Or are they only for third-party applications. If this is the case, the third party sets the setting? And if so, how do you define a parameter in your third-party application?

    1-Yes 2. There is no documentation on this subject, you can find either on the web or a forum somewhere.

  • Retrieve data from normal java classes business components

    I created a utility project that uses BC ADF for my model. One of the things I have to do is to create a function that queries the database.

    For example, I want to get the translation of a legend based on certain parameters. So I continued to function:
    translate (form of a string, string lang, String caption)

    I created a VO that contains all links and tables necessary for this. There are also 3 bind variables for the shape, lang and legend.
    When I test this in my appModule and enter the bindvariable in the pop-up window, I get the data requested for the VO works very well.

    The only thing I do now is to create the code for my job to translate. What I do is run the VO and return the value of a specific column of the VO.
    Does anyone has code examples to achieve this?

    Yannick,

    Take a look at [url http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcquerying.htm#CHDECJHD] example 5-24

    The documentation is great. The documentation is good. Thank us for examples. ;)

    John

  • With the help of the socket object to retrieve data from web application without the html files

    I tried to use the socket object to retrieve data from a web application (I just control script version vs version online). So all I want to do is access http://hyle.io/version that returns me the current version of the application (such as a simple string) in order to compare it in my script and then notifies the user accordingly. I have just a few problems using the socket object. I used this code from the Adobe Javascript Tools Guide:


    reply = "";
    conn = new Socket;
    // access Adobe’s home page
    if (conn.open ("www.adobe.com:80")) {
    // send a HTTP GET request
    conn.write ("GET /index.html HTTP/1.0\n\n");
    // and read the server’s reply
    reply = conn.read(999999);
    conn.close();
    }
    

    ... that I then adapted as:

    reply = "";
    conn = new Socket;
    if (conn.open ("hyle.io:80")) {
      conn.write ("GET /version HTTP/1.0\n\n");
      reply = conn.read(999999); 
      conn.close();
    }
    

    And here is what I get:

    HTTP/1.1 400 Bad Request
    Content-Length: 225
    Content-Type: text/html
    Server: Pagodabox-Routing-Mesh
    
    

    Bad Request

    Your browser sent a request that this server could not understand.

    Résultat : true

    I don't know a lot about HTTP requests, but I wondered if it was related to the fact that I am not pointing to a specific HTML file and the type of request was wrong or if I should rather check if there is something wrong with my host?

    The site/app is PHP and is hosted on PagodaBox if it helps.

    Thanks in advance!

    Hi Sebastien Lavoie,

    It should work

    var HTTPFile = function (url, port) {}

    If (arguments.length == 1) {}

    URL = arguments [0];

    port = 80;

    };

    This.url = url;

    This.port = port;

    this.httpPrefix = this.url.match(/http:\/\//);

    This.Domain = this.httpPrefix is nothing? This.URL.Split("/") [0] + ":" + this.port: this .url .split ("/") [2] +":" + this.port;

    This.Call = ' GET ' + (this.httpPrefix == null? ' "). " http://" (+ this.url: this.url) + "HTTP/1.0\r\nHost: ' + (this.httpPrefix is nothing? "This.URL.Split("/ ") [0]: this .url .split (" / ") [2]) +" \r\nConnection: close\r\n\r\n ";

    This.Reply = new String();

    This.Conn = new Socket();

    This.Conn.Encoding = "binary";

    HTTPFile.prototype.getFile = {function (f)}

    var typeMatch = this.url.match(/(\.) (\w{3,4}\b)/g);

    If (this.conn.open (this.domain, "binary")) {}

    This.Conn.Write (this.) Call);

    This.Reply = this.conn.read (9999999999);

    This.Conn.Close ();

    } else {}

    This.Reply = "";

    }

    (Return this.reply.substr(this.reply.indexOf("\r\n\r\n")+4);

    };

    }

    Hyle var = new HTTPFile ("http://hyle.io/version");

    Alert (hyle. GetFile());

    And by the way, I like the idea of 'http://hyle.io'. Can you give me your email address, I want to learn more about this Web site.

    Please send me an email to [email protected]

  • Accessing an application WebWorks built the database via a Java application

    Hi all

    My Java application needs to access a database that was created by a WebWorks built application. I see WebWorks encryption applications their databases using the code keys automatically signing. When I first tried to read the database, he said that it was encrypted as IOException: headers are encrypted. Since then, I installed the same key code in my Eclipse IDE to signature and have signed the java application with the same keys used by the WebWorks app. I always seem to get an IOException error, but this time it does not specify the exact error.

    Quite simply, I need to use the same database created in the WebWorks app in my Java application. Is it possible if I use the same code key for both signature requests? Or WebWorks uses a completely different algorithm to encrypt data in the database from Eclipse and so cannot use the same database?

    Thank you for all your help.

    Rob

    Yes, the DB is encrypted by default by using the identity of the application (code signing key and I believe in association with the name of the application)

    Thus, the type of DB of SQLite that is created from a WebWorks app is different from one created from a Java application, which can be a conflict at stake here.

    If you believe that it is a Google Gears database!

    https://github.com/BlackBerry/WebWorks/BLOB/master/framework/src/js/html5_init.js#L586

    Well Yes, to subsidize bequests to devices BBOS 5.0, which had no WebKit as web rendering engine, Gears is the 'wedge' up here.

    For the above reasons, I do not think that its going to be possible for you to achieve what you're trying with SQLite DB. To share data between applications on BBOS, you would need to use a different channel (encrypt the data and save it in the file system, or use your own remote web service + DB)

  • Get data from a dBASE - .dbf.

    Hello everyone - Hello work Sunday: (.) I need to get data from legacy applications that run the dbase program. You'll need to auto data. If you have an idea, please tell me. Thanks to you, NIC.

    >

    Hello everyone - Hello work Sunday: (.)

    I do not work yet--it's sad that :)

    I need to get the data from the old application
    running the program dbase. You'll need to auto data. If you have an idea, please
    say to me.

    Have a look here http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:711825134415.

    It worked for me, with a bit of difficulty – mainly because of my own stupidity... If you have
    no problem, post back.

    HTH,

    Paul...

    Thanks to you, NIC.

  • How to create a DataControl from the Java file

    How to create a data from the Java file control

    Hello
    Try like that after the example, you will get the answer

    1. Create Page.java

    public class {Page}
    private String pageName;
    private String pageAction;
    public Page() {}
    Super();
    }

    public Page (pageName, pageAction String String) {}
    Super();
    this.pageName = name of the page;
    this.pageAction = pageAction;
    }

    {} public void setPageName (String pageName)
    this.pageName = name of the page;
    }

    public String getPageName() {}
    Returns the name of the page;
    }

    {} public void setPageAction (String pageAction)
    this.pageAction = pageAction;
    }

    public String getPageAction() {}
    pageAction return;
    }
    }

    2. create PageList.java

    import java.util.ArrayList;
    import java.util.List;

    public class PageList {}

    private pages = new() ArrayList list;

    public PageList() {}
    Super();
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    pages. Add (New Page ("Page title 1", "page 1"));
    }

    public void setPages (list of pages ) {}
    This.pages = pages;
    }

    public {list getPages()
    return pages;
    }
    }

    3. right click in the PageList.java and choose CreateDataControl

    then refresh the DataControl and focus on which a DataControl as PAgeList will be created

    Kind regards
    Felix

  • Send data from a pop-up window

    I place various controls in the pop-up window. And I transfer data to the main application. I tried to use the method proposed here http://www.adobe.com/livedocs/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Book_Parts & file = layouts_065_50.html, but fails to send the variables, that text in the textbox control.

    How can I pass variables (data) from the main application pop-up windows? Or how close a popup window to call a function of the main application?

    Hi Astraport,

    You can call and pass the data to the function in the main application of the file using... Application.application.SomeFunc (param1, param2);

    In your pop-up... depending on the removePopUp() file...

    private void removePopUp(event:Event):void {}

    Application.application.SomeFunc ("Value1", "Value2"); where somefunc is public service defined in the main application file...
    PopUpManager.removePopUp (pop1);
    }

    Function of the main application file

    public void somefunc(param1:String,_param2:String):void

    {

    write your logic

    }

    You can also follow another approach using custom events... Dispatch a custom event say "popUpCloseEvent" and dispatches the event in your function removePopUp() and listen to this event in your main application and manage your logic in the main application.

    It's the best approach, as I say, that you can use at any time.

    Thank you

    Jean Claude Chari

  • Date time format BlackBerry java application

    Hi all

    I'll have a Date format time as ' 2013-10 - 09T 12: 45:00 + 05:30 '. How can I convert in ' hh: mm a "or" hh: mm a "in my Blackberry Java Application.

    Thank you and best regards.

    I will not be able to solve this problem using techniques integrated... In any case I analyzed it manually...

    Thankng you all for you answer!

Maybe you are looking for