Establish a persistent connection between client and server

My application must keep in touch with my servers, the HTTPConnection gives the ablitity to make one request per connection. Then the HttpConnection might not make persistent connections in the BB. I think I can use Socket connections. I am wonding if some body can confirm that and give some sugustions how persistent connections between clients and servers.

Thank you RexDoug and Marchywka. Your suggestions are appreciated.

Tags: BlackBerry Developers

Similar Questions

  • Profile of user configuration / synchronize the profile between client and Server version

    We customize our domain (Windows 2008 R2). The domain user should have an opportunity to work as a local user and domain user. Profiles should be synchronized every time if the user is in the intranet. We have the following goals

    1 setting up a user profile to domain (Server version) for Windows XP, Vista and Windows 7

    2 coordinate the profiles of local with domain profiles

    Thank you very much for your support.

    HELMAT Amin

    You won't find many people who know the servers in a Windows Vista newsgroup. Best to find one of the newsgroups server TechNet or MSDN and after this kind of issue areas here.

    'helmat' wrote in the new message: * e-mail address is removed from the privacy... *

    We customize our domain (Windows 2008 R2). The domain user should have an opportunity to work as a local user and domain user. Profiles should be synchronized every time if the user is in the intranet. We have the following goals

    1 setting up a user profile to domain (Server version) for Windows XP, Vista and Windows 7

    2 coordinate the profiles of local with domain profiles
    Thank you very much for your support.

    HELMAT Amin

  • is it possible to establish a direct connection between two computers, one running on windows xp sp2 and other running on windows xp sp3?

    Hello
    I connected two computers, one running on windows xp sp2 and others running on windows xp sp3 via com using RS232 port via link Modem DFM-562E ++.
    I am able to dial numbers from a PC successfully.
    But when I do a direct link between them (one as a host, the other guest) through the com port, I get error 777.
    Is this because the two PC's using different service packs?
    Help, please.
    Thank you & best regards
    Ravi

    It is not the service pack - although you should have installed sp3 now.

    Your message is not clear: have you been able to connect successfully computers using your modem D-Link?  How did you do that?  Will there be a modem in the second computer?

    What cable are you using to establish a direct connection between the com ports on both computers?  If you have purchased this cable online, please provide a link to the site where you bought it.

    Please describe the physical connection between the two computers.  For example, this is how you connect to the Internet by dial-up services:

    computer 1-{(9 broches) RS-232 serial port}-{RS-232 cable supplied with the modem}-{modem}-{phone cord (RJ-11 modular plugs at each end)}-{telephone wall jack}

  • Bluetooth connection between iPhone and iPad

    My iPhone 6 does not connect to my iPad via bluetooth.

    I previously used the bluetooth connection between my iphone and iPad to connect the iPad to the internet. Despite the two devices were among the recognized bluetooth devices and they were previously linked/partner, it was not possible to establish a connection.

    Perform the actions recommended for repair/reissue apple support - 1. Toggle bluetooth, 2. turn on/off the unit, 3. remove the iPhone/iPad bluetooth connections - 4. Reset network settings - 5. Reset all the settings-, nothing works.

    IPhone/iPad devices isn't even on the list of bluetooth devices available on the iPhone, or iPad. Everything that happens is the animated icon turns all the time.

    Deleting a connection to a device and bluetooth speaker/amp from the pairing of the speaker/amp system process made a new connection.

    iPhone 6:

    Model: MG4F2QN/A

    SN: C31NLG8KG5MR

    Version: 9.2 (13 c 75)

    iPad:

    Model: ME898LL/A

    SN: DLXM42LHFK13

    Version: 9.2 (13 c 75)

    Please give instructions for the previous maintenance work bluetooth connection between iPhone and iPad.

    Thanks in advance

    To use the Hotspot feature (that you described for the connection), you must use the instructions below.

    Share your Internet connection with Personal Hotspot - Apple Support

  • Localhost UDP connection between FCR and Matlab

    Hi all

    I have a question about the connection between Matlab and FCR UDP. My idea is to Exchange data between Matlab and Labview on the same computer.

    So I found the 'UDP Simple' of the FCR 2.0 sample project where periodically a datasample is generated randomly and sent to the remoteport 61557 local host. In the project a 'fractional number of string for transmission' is used for the transmission of data. The receiver of the sample project reads from the same port to receive the datasample.

    Now, I'm interested to read this simple stream from Matlab (just at first), however, it does not work and I'm not sure why. What I do in Matlab is the following (code Matlab)

    delete variables;
    u = udp ('127.0.0.1', 61557); % Of installation UDP Object
    fopen (u); open reading port %
    A = fread (u, 1);  % read an element
    fclose (u);

    With this code, however, I get a timeout by saying: "' WARNING: unsuccessful reading: the amount of data specified has not been returned within the time limit." "

    I'm not sure why this happens, maybe you could help me out here? I guess that the formet serving to VCF is not the same as in Matlab? Maybe the Terminators are not the same?

    See you soon,.

    Steve0

    Hey

    So, regarding the problem actually, I found the solution today. It was not the firewall, but a simple configuration in Matlab seting the UDP port. So the side of Matlab, to change the definition of udp object according to

    u = udp ('127.0.0.1', 'Thelocalport', 61557);

    If you have

    u = udp ('127.0.0.1', 'Thelocalport', 61557);
    fopen (u);

    A = fread (u)

    fclose (u);
    Delete (u);

    Who does the trick and you can read from the port. Then of course you say Matlab that you read from the "LocalPort" x, which I wasn't aware of.

    On the transmitter side, you simply:

    u = udp ('127.0.0.1', 61557);

    fopen (u);

    fwrite (u, '1');

    fclose (u);
    Delete (u);

    Here, you set just the port of transmiting.

    About the format of the data: I used the simple UDP protocol streaming Comms project where a random number is generated as a double, transformed into a string (ASCII values) and transmitted. At the level of the receiver, you get as much the UDP packet with the ASCII values that you must turn if you want to find the number.

    I hope this helps anyone having the same problem.

    See you soon

  • Want to add listener to Client and server listens on entering text programmatically

    Scenario is,

    IM creating input text dynamically when executing the JSFF page, I would like to add a listener Listner Client and server to enter the text programmatically so that I want to execute a method in my bean

    User, tell us your version of jdev, please!

    to add a client involves in java, you can use this code

    RichInputText laughs = new RichInputText();

    rit.setId ("myit1");

    rit.setClientComponent (true);

    more things to the inputtext init...

    Set ClientListenerSet = rit.getClientListeners ();

    If (value == null) {}

    value = new ClientListenerSet();

    }

    Set your headset

    set.addListener ("blur", "manage");

    rit.setClientListeners (set);

    Add Server listener

    set.addCustomServerListener ("customEvent", getMethodExpression("#{customBean.handleRequest}"));

    Add inputtext container here

    public MethodExpression getMethodExpression (String s) {}

    FacesContext fc = FacesContext.getCurrentInstance ();

    ELContext elctx = fc.getELContext ();

    ExpressionFactory elFactory = fc.getApplication () .getExpressionFactory ();

    MethodExpression methodExpr = elFactory.createMethodExpression (elctx, s, null, new class [] {ClientEvent.class});

    Return methodExpr;

    }

    Timo

  • dblink oracle to postgres with dg4odbc. ORA-28500: connection between ORACLE and a non-Oracle system returned this message: ORA-02063: preceding line

    Hi, I am creating the database link from a database of Oracle 11 g PostgreSQL with DG4ODBC and unixODBC

    My configured for /etc/odbc.ini

    [PostgreSQL]

    Description = Test to Postgres

    Driver = psqlodbc

    Trace = Yes

    Trace file = /tmp/sql.log

    Database = danieldb

    ServerName =

    UserName = SA

    Password = password

    Port = 5432

    Protocol = 6.4

    ReadOnly = No

    RowVersioning = No

    ShowSystemTables = No

    ShowOidColumn = No

    FakeOidIndex = No

    My configured for /etc/odbcinst.ini

    [ODBC]

    CommLog = 1

    Debug = 1

    FileUsage = 1

    Layout common = No

    Trace = 1

    [psqlodbc]

    Description = PostgreSQL ODBC driver

    Driver=/usr/lib64/psqlodbcw.so

    CommLog = 1

    Debug = 0

    FileUsage = 1

    My configured for /u01/app/oracle/product/11.2.0/xe/hs/admin/initPostgreSQL.ora

    HS_FDS_CONNECT_INFO = PostgreSQL

    HS_FDS_TRACE_LEVEL = 0

    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbcpsql.so

    Set ODBCINI=/etc/odbc.ini

    My configured for /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora

    Listener =

    (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521))

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = PostgreSQL)

    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe)

    (PROGRAM = dg4odbc)

    (ENVS="LD_LIBRARY_PATH=/usr/lib64:/u01/app/oracle/product/11.2.0/xe/lib')

    )

    )

    My configured for /u01/app/oracle/product/11.2.0/xe/network/admin/tnsname.ora

    PostgreSQL =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521))

    (CONNECT_DATA =

    (SID = PostgreSQL)

    )

    (HS = OK)

    )

    I'm trying to created public database link:

    CREATE DATABASE LINK PUBLIC 'orapos' CONNECT to 'HIS' IDENTIFIED BY 'password' USING 'PostgreSQL ';

    When I used tnsping

    [root@oracle-poc admin] # tnsping PostgreSQL

    AMT Ping utility for Linux: Version 11.2.0.2.0 - Production on May 16, 2013 20:34:19

    Copyright (c) 1997, 2011, Oracle.  All rights reserved.

    Use settings files:

    /U01/app/Oracle/product/11.2.0/XE/network/admin/SQLNET.ora

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = oracle-poc)(PORT = 1521)) (CONNECT_DATA = (SID = PostgreSQL)) (HS = OK))

    OK (0 msec)

    and finally, I try to use the database link:

    "SQL > select * from tabel2"@orapos ".

    2;

    Select * from 'tabel2"@orapos '.

    *

    ERROR on line 1:

    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:

    ORA-02063: preceding the line of ORAPOS

    What wrong with my setup?

    Thank you and best regards,

    Daniel

    Daniel,

    The problem is that you are using the ODBC Postgres driver for the HS_FDS_SHAREABLE_NAME parameter, but this must be an ODBC driver manager and not the driver ODBC Psotgres.
    Go to the.

    http://www.unixODBC.org/

    Click the 'Download' and follow the instructions to download the 2.3.1 pilot and make libraries and programs.

    Once this is done, then use the driver as parameter HS_FDS_SHAREABLE_NAME Manager, for example-

    HS_FDS_SHAREABLE_NAME =/home/odbc64/unixODBC/2.3.1/lib/libodbc.so

    Depending on where you install it.

    Kind regards

    Mike

  • Establishing a socket connection between a .swf file and a current-test program (TCP/IP generator - Windows), in AS3.

    I have a problem with a college project, I'm trying.

    Using Actionscript 3, I did a program simple .swf, a smiley face, lively and interactive, which "reacts" number entered in an input box.

    For purposes of this project, I now do the framework for establishing a connection socket with the smiley .swf and another program.

    That's where I run into problems. I have very little knowledge of the AS3 programming, so I'm not sure how the connection - what is required for it, it is.

    To test the connection, I try to use the "TCP/IP builder" program for windows, which allows me to set up a server socket. I need to program the .swf file into a client - to recognize, connect to it, then be able to receive data (so that data then allows for the smiley "react" him--like how he does now with the input-box, 'automatically' as it gets the data, rather than by manual input).

    My attempts at codification it are as follows, with the help of a tutorial (link HERE):

    INSERT HERE THE SOCKET STUFF

    //****************************************************************

    var socket:XMLSocket;

    Stadium. addEventListener () MouseEvent. ( CLICK, doConnect ();

    It connects to the local port, 9001 and applies event listeners

    ( function doConnect ()evt:MouseEvent():void

    {

    Stadium. removeEventListener () MouseEvent. ( CLICK, doConnect ();

    socket = new XMLSocket()'127.0.0.1', 9001);

    outlet. addEventListener () Event. ( CONNECT, onConnect();

    outlet. addEventListener () IOErrorEvent. ( IO_ERROR, onError ();

    }

    This locates the connection (allows us to see what has happened or failed)

    function onConnect () evt:Event():void

    {

    trace ("Connected"();

    outlet. removeEventListener () Event. ( CONNECT, onConnect();

    outlet. removeEventListener () IOErrorEvent. ( IO_ERROR, onError ();

    outlet. addEventListener () DataEvent. ( DATA, onDataReceived ();

    outlet. addEventListener () Event. ( NARROW, onSocketClose ();

    Stadium. addEventListener () KeyboardEvent. ( KEY_UP, keyUp ();

    }

    ( function onError() evt:IOErrorEvent():void

    {

    trace ()"Login failed"();

    outlet. removeEventListener () Event. ( CONNECT, onConnect();

    outlet. removeEventListener () IOErrorEvent. ( IO_ERROR, onError ();

    Stadium. addEventListener () MouseEvent. ( CLICK, doConnect ();

    }

    Here, the flash titles what keyboard key.

    If you press 'q', the connection ends.

    ( function keyUp() evt:KeyboardEvent():void

    {

    if (evt. ( keyCode == 81( ) / / key for q code is 81

    {

    outlet. Send ("exit");

    }

    on the other

    {

    outlet. Send (evt. keyCode );

    }

    }

    It must manage the data that we get from the server.

    ( function onDataReceived ()evt:DataEvent():void

    {

    try {

    trace ()"Server:", evt. data );

    }

    catch (e:Error) {

    trace ('error');

    }

    }

    ( function onSocketClose ()evt:Event():void

    {

    trace ()"Closed connection"();

    Stadium. removeEventListener () KeyboardEvent. ( KEY_UP, keyUp ();

    outlet. removeEventListener () Event. ( NARROW, onSocketClose ();

    outlet. removeEventListener () DataEvent. ( DATA, onDataReceived ();

    Try to connect to the Jack gives me no result (other than a "Connection failed" message when I click the .swf) or the following error message:

    Error #2044: unhandled securityError:. text = Error #2048: security sandbox violation: file:///C|/Users/Marko/Desktop/Završni/Flash%20documents/Smiley%5FTCP%5FIP%5Fv4.swf cannot load data from 127.0.0.1:9001.
    to the Smiley_TCP_IP_v4_fla::MainTimeline/doConnect()()[. Smiley_TCP_IP_v4_fla ] [MainTimeline: frame1:12]

    127.0.0.1 could be supported through your HTTP software, I'm not familiar with the tool you are using. It could also have been show in your hosts file (in Windows you will find here: C:\Windows\System32\drivers\etc). Check to see if something is the substitution of 127.0.0.1 (local loop).

    Apart from that, I've given you source to a rapid AIR server that has just opened a listener to 127.0.0.1:8910 so you would need no other tools to test the client, even if you have a. I just include the source and a product AIR installer so you can reproduce them to see that I do anything malicious. The Server.air file must be "installed" to test it. When you double-click it, it is a Setup. He moved to C:\Program Files (x 86) \Server (should have called something less common in hindsight). It also has a checkbox to run it after installation. If you don't you will see the server pop up a standard window of 550 x 400 with a text inside the box there letting you know that it is listening. Everything connects, messages (channels) and disconnects the will displayed in the Server text box.

    The customer is the only SWF file, you must run, after 'something' listening on the IP address and port configure you with.

    Here is a picture to show you the server is not running in the same folder the SWF did, tell the server and it only run the client exactly how I should it look like all together:

    I'll show you that after running the Server.air Installer, here is the the path of the executable file is running from and the client SWF isn't here. No problem connecting despite being in different places.

    The server is running and says that it is listening on 8910. Feel free to modify the source and reproduce for a different IP/port.

    -J' open the Client.FLA and just run. It creates a new socket, add headphones, connects to 127.0.0.1:8910.

    -The server responds that he sees and accepts the client connection. The server sends a message "connected." (10 bytes) to the customer immediately.

    -The client receives data (String), he draws. The customer sniffs for this specific message, and then sends the server a string "thanks for the connection!

    -The server receives and is coded only to echo the string in the "Echo - thank you to connect!" back to check that the chain is correct.

    -The customer receives the echo of servers (30 bytes), he draws.

  • OfficeJet Pro 8710: Impossible to establish the wireless connection between my laptop and OfficeJet Pro 8710

    I'm tryng to connect wirelessly between my laptop and printer but I am unable to do so.

    My laptop finds the printer and when I go to add the device I invite me to "Enter the WPS PIN code for your printer". So, I printed out the Configuration Page of the network and it gives me the "wi - fi direct password", which I suppose is the password that is required to establish that it connection (I may be wrong in my explanation). However, when I type the password on my laptop it does not establish the connection. I said "try to add the printer again, or check with the manufacturer for addiitonal installation instructions.

    Any insght and assistance is greatly appreciated.

    Thank you.

    Hello

    You should searh for your wifi network at home and connect your printer and the laptop to the network. Direct WiFi option is really only for configurations that do not have a modem/router.

    You may need to disable the option Wireless directly on your printer to help the wireless configuration.

  • Repeated loss of connection between Outlook and Exchange server

    Hello

    I am running Windows 7 beta ultimate evaluation copy Build 7100.

    On that, I installed Office 2007, part of which is Outlook (12.0.6514.5000) SP2 MSO (12.0.64251000).

    I do the usual Windows updates and recently, I noticed that my Outlook has been updated as when I turn it off, I have a new Outlook "grey" with a red 'x' icon in this document, which disappears when the software is finally off.

    The problem is that now Outlook repeatedly loses the connection with the Exchange Server in my (work) and I have to close Outlook in order to reconnect and reactivate.

    It only happens when I'm at home - not at work (where I am actually on the internal network).

    It's very frustrating.

    Can you please help?

    Check with this community: http://www.microsoft.com/office/community/en-us/flyoutoverview.mspx

  • LabVIEW TCP/IP Client and server, I need to send commands and receive comments side server from the client regarding the command sent.

    Hi all

    I can configure my two PCs, one as a client and a server very well. I am able to send commands from the server to the client. However, I am trying to determine how I can get feedback from the client to the server that something has changed, or a CQI that the command has been received. How I can do this in LabVIEW with the box to TCP/IP tools, or is there a better way to do it?

    Thanks for your help!

    Best regards

    -Gmac

    Once the connection is established, TCP does not care which end is the 'server' and the 'customer '. Data can be sent in both directions using the same read and write functions. So, if you are already able to send data to the client and read on the server, you should be able to do the same to send data from the server to the client, using the same TCP connection.

    If this is not clear, please your postal code so that we can provide more specific advice.

  • Network connections between VM and host is slow?

    I have problems with the speed between the host and the VM, connections is limeted and very slow. I'll open the file and copy and it's slowly. My OS is VISTA Business and VM on XP SP3. Connection between VM card is limited to me and see that trafficking is not very practical. If this can be rectified and speed up the connection between the virtual machine and the host.

    As I have written, you can use both at the same time. Just add a host connection only to the guest and make sure name resolution, host name (and the name of the client to the host) using the IP addresses assigned by DHCP VMWare Server for the host only (VMnet1, default) connection. The file "\system32\drivers\etc\hosts" ensures that this connection will be used, for example.

  • Connection between servers and opening default home

    Question about cross-server logon, if a customer has changed their rules of routing so that the default value at the opening of "wishes" is no longer used and a different call handler is used instead, will be this connection between breaking servers? Looks like that connection between servers using backdoor functionality (# and some numbers) which works with the 'Opening of wishes' system, I understand this right?

    No, it is not hardcoded to opening greeting Manager of appeal, but he needs to finish a greeting (whether for a Subscriber or call handler) - the logic is handled in the PHGreeting conversation (the guy that is used for the treatment of the call manager/subscriber wishes) - so if you have a routing rule that say, load the sign the Subscriber in conversation, then you're going to break.

    But as long as the call is handled by _some_ greeting, the hand of logic should work because the conversation PHGreeting is looking for a specific series of TTS to indicate that it is a grip of calls.

  • Install PeopleTools 8,53 Linux question: Windows Client and server Linux

    People,


    Hello. I install PeopleTools 8,53 Internet Architecture. Database server is Dabase Oracle 11 GR 1 material. Operating system is Oracle Linux 5. I installed successfully JDK7, WebLogic Tuxedo 11 GR 1 material and PeopleTools 8,53 10.3.6, in Oracle Linux 5.


    Now, I'm going to implement database PeopleTools8.53. Because the Wizard installation problem, I created PeopleTools 8,53 database manually using Starter named PT853 Oracle database instance. We need run Data Mover script in a Windows Client computer to populate the PeopleSoft database instance in Linux Sever machine.

    Suppose that:

    VM1: Server - Oracle Linux 5 Machine
    VM2: Client - Windows XP

    Nicolas has this tutorial:

    http://Gasparotto.blogspot.com/2008/01/on-PeopleSoft-road-PeopleSoft-database_10.html

    Step 15 to step 23, Nicolas does not explain how to connect VM2 (client) with VM1 (server) and load some data from to VM1 VM2.

    My questions are:

    First of all, we need to install PeopleTools 8.53 Windows version on the Client Windows XP when installing PeopleTools 8,53 Linux version on the machine Oracle Linux 5 Server?

    Second, how to connect with VM1 VM2, and then load to VM1 VM2 data?


    Thank you.

    My computer's processor 64-bit, so 32-bit install PeopleTools or Oracle database server, there must be some mistakes!

    No errors. 32 applications and processes will be running on 64-bit Windows. PeopleTools client programs (PSIDE, etc.) require the Oracle 32-bit client

    What are the 'Oracle customer' in Windows machine?

    'Oracle customer' is the "connectedness agenda" used by Oracle to connect to the Oracle database.

    You mean besides install PeopleTools 8.53 in the Windows client computer, still need to install the Oracle database server in Windows client machine?

    No, not the database server Oracle, just the Oracle client. You can download it separately from delivery for your client operating system.

  • JMS connection between glassfish and OSB

    We are having architecture where between GlassFish and OSB JMS messages. I have the following questions of design
    (1) what is the best way to send messages between these two App servers? (I mean use the JMS bridge or regularly use JNDI lookup and send the message and so on)? We want to send messages in both directions between these two App servers.
    (2) how we use JNDI search inside glassfish for OSB. We use an approach by providing the full client jar fat weblogic. (53 MB) Is this the only way? Is there any thin weblogic client that we use for queue search OSB of glassfish?
    Thanks in advance.

    Using a JMS client WL on GF has limits on XA/JTA, consuming messages from distributed locations and securing individual destinations. Workaround for the latter is to avoid to set ACLs on WL destinations and use SSL to encrypt network traffic if you wish.

    I recommend the following general method: (1) avoid using WL JMS on the GF level clients if you need exactly once the e-mail or require the consumption of a distributed destination and (2) use OSB or WebLogic foreign seller JMS integration facilities for either (A) bridge/transfer messages between WL JMS and GF JMS or call (B) GF JMS directly the WL/OSB tier.

    If you don't want to use a jar full of WebLogic as a customer, there is a pot of customer 'thin' t3 equivalent available in the latest version. I recommend the full jar unless a small pot size is an important condition in your use case. I recommend the thin 't3' jar on the thin "wl" pot as the pot thin t3 tends to have much better performance. Or the other of these clients can interact with older versions.

    FAQ for vendors integrating a Remote JMS summarizes the Server WebLogic tools available for the integration of foreign suppliers (http://download.oracle.com/docs/cd/E14571_01/web.1111/e13727/interop.htm#JMSPG553). I'm not familiar with a tool equivalent/layers of OSB.

    The stand-alone Clients documentation lists different JMS (http://download.oracle.com/docs/cd/E14571_01/web.1111/e13717/basics.htm#SACLT122) client options.

    Kind regards

    Tom

Maybe you are looking for