How to create a Websocket Java client application that receives incoming Messages

Hello

How to create a Java only incoming Websocket application receives Messages?

For example, here's a Html 5 Websocket:

http://html5demos.com/Web-socket  That runs on that server for Node.js: ws://node.remysharp.com:8001

Now I want a Java client side? How can I achieve this?

Moreover, my main go is for users to post messages of the web and goto the smartphone blackberry with this application.

Looking forward to your helpful answers

Hamid Weiss

It is quite easy to create a socket to listen:
"socket: / /: 79 sets a socket server incoming on port 79.
See http://www.blackberry.com/developers/docs/7.1.0api/javax/microedition/io/ServerSocketConnection.html

However, you should be aware that a mobile device is not directly accessible (except wireless) because they do not receive a public ip address on a wireless (keyword NAT).

to resolve this issue it is support to push.
See http://docs.blackberry.com/en/developers/subcategories/?userType=21&category=Push+Service
(the link below goes to the 7.1 API for java bb).

If you are new to development, you should think about the new platform bb10 so when you expand.

Tags: BlackBerry Developers

Similar Questions

  • New icon for the application of new incoming message after...

    Hi guys! I did the application that receives electronic messages. How can I change the icon of the application on the incoming message to my icon 'unread '? My application is started automatically when the device is turned on. And second entry point to start my application manually (with GUI). Auto-start, fixed it successfully icon and icon Overview:

    HomeScreen.updateIcon (icon, 0);

    HomeScreen.setRolloverIcon (icon2, 0);

    but on the message inbound (FolderListener.messagesAdded start), these functions generate an exception:

    I tried change index 1,2,3... BU result is the same... Where is my problem? Maybe there is another way to change the icon at this time? Help, please. Thanks in advance.

    Do not forget that in the file listener, you actually in the mail app not running your application.  You need get this change is made in your application.  The best way to proceed is to use GlobalEvents, that fire in your listener and deal with it in your Application to change the icon.

    See below for more details:

    What is - world events and global event listeners
    Article number: DB-00145
     
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800332/800620/...

  • Hi all, can I know how to create filters in Hyperion Planning Application?

    Hi all, can I know how to create filters in Hyperion Planning Application?


    I don't know how to create filters in the Planning Application. but my boss asking me to create filters.

    Thank you and best regards,
    Stéphane

    Go to Administration > Dimensions > select a Dimension > select the Member you want to assign filters acccess to:-assign access
    Repeat the process for all the access permissions.
    If there is a lot of permissions set you could use a utility:-http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/ch03s07.html
    Refresh planning, including security filters
    Also have a read of:-http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/mg_secfilter.html

    See you soon

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

  • How to find the url of adf application that has been deployed to the glassfish Server? I try but? It is the image of the page.

    Mr President

    This is the page of the glassfish Server

    gfurl.png

    How to find the url of adf application that has been deployed to the glassfish Server? I try but? It is the image of the page.

    webapplink.png

    In the jdev web module are

    [11: 09:38] wrote the Web for F:\backup of AshCMS\AshCMS\ViewController\deploy\AshCMS_ViewController_webapp.war application Module

    [11: 10:33] wrote the Module Enterprise Application to F:\backup of AshCMS\AshCMS\deploy\AshCMS_Project1_AshCMS.ear

    [11: 10:33] Application deployment...

    [11: 14:24] Application deployed successfully.

    [11: 14:24] time to deployment: 8 minutes, 11 seconds

    [11: 14:24]-deployment is complete.  ----

    what url in the browser.

    Concerning

    Mr President.

    I run my application on built-in web logic server and get the url from there

    http://localhost:7101 / ViewController/faces/MainPage

    then simply change the localhost of 7101 to 8081 as below

    http://localhost: 8081, ViewController, faces, MainPage

    and it works

    Concerning

  • How to download, install and activate Adobe applications that I bought

    How to download, install and activate Adobe applications that I bought

    Hi Williamc44686767,

    Please visit the following link: How to download, install and activate Adobe applications

    Let us know if that helps.

  • I created a map in Muse, and my client said she receives a message that it has expired?

    I created a map in Muse, and my client said she receives a message that it has expired?

    Thanks for your reply. I contacted Musethemes and they gave me with the widget updated that fixes the problem.

  • How to create a Java application that receives Messages from Web site.

    Hello

    I'm a c# developer, and I am new to programming Java with Eclipse.

    How can I create a simple application that listens on a port for incoming text Messages.

    In c#, I can do this in 5 minutes but in Java, well, I don't know.

    Help out me of the good people

    Research advance for your answers

    Hamid Weiss

    Here is an article that will help you:

    http://supportforums.BlackBerry.com/T5/Java-development/different-ways-to-listen-for-SMS-messages/TA...

    Unfortunately, this is the easy bit.  The hard bit is creating the application and have it run in a background Thread.

    For this, I recommend study you the samples provided and understand how they work.  The website is also a good source of material and explanations, as of course is this forum.

    You might find this useful too:

    http://supportforums.BlackBerry.com/T5/Java-development/tutorials-for-new-developers-part-1/m-p/1621...

    Good luck.

  • How to create indesign using Java Script

    I am new to indesign and want to create indesign application using JavaScript.

    When I use AppleScript to create the Application Indesign I use this statement

    Tell application "Adobe InDesign CS5.5"

    myDocument to make document with the properties of the value

    tell the end

    Application InDesign create successfully.

    How to create the Application Indesign using JavaScript?

    or what is set equivalent to (tell application "Adobe InDesign CS5.5") in Java Script.

    There is a sample java script given on the forum or in the sdk. These departure example with app.

    When I debug these java script using ExtendScript ToolKit 3.6 it gives error on app (application not defined). I think that this app AI application object.

    How to create indesign application object app in javascript?

    Although this script runs successfully when I put these script in C:\Program Files\Adobe\Adobe InDesign CS5.5\Scripts

    and executing these script use the Scripts panel (choose window > utilities > Scripts), and then double-click the script name in the Scripts panel in indesign application. But in this case I have indesign application start and then choose window > utilities > Scripts, and then double-click the script name in the Scripts panel.

    I want to create Application Indesign (instance), using JavaScript.When I run or (debug) my JavaScript in any javaScript tool as ExtendScript ToolKit 3.6 then Indesign application should start, as in the Apple Script.

    Thank you

    long story short... NO!

    However, if you run the script from ESTK, you need not copy the script in the folder "Scripts". Do not know exactly if that's what you want.

  • How to create a form for my application

    Hi all members of the DPS forum, I need to customize your client application with data such as name, telephone, address, and that this information is also used to create a link with your contacts and phone numbers of emergency physicians, so that they in the aplicacacion can make a call to your doctor or servocio of emergency such as 911.

    My question is, it is possible with DPS and how?

    Thanks and greetings

    Yes, do a section of HTML or an article from InDesign with a box containing the HTML that Web content. If you want a very easy to use form creation tool, I recommend http://wufoo.com/ or Adobe FormsCentral http://formscentral.acrobat.com.

    Be sure to show the alternative content for people who read the magazine in an offline environment. Here are some ways to do it with javascript: http://stackoverflow.com/questions/2384167/check-if-internet-connection-exists-with-javasc ript

    It will be useful.

  • How to create users to access an application?

    I have an application that uses the authentication scheme 'ACCOUNT database'. I am able to connect using the name of the schema owner, but he must create other users who will have access to this application. How can I do this?

    Thank you
    Hozy

    Then you must create the database users
    CREATE USER IDENTIFIED BY

    But your "schema owner" probably does not have rights to create users, so you need to ask your DBA to do (or connect as SYS or SYSTEM if you know their password)

  • Create a thinapp from an application that is installed from a CD

    We have a program at our school in which teachers use applications that fall into three categories: (1) installs completely from the CD and the CD is not necessary to run the application, (2) partially installs from the CD and the CD is needed to run the application, (3) does not install, but will completely from the CD.

    I tried to create a fine application of a CD in the first category, however he did take place as planned. On the virtual machine, it installed perfectly and worked as expected. After that I ran the Scan of mail, I have also included to create an MSI file, so I could use AD Group Policy to remove that. MSIDefaultInstallAllUsers = 1, MSIRequireElevatedPrivileges =-MSIStreaming = 1. I had to add Adobe Reader as a plugin, but the pdf that installs the CD didn't come to the course, it should appear in the Start Menu with two other elements that do not appear correctly. In addition, there is a feature that opens in Internet Explorer, and the title bar appears to be in Japanese or some Asian languages, but which does not appear on the direct installation.

    Really, I prefer not having to install these CDs on each of the laptops to teachers individually, but I can't find a way to make it work. Is it possible to create a thinapps in this situation? Thank you.

    By the sound of it, the application is able to be virtualized. You have some weird minor issues that looks like me, it could be solved with a little tweaking of project. The problem is that it won't be easy or possible to support you remotely using this forum.

    I would recommend that you contact VMware technical support and get help in this way.

    A note aside, do you know VMware virtualizes the CDROM. Might be of interest in the case.

  • How to create an accordion for a report that shows one of

    Hi all

    How can we create an accordion in a report that shows the details of the line in a form below, and then when we push the button of Update of the form, it must update the columns close the accordion and update this one line in the report.

    I have seen two examples

    http://HTMLDB.Oracle.com/pls/OTN/f?p=11933:131:1811032969809934:no:RP:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=11933:77:1811032969809934:no:RP:

    Secondly a loading actually a new page but I do not know how to update the form, and then close the accordion region and then refresh the single line. Here pointers will be of great help.

    Thank you and best regards,
    Vikas

    Vikas,

    I slightly modified on of my examples alumni and you will find everything here:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:241

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • Stand-alone application cannot receive UDP message

    Hi all!

    I have a small work of vi (part of a larger program) to receive udp messages sent by another device on the local network. It works well when it is a normal vi, but

    When I built an exe of this vi, I don't see any udp message received by the exe. Someone has an idea for this? Here's my vi and thanks in advance!

    Definitely check the firewall rules. An application is by default not automatically right to create sockets on random ports. Usually, you get a dialog box by the firewall software at first startup of an application, if you want to allow to access network features. But it is easy to close this dialog box without reading carefully and sometimes Windows seems not even to solicit you. And then the firewall rule is normally set to deny network access for the executable.

    For do not push viruses and other malignant software with the nose on the fact that he was blocked, a firewall rule will often calls API succeed but simplyact as if there is no network available.

    And firewall rules are affected depending on the executable name AND location of the executable in the file system. If moving the executable somewhere else will be basically means a new request and requires its own firewall rules.

  • How to create a counter in the application?

    I want to create a new counter in the application.

    I use:

    *******************************************************************************

    int i = 60;

    UiApplication.getUiApplication () .invokeLater (new Runnable()
    {
    public void run()
    {
    theCounter.setText ("Count =" + Integer.toString (i)-);
    if(i==0)
    {
    secondQuestion();
    repeat1 = false;
    }

    }
    (}, 1000, repeat1);

    *******************************************************************************

    This is a counter that counts 60 seconds and his work, but the problem is that I don't know how to kill it after 60 seconds!

    How can I fix?

    and is there another way to create a timer?

    http://www.BlackBerry.com/developers/docs/7.1.0api/Java/util/TimerTask.html

  • How to create files with UTL_FILE client-side?

    Hello

    I would like to be able to generate files in the client operating system, without making use of dbms_output, sql * more. I actually thought, it should be possible to do this task with UTL_FILE. See this link:

    http://download.Oracle.com/docs/CD/B28359_01/AppDev.111/b28419/u_file.htm

    Read you: 'UTL_FILE provides access to both client-side and server-side files. When run on the server UTL_FILE gives access to all the operating system files that are accessible from the server. Client side, as is the case for Forms applications, UTL_FILE provides access to operating system files that are accessible from the client. »

    But I can't create a directory on the client side object... How is possible to write files on my client OS?

    Thanks in advance,

    Xenofon

    UTL_FILE is always executed on the database server side. Therefore, to create the file using UTL_FILE client-side you need to map/mount client drive on the database server and make sure that oracle user has appropriate access to him.

    SY.

Maybe you are looking for