Application of relay

Hello

Is there any application which can relay another application on Flash Media server?

For example, I have a 'live' application on the server. I want another application, "liverelay" that can relay essentially makes his appearance on the 'live' application

Is this possible? If yes how can I apply?

Looking forward to a response.

Thank you

Basically, you can hold in my code from anywhere above the code of the application 'live' - I don't think that it must enter in conflict - something like below

NetConnection.prototype.connectTimer;

NetConnection.prototype.url;

NetConnection.prototype.onStatus = function (info)

{

trace ("# nc:" + info.code + "' # '");

If (info.code == "NetConnection.Connect.Failed" |)  info.code is "NetConnection.Connect.Closed")

{

If (this.connectTimer)

{

clearInterval (this.connectTimer);

this.connectTimer = null;

}

trace ("set up to reconnect timer for" + this.url);

this.connectTimer = setInterval (reconnection, 30000, this);

} else {}

If (info.code is "NetConnection.Connect.Success")

{

trace ("* connection to" + this.url + "successfully");

If {(this.connectTimer)

clearInterval (this.connectTimer);

}

}

}

}

Reconnect = function (nc)

{

If (NC.connectTimer)

{

clearInterval (nc.connectTimer);

nc.connectTimer = null;

}

NC. Connect (NC. (URL);

}

application.onAppStart = function()

{

NC = new NetConnection();

NC. URL = "rtmp://localhost/app_2";

NC. Connect (NC. (URL);

}

application.onPublish = function (client, stream)

{

trace ("# publish:" + stream.name + "#");

client.ns = new NetStream (nc);

client.ns.onStatus = function (info)

{

trace ("ns:" + info.code);

If (info.code is "NetStream.Publish.Start")

{

client.ns.Attach (Stream);

}

}

If (client.ns)

{

client.ns.Publish (Stream.Name);

}

Returns true;

}

application.onUnpublish = function (client, stream)

{

trace ("# end of publication:" + stream.name + "#");

client.ns.Attach (false);

client.ns.Publish (false);

}

/*

* application.onConnect:

* Implementation of the interface onConnect function (optional).

* It is called whenever a client connection request connection. Live webcam app uses this

* function to authenticate the connection field and allows only

for one request of the Subscriber.

*/

application.onConnect = function (p_client, p_autoSenseBW)

{

Check if pageUrl is an area that we know.

Check pageurl

An application for Flash Media Encoder is not verified for authentication

If ((p_client.agent.indexOf ("WEF") is-1) & (p_client.agent.indexOf ("GFFE") is-1))

{

Area of the HTML of authentication for the request file:

Do not call validate() when the query is localhost

or HTML authentication domains is disabled.

If ((p_client.ip! = "127.0.0.1") & application.) HTMLDomainsAuth

&& ! this.Validate (p_client.pageUrl, this.allowedHTMLDomains))

{

trace ("authentication for pageurl failed:" + p_client.pageUrl + ", rejecting the connection to" + p_client.ip);

Returns false;

}

Authentication of domain of the SWF file for the query:

Do not call validate() when the query is localhost

or SWF authentication domains is disabled.

If ((p_client.ip! = "127.0.0.1") & application.) SWFDomainsAuth

&& ! this.Validate (p_client.referrer, this.allowedSWFDomains))

{

trace ("authentication for sponsor failed:" + p_client.referrer + ", rejecting the connection to" + p_client.ip);

Returns false;

}

Logging

trace ("accepted a connection to IP address:" + p_client.ip)

+ ", sponsor:"+ p_client.referrer"

+ ", pageurl:" + p_client.pageUrl);

} else {}

Logging

trace ("Adobe Flash Media Encoder connected to" + p_client.ip);

}

By default, all clients are disabled to access raw audio and video and data bytes in a stream

using BitmapData.draw () and () SoundMixer.computeSpectrum., please see

Flow doccumentations for access to the data to know requirement version of flash player to support this restriction

Access permissions can be allowed for all uncomment the following statements

p_client.audioSampleAccess = ' / ';.

p_client.videoSampleAccess = ' / ';.

this.acceptConnection (p_client);

Client based on a component connection Flash 8 and 9 FLV Playback

requires the following code.

If (p_autoSenseBW)

p_client.checkBandwidth ();

on the other

p_client. Call ("onBWDone");

}

/*

* Client.prototype.getPageUrl

* Public API to return the URL of the HTML page.

*

*/

Client.prototype.getPageUrl = function() {}

Return this.pageUrl;

}

/*

* Client.prototype.getReferrer

* Public API to return the URL of the client SWF file field.

*

*/

Client.prototype.getReferrer = function() {}

Return this.referrer;

}

/*

* FCPublish:

* FME calls FCPublish with the name of the stream each time a stream of data

* is published. This notification can be used by the script action server-side

* to maintain a list of all streams or also to force FME to suspend their publication.

* To stop the publication, call "onFCPublish" with an information object with status

* code of the value of "NetStream.Publish.BadName".

*/

Client.prototype.FCPublish = function (streamname)

{

your configuration data flow and check if you want to allow this workflow to be published

If (true) / / do a validation here

{/ / This is optional.}

This.Call ("onFCPublish", null, {code: "NetStream.Publish.Start", description: streamname});

}

on the other

{

This.Call ("onFCPublish", null, {code: "NetStream.Publish.BadName", description: streamname});

}

}

/*

* FCUnpublish:

* FME notifies server script when a data stream is not published.

*/

Client.prototype.FCUnpublish = function (streamname)

{

make your own place

This.Call ("onFCUnpublish", null, {code: "NetStream.Unpublish.Success", description: streamname});

}

/*

* releaseStream:

* When the FME for FMS connection fall during an editing session, it will be

* try to republish the data stream when the connection is restored. In a certain

* times FMS will reject the new workflow server is always

* ignoring the fall of connection, sometimes it can take a few minutes.

* FME called 'releaseStream' method with the name of the stream, and this can be

* used for free by the force of the stream.

*/

Client.prototype.releaseStream = function (streamname)

{

s = Stream.get (streamname);

s.Play (false);

}

/*

* application.readValidDomains

* Function to read the file of authorized field

* Parameters:

* the file name:

* name of the file in the application directory

* which contains a domain name valid per line. This file can contain

* Comments followed by a ' # ' as the first character in this line.

* an entry without comment with a space is considered to be an error cases.

*

* Returns

* a table where each entry contains a domain name

* listed in the file.

*/

application.readValidDomains = function (fileName, domainsType)

{

var domainFile = new File (fileName);

var domainsArray = new Array();

var index = 0;

var lineCount = 0;

var tempLine;

domainFile.open ("text", "read");

Read the file line by line and fill in the domainsArray

with valid entries

While (domainFile.isOpen &! domainFile.eof ())

{

tempLine = domainFile.readln ();

lineCount ++;

If (! tempLine | tempLine.indexOf("#") == 0)

{

continue;

}

tempLine = tempLine.trim ();

If (tempLine.indexOf("")! = - 1)

{

trace ("' junk, entry field ignored." + fileName + ":"+(lineCount+1));)

}

on the other

{

domainsArray [index] = tempLine.toLowerCase ();

index ++;

If (tempLine == "*")

{

Switch (domainsType) {}

case 'HTMLDomains ':

trace ("found the wildcard character (*) entry: disable authentication for areas of HTML file" "");

request. HTMLDomainsAuth = false;

break;

case 'SWFDomains ':

trace ("found the wildcard character (*) entry: disable authentication for areas of SWF file" "");

This. SWFDomainsAuth = false;

break;

by default:

Do nothing

break;

}

}

}

} / / End while

Something is wrong! the file of areas must be accessible.

If (! domainFile.isOpen) {}

trace ("error: cannot open '" + name + "', rejecting all customers except localhost.");

}

on the other

{

domainFile.close ();

}

Return domainsArray;

}

/**

* String.prototype.trim:

* Function to cut the spaces at the end beginning of an input string.

* Returns:

* chain adorned without space leader & end.

*

*/

String.prototype.Trim = function () {}

Return this.replace(/^\s*/, "") .replace (/ \s*$ /, "");

}

===================================================

Try it and see if his work - if you are having problems LMK

Tags: Adobe Media Server

Similar Questions

  • Oracle query of relay and access function call does not return the list

    Thanks to aid in a previous post, I received, I created an oracle 10 g feature that returns the list after you run the sql code it contains. It works in oracle, using sql developer.

    I need to have the list that he returned to see the place in MS Access via a relay request. It does not work so far. The string for connection etc is ok, I'm able to use passthrough queries to run sql strings correctly. But when I try to call the function through the request of relay and access initially nothing seems to happen (IE no list) and if I try to run again, there is an "ongoing call odbc error. Current operation cancelled "." There are only three records in the table. I'm missing something, someone can he spot?

    The application of relay and looks like this

    Select * from fn_testvalues of the double

    Once that is running in oracle.

    To create the test table and 2 functions below.

    CREATE TABLE t_values (MyValue varchar2 (10));

    Table created
    INSERT INTO t_values)
    SELECT 'Merced' c1 FROM dual UNION ALL
    SELECT "Pixie" dual UNION ALL
    SELECT "452" DOUBLE);

    3 lines inserted
    FUNCTION to CREATE or REPLACE RETURN NUMBER IS fn_isnum(p_val VARCHAR2)
    n_val NUMBER;
    BEGIN
    n_val: = to_number (p_val);
    RETURN 1;
    EXCEPTION
    WHILE OTHERS THEN
    RETURN 0;
    END;
    /

    Feature created

    table test:
    SELECT val, isnum fn_isnum (MyValue)
    OF t_values;

    VAL ISNUM
    ---------- ----------
    Merced 0
    Pixie 0
    1 452

    Now the function that is called in the application of relay:

    create or replace function fn_testvalues
    sys_refcursor is back
    RC sys_refcursor;
    Start
    Open rc for
    Select t_values.*, fn_isnum (MyValue) t_values IsNum;
    Return (RC);

    end fn_testvalues;

    Why not?

    satyaki>
    satyaki>select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>create or replace view bb
      2  as
      3    select *
      4    from emp;
    
    View created.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select * from bb;
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1815       1400         30 SALESMAN
          7788 SCOTT      ANALYST         7566 19-APR-87     598.95                    20 ANALYST
          7839 KING       PRESIDENT            17-NOV-81       7260                    10 PRESIDENT
          7844 TURNER     SALESMAN        7698 08-SEP-81       2178          0         30 SALESMAN
          7876 ADAMS      CLERK           7788 23-MAY-87     159.72                    20 CLERK
          7900 JAMES      CLERK           7698 03-DEC-81     1379.4                    30 CLERK
          7902 FORD       ANALYST         7566 03-DEC-81    5270.76                    20 ANALYST
          7934 MILLER     CLERK           7782 23-JAN-82     1887.6                    10 CLERK
          7566 Smith      Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
          7698 Glen       Manager         7839 23-JAN-82       1848          0         10 Manager   23-JAN-89
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
             1 boock
    
    12 rows selected.
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    satyaki>select *
      2  from bb
      3  where empno = &eno;
    Enter value for eno: 7521
    old   3: where empno = &eno
    new   3: where empno = 7521
    
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO JOB1      DOB
    ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ----
          7521 WARD       SALESMAN        7698 22-FEB-81     226.88        500         30 SALESMAN
    
    Elapsed: 00:00:00.00
    satyaki>
    satyaki>
    

    Kind regards.

    LOULOU.

  • Problems with the server of Cirrus cause this

    Hello

    We are have developed an application that uses the Cirrus server for two months now and today, we have difficulty with the Netconnection.call method we use to call the OnRelay method on the other peer. When a peer calls the calling method on the netconnection OnRelay on the peer is called from time to time (so it's really not reliable).

    We are curious to know if this could be related to recent problems with the Cirrus Server? If this isn't the case, which could be a reason the calls work only part of the time?

    Kind regards

    Kevin

    While the problems with our hosting provider are not yet resolved, the cluster must operate in a nominal way. which should include the correct and relatively reliable relay/onRelay function operation.

    Note that relay/onRelay is rate limited to approximately 1 relay 2 seconds (approximation with a sliding window and about 10 relay every 20 seconds). This speed limit is in place, because the function of relay/onRelay is expensive to provide and a developer he abused. the limit is implemented by dropping applications for relay for a while if the rate exceeds the limit point. the ceiling is by sender NetConnection.

  • Relay to other database applications

    Probably a simple answer to this topic - I have servers A and B, which are all two servers in 11 g DB; There are static (IP-based) firewall rules to communicate - B can talk specifically A on 1521.  I now have a server C (also 11g), which must also connect to B but the firewall rule takes about 2 weeks to put in place (Server B is hosted, and 2 weeks is the deadline for the implementation of a new firewall rule).  Is there a simple way to allow C to proxy requests via has in some way?

    Note that one needs to keep his IP address and connect to B, so I can't reassign the IP address and C.

    I considered remote listeners, but I understand that after the listener connects the customer to the DB the client will then attempt to connect to directly (?) DB, so it wouldn't work.

    Thanks for your suggestions

    ngilbert wrote:

    Actually, I don't understand what it is that you do not understand.

    C must query the DB on B server that is listening on 1521.

    C cannot connect directly to B because of firewall rules.

    A can connect to B because of firewall rules.

    Y at - it a way for C to connect with B where B sees the traffic as from A, while the firewall between B and C rule does not prevent the connection.

    a, to create a dblink to B

    a, create synonyms that reference tables b via the link

    in C, create a link to A.

    in C, create the synonymous reference A thesaurus, which in turn reference synonyms pointing to B

    technique is also used to fill customer to incompatible database level.

  • Are not relayed queries ARP on bridged Airport Extreme

    I have a router Xfinity and set up Airport extreme as a router jumpered to connect LAN devices on a different floor.

    Looking at network traffic, I noticed that the ARP requests are delayed or not relayed on the router bridge making it appear that these devices are offline.  These applications should get relayed?  Is there a special way to configure this option to get there?

    I used tcpdump to monitor network traffic.

    It is one of these small problems that make it difficult to use sometimes Apple routers... ARP is a problem.

    Apple recommended using the extreme double NAT... I don't like it, but you can see why.

    I recommend using static IP approach.

    Re: time capsule Airport Guard disconnection

    You sound like you know what you're doing, so it's not difficult for a person with some networks nouse.

    Post again if you find this difficult.

    One thing I added is the default domain in the Airport extreme is local and it seems never even change in bridge... I doubt that you can change the domain of the Xfinity router setting but if you can do then. Do local as well since you can not change the configuration of the router from apple.

    Finally if you still want to use the bridge... try connecting to the WAN port ethernet port LAN of the extreme... In bridge WAN is connected to the local network, but it may be less accurate in bridge, you can even set a static IP address and with the connection to the LAN port ethernet customers should get all the information directly from the Xfinity... If your extreme is the KT model... There is definitely something wrong with the extreme WAN.

  • OK to mix 'of connection to the switch"and"close relay switch?

    Hi all

    I'm developing a test sequence using the card multiplexer 2527 to the track signals.  To configure the card, I use DAQmx switch functions.  In my application, I have a Subvi routine that imports the data from a spreadsheet Setup and run a loop for to set the configuration for each step (each iteration of the loop contains the channel for 2527 card information).  The topology is set on the first iteration, as well as the configuration of the path to the first string.

    My concern is this: I need to close the extra channels/relays without changing the topology or resetting the device.  In the first round, I use "connection to the switch" function to set the initial path, (ch0 to com0 for example).  Then in subsequent iterations of the loop, I use "Relay close switch" function to close the additional channels individually (for example k2).  In the end, when the measure is taken, both ch0 ch2 must be closed and routed to com0.  This implementation is so sure, or am I somehow to make the adjustments to the initial loop?

    I would like to test this with the hardware, but it is not yet available.

    Also, I realize that I could use independent topology and configure all relays individually for each step, but I hope that my approach will be easier and safer.

    Please notify.  Thank you.

    GSinMN

    Hello GSinMN,

    It's OK to mix 'of connection to the switch"and"Close relay switch"If you understand what's happening below. "Switch Connect" connects two channels by closing a path of relay between the channels, then "Close relay switch" can be used to change the State of the individual relays. If you are not careful you can mess up your connection by activating / deactivating relays that are part of the route connecting your channels.

    "Also, I realize that I could use independent topology and configure all relays individually for each step, but I hope that my approach will be easier and safer."

    I would recommend the topology independent if you want to stick with connections to channels only. http://zone.NI.com/reference/en-XX/help/375472G-01/switch/2527_independent/

    Initial connection:

    CH0-> pcom0

    pcom0plus-> icom0plus

    pcom0minus-> icom0minus

    icom0-> com0

    In each future iteration just connect to the next to pcom0 channel (which will be indirectly connect it to com0):

    CH1-> pcom0

    CH2-> pcom0

    ...

    ...

    Jarrod

  • Very long time tasks relay

    Dear friends

    I would like to do a test search to simulate a month of rain and Sun.

    For this I'll use 2 relays, wave of open water for the rain and the other for heating (Sun).

    The student has the time which rained and the days that has som Sun for a month.

    I am thinking of teel the student to transform this month in a few minutes and give me a table with the Ant stop start within minutes of rain and Sun.

    Then, with a clock, I'll compare with the fact that the values of openness and closure of the relays. I use a usb NI 6009.

    People of the forum have a simple way to do this? The problem is that it is not cyclical. So I need to enter starts and stops for rain and Sun.

    I thanks for any help to help me simplify.

    Best

    cpalka

    Hi Cross

    I've adapted an example tha I found and appears to be what I want. I must add to the cycles of the Sun.

    do you think it works for a month?

    On the "apparently very new to LabVIEW", I would like that you could please understand I do a lot of things in labview (adaptation of examples, leaning new thigs etc...), but my work is in the search box and it is a new project that I will use the NI6009.

    Now I'm fihish (with the help of Nathan) an xy table of an old tracer to measure the texture of the soil, and right now, I use the shield of arduino + labview

    https://decibel.NI.com/content/thread/46259

    A few months ago, I need to learn to work with a datataker data recorder, another way to program.

    Several times I use arduinos for small applications, another programming language

    Hoppe, you can understand that every year we have many students with different projects and we must improvise to make each of them. Sometimes we use labview sometimes not. (I prefer because we have a few Renault of OR), but labview is not only the tool that I need every day, I need the knowledge of electronics, I need the knowledge of mechanics, because we always do that have never done before and we need to improvise. and of course we have the money we pay an electronic engineer, an expert of Labview, etc, etc...

    I am a Civil Engineer and to serve the best I can my students I nedd people like you every day.

    Sorry for that

    Best

    cpalka

  • Error-229771 after compiling VI in the application builder

    Hello

    I went from LabVIEW 8.2.1 to LabVIEW 12.0f1. Installation is running on a computer clean windows 7, only the 12.0f1 of labview. My request for LabVIEW 8.2.1 works well within the development system. It seems to be 3 times slower than in LabVIEW 8.2.1, but is not the problem at the moment.

    After you create an application with the Builder asks LabVIEW 12.0f1, I get an error:

    Error-229771 to Start Task.vi DAQmx

    I know that several pages on the error 229771 on ni.com. None of the relay worked. The point, the vi runs within the system development, but not as an application, is noticeable.

    Anyone have an idea how to fix the prblem?

    Thank you very much and best regards,

    Michael


  • What devices transmit Frame Relay and how Frame Relay attached to your computer.

    What devices transmit Frame Relay and how Frame Relay link your computer to the internet provider server?

    OT: What devices transmit Frame Relay and how Frame Relay link your computer to the internet provider server?

    Hello

    Frame Relay is a standardized wide area network technology that specifies layers linking physical and logical channels of digital communications using a methodology of packet switching. Originally designed for transport in Integrated Services (ISDN) digital network infrastructure, it can be used today in the context of many other network interfaces.

    Network providers commonly implement Frame Relay for voice (see) and data as encapsulation technique, used between local area networks (LAN) over a wide area network (WAN). Each end-user gets a private line (or leased line) to a frame relay node. The Frame Relay network handles the transmission on a frequently changing path transparent to all end-users.

    Reference: Frame relay applications
    http://TechNet.Microsoft.com/en-us/library/bb726928.aspx

  • OR TB-2605 terminal block for the NI PXI-2503 relay card PIN GND interconnection?

    I use the relay Board NI PXI-2503 and the NI TB-2605 terminal block to impliment some of interconnections, my question is on the Terminal it is a GROUND terminal on the GND PIN. What electric pins or card background basket or internal relay Terminal this 'point' interconnection to?

    Hello gene01,

    I don't directly know what this PIN connects to.  Following the trace, that looks like it is connected to the mass of the chassis as the 2503 itself does not have a grounding pin.  I have this will confirm for you, but is there a specific reason for your application need you to do this?

  • NEITHER 9481 relay are not locked when running the labview compiled exe on a computer with only installed labview execution?

    I recently bought a cDAQ-9172 with several modules.  One of the modules is a NI 9481 relay module.  I created an application using Labview and built an exe file.  If I run the exe on the computer, it was developed on the relays work properly, that is, they remain locked up until their status is changed.  If I run the same exe on a computer with only the Labview runtime installed (no software installed), the pulse relay contacts and not locked.  I'm using Labview version 7.1 for my development and execution.  Everyone knows about this problem?

    Ignore this announcement, the error stems from a difference between each computer ini-files and has nothing to do with the Labview Labview runtime vs, my bad developer.

  • Push the web application through UrbanAirship

    I want to use the urban airship to send notifications of type push to a web application. I found an example on https://github.com/blackberry/Cascades-Community-Samples/tree/master/UrbanAirshipClient but it is an application c / c++. Is it possible to grow a web application via urban airship?

    Hi, it is possible.

    Urban airship servers simply push Push BlackBerry servers that relay this push to the end-user device. This means that the only extra step that is really needed is, when registering with the push service, to register as urban airship witih as well as the link between urban airship, Push BlackBerry server and end-user device exists.

    Registration for the Push Service is essentially the same. You must create a PushService object:

       blackberry.push.PushService.create(
            {
                invokeTargetId: INVOKE_TARGET_ID,
                appId: BLACKBERRY_PUSH_APPLICATION_ID,
                ppgUrl: BLACKBERRY_PUSH_URL
            },
            createPushServiceSuccess,
            createPushServiceError,
            simChangeCallback,
            pushTransportReadyCallback
        );
    

    On createPushServiceSuccess, you create the channel by the usual method.

    /* We created the PushService instance. */
    function createPushServiceSuccess(service) {
        /* Store our PushService object. */
        pushService = service;
    
        /* ...other actions here potentially... */
    
        /* Create channel to receive pushes. */
        pushService.createChannel(createChannelCallback);
    }
    

    And finally, on the creation of the channel, we will register with urban airship.

    /* When a channel is attempting to be created, this will trigger. */
    function createChannelCallback(result, token) {
        var xhr;
        if (result === blackberry.push.PushService.SUCCESS) {
            /* On success, we'll register with Urban Airship. */
            xhr = new XMLHttpRequest();
            xhr.open('PUT', HTTPS_GO_URBANAIRSHIP_COM_API_DEVICE_PINS + token, true);
            xhr.onload = function () {
                console.log('Urban Airship: ' + this.response);
            };
            xhr.setRequestHeader('Authorization', 'Basic ' + URBAN_AIRSHIP_APPENCODED);
            xhr.send();
        } else {
            console.log('createChannelCallback: ' + result);
        }
    }
    

    Above, we will ensure that the channel was created successfully. The xhr request is purely related to urban airship and is the extra piece that we need. We use a few defined constants (previously).

    • HTTPS_GO_URBANAIRSHIP_COM_API_DEVICE_PINS is a string matches the URL of urban airship registration default PIN.
    'https://go.urbanairship.com/api/device_pins/'
    

     

    • URBAN_AIRSHIP_APPENCODED is a combination of two other channels; coded using window.btoa ().
    window.btoa(URBAN_AIRSHIP_APPKEY + ':' + URBAN_AIRSHIP_APPSECRET);
    
    • URBAN_AIRSHIP_APPKEY and URBAN_AIRSHIP_APPSECRET are obtained from urban airship console when you configure your application as follows.

    Finally, the last piece, you need to do is provide your credentials to Push BlackBerry in the console of airship urban itself. It is important to use the full URL including your CPID when you fill out this information. This is information which is sent to you by BlackBerry when you sign up for credentials EVAL or PROD.

    Beyond that, the implementation of the push, summoning, etc. would be all follow the regular WebWorks Push Application structure.

  • Why then I restart the application immediately?

    After reading around, I feel that it is recommended to plan restarting the app for up to a minute later as follows:

    ApplicationDescriptor descr = ApplicationDescriptor.currentApplicationDescriptor();
    ApplicationDescriptor newDesc = new ApplicationDescriptor( descr,
        "My App Name",
        new String[] { "myArgument" },
        descr.getPosition(),
        descr.getNameResourceBundle(),
        descr.getNameResourceId(),
        ApplicationDescriptor.FLAG_AUTO_RESTART | ApplicationDescriptor.FLAG_SYSTEM
        );
    ApplicationManager appManager = ApplicationManager.getApplicationManager();
    appManager.scheduleApplication(newDesc,System.currentTimeMillis() + 60001, true);
    System.out.println("Application is exiting..." );
    System.exit(0);
    return;
    

    However, an immediate restart seems to work just fine, the following:

    ApplicationDescriptor descr = ApplicationDescriptor.currentApplicationDescriptor();
    ApplicationDescriptor newDesc = new ApplicationDescriptor( descr,
        "My App Name",
        new String[] { "myArgument" },
        descr.getPosition(),
        descr.getNameResourceBundle(),
        descr.getNameResourceId(),
        ApplicationDescriptor.FLAG_AUTO_RESTART | ApplicationDescriptor.FLAG_SYSTEM
        );
    ApplicationManager appManager = ApplicationManager.getApplicationManager();
    try
    {
        appManager.runApplication(newDesc);
        System.exit(0);
        return;
    }
    catch(ApplicationManagerException e)
    {
        // Handle situation when application cannot run
        System.out.println("Couldn't restart app: " + e.getMessage());
    }
    

    Can someone explain why I should do it the first way instead please? I really don't want a delay if I can help it.

    Reviewing logs of my release, I also wonder why the application scheduled (with delay ms 60001) often seems to run within 30 seconds after the restart. I run on a simulator of 9930 at present.

    Thank you very much.

    Think that if you were just amgr.launchApplication, if executed somehow before the end of the app was fully, he could just go back to the app in the foreground, and it ends then cancel.  So it would not launch.

    but you can try it

    An alternative is to include another point of entry for the same app module, which, directly by hand, simply appmgr.launchApplication what you're trying to restart.  Then you put one launchApplication for this other point of entry where you currently have the scheduleApplication, and it could act as a relay, ensure that enough that delaying the application probably will restart immediately after that he finished closing.

    that is to say:

    project 1:  CoffeeMaker.jdp            regular app, no arguments            module name: company_CoffeeMaker
    
    project 2:  CoffeeMakerReset.jdp            alternate entry point to CoffeeMaker            module name: company_CoffeeMaker            argument: Starter            check "System App"
    
    class CoffeeMaker {  public static CoffeeMaker app;
    
      public static void main(String args[]) {    if ((args.length > 0) && args[0].equals("Starter")) {      ApplicationManager.getApplicationManager().launchApplication("company_CoffeeMaker");      }    else {      app = new CoffeeMaker();      try {        app.enterEventDispatcher();        } catch (Exception e) {        ApplicationManager.getApplicationManager().launchApplication("company_CoffeeMaker?Starter");        }      }    }
    
     }
    

    Personally, I use scheduleApplication with a 10 second delay.

  • BlackBerry 9300 smartphones new won't be in place of the emails or download applications

    I bought a 9300 literally yesterday, and I use it with my current contract sim (which includes data) until I can get a blackberry contract.
    In addition to the fact that I was abroad this morning, to disable only wifi and mobile services, and I could not navigate beyond google (I use the hotspot browser)...
    I want to configure my email, even though I read that I can not push until I get BB service. However, I seem to be missing the wizard. When I try to put up an e-mail account, I wonder if I have something of something corporate (which I did not) and can't answer anything but yes. There is a point selected, that I can't deselect. So I can't use my email.

    Also, I didn't have App World, so I downloaded from the browser and now its in my menu. However if I try to connect with my BB account I get an error and the application crashes, even if the details are correct. So I can't download anything.

    Please advise? Thank you very much.

    Hiya!
    Regarding your email of installation failure, you won't get the option once you have a valid Blackberry data plan on the account. Same thing with your App world.
    Yes, you can use yoru hotspot browser, but that's all. you need the plan data Blackberry in order to clear through the RIM relay and connect to the BIS server.
    Then you will have a complete joy.

    See you soon!

  • Cannot log into PeopleSoft, through application server

    Hi, I'm almost finished installing and currently at the trial stage of connection 3-layer by the application designer after you have configured the application server domain.

    Here are the details of app server configuration:

    ----------------------------------------------

    Fast configuration menu - field: HRDEMO

    ----------------------------------------------

    Characteristic parameters

    ==========                    ==========

    (1) pub/Sub servers: No. 16) DBNAME: [HRDEMO]

    (Server 2) Quick: No. 17) DBTYPE: [ORACLE]

    (Query servers 3): n ° 18) username: [PS]

    ((4) shock: Yes 19) UserPswd: [PS]

    ((5) Jolt relay: No. 20) Networkid: [TESTSERV]

    ((6) WSL: No. 21) AddToPATH: [C:\app\Administrator\product\11.

    2.0\dbhome_1\BIN]

    (Debugger 7) PC: Yes 22) ConnectID: [people]

    (Event notification 8): Yes 23) ConnectPswd: [peop1e]

    [(Serveurs de 9) MCF: No. 24) name of the server:]

    (10 assembler) Perf: No. 25) Port of WSL: [7000]

    ((11) Analytics servers: Yes 26) JSL Port: [9000]

    (Bridge 12) areas: No. 27) Port of JRAD: [9100]

    In the configuration manager, here are the values I gave:

    Name of the server App - HRDEMO

    The computer name or IP - address localhost

    Port - 7000

    Password login area - PS

    Confirm password login area - PS

    But when I try to log in the application in mode 3 designer levels I get following error:

    Could not connect to HRDEMO (//localhost:7000) application server.  Possible causes are: the server name/IP address and port for application server alias is incorrect, the application server is not started, or the network is inaccessible.  Contact your system administrator or see Tuxedo log for more information.


    I checked the connection to the application server with telnet as domain

    telnet localhost:7000

    but he did not, got this message-

    Connecting to localhost:7000... could not open connection to the host, on port 23

    : Connection failed

    I don't have where where I am doing wrong. Could someone please help me here.

    First, you should enable the option 6) WSL.

    Did you try to replace "localhost" default IP 127.0.0.1? You don't have a fixed IP address?

    In addition, 'localhost' is to be replaced with the name of the server that is present in the C:\WINDOWS\system32\drivers\etc\host file, such as

    192.168.1.1 myservername

    I don't know your exact OS (ok, it's windows but which), but what about disabling the firewall for the moment of the test?

    And not tied directly but most likely you don't want PC debugger, Event Notification and Analytics Server, do you think? If not, turn them off.

    Nicolas.

Maybe you are looking for