Actionscript 3 :: Push Message To AIR App From Java Server?

May 23, 2011

We are planning to make a POC for Desktop Alert application. We will have a desktop AIR app that will connect to a Java Server. The server will need to notify Desktop App when it has a notification which will be displayed on the screen.A couple of options that we have discovered are :

1. Keep a persistent connection between the AIR app and the Server, using some sockets and listen to any changes.

2. Poll the Server at intervals to check if some new data has come.

Since these options don't seem optimal (persistent connection) or seems performance wise (polling) better.

View 1 Replies


Similar Posts:


Java :: Push Data From BlazeDS Without Receive Message From Flex Client?

Dec 9, 2009

I am using BlazeDS for data-push feature in my Flex application project. From the official tutorial, Getting started with BlazeDS, it shows messaging example with producer/consumer from API. but how can I implement server side which doesn't need to be invoke from Flex client, but from within server-side instead. I got some idea but I don't know how to do because I'm a Flex developer, not Java developer In Google, there's a tutorial show about I need to extend ServiceAdapter class in Java-side, which extends Invoke method. Do I need to extend other class instead of this to do what I want?

View 3 Replies

Java :: Push Data From Service To Flex Clients?

Dec 9, 2010

Since my service, I would like to push data (messaging).

@Service
@RemotingDestination
public class LoginService implements ILoginService
{

[Code]....

With this implementation, nothing to do ... clients receiveid nothing.

So, how I push data from a service like that ? Is it possible ?

View 2 Replies

Java :: MessageBrokerServlet Initialization Problems- Push Data To Flex Application

Jan 25, 2012

I am working on a server push from Java to Flex. But some how the MessageBrokerServlet is not getting initialized, seems like it is calling a method from: flex.messaging.config.LoginCommandSettings.setMatch() Eventually I found out that this method indeed does not exist in that class (LoginCommandSettings). I there something else that is going wrong?

[Code]....

View 1 Replies

Media Server :: Push Live-stream Of Flv From One Server To Another

Apr 23, 2009

I'd like to push a prerecorded flv as live stream to another server, from wich clients can receive the video as live stream.

[Code]....

monitorStream.flv lies on my FMS. So from the debug-output everything looks fine. But i don´t see any video, when i play the published stream on client-side. The outgoing stream itself is correctly published.

View 2 Replies

Java :: Web Multiplayer Game In FLEX And Java - Build The Server Clients Managing System?

Aug 4, 2011

I'm building a Facebook multiplayer game where the client side is in FLEX and the server side is in Java and I wanted to know if there is a guide on how to build the server clients managing system. When I say server clients managing system, I mean a server which many clients will connect to and will be able to choose between tables to join and play or to create their own table, same way as in texas holdem poker.

View 1 Replies

Java :: Error #2173 When Sending Gravity Message?

Mar 23, 2012

I have a problem with Map objects, while using Gravity. All messages works ok, except the ones which includes Map objects. They throw the following exception:ArgumentError: Error #2173: Could not read the object in the stream. though lass:org.granite.collections.BasicMap do not implement flash.utils.IExternalizable,but we know that it's Class:externalizable by its alias.I've found that this error occurs when you do not include granite-essentials.swc, but I don't think that's the case, because normal messaging using RemoteObject works fine, even with Map objects

View 1 Replies

Java :: Get A Alert Message Each Time I Refresh The Browser In Flex?

Dec 29, 2010

i have a login system done in flex.once the user logs in and if he refreshes the page it will take you back to the login page.how can i make the logged in user stay in the same page using flex and java only?and also if once user is logged in and another loggs in with the same user name and passwrod how can i handle dat using flex and java?

View 2 Replies

ActionScript 3.0 :: Wait For Data - Send A 3 Byte Message To The Server (C) And Have The Server Return A Response?

Dec 17, 2010

I made a server connection with AC3 and C, I need the client(AC3) to be able to send a 3 byte message to the server (C) and have the server return a resopnse. So far everything works except for the fact that the feedback isn't fast enough becuase AC3 just tests for data once and moves on instead of waiting like in C. I'm using a binary socket at the moment but I was wondering if there was any way to wait for new data before moving on

View 2 Replies

Flex :: Push From Server To Blackberry Playbook?

Jul 13, 2011

Is possible to make a "push", initiated by a server, to send data down to a Blackberry playbook application?

If so how is this best implemented in Flex/Actionscript? ie. How do we capture this on the client?

View 1 Replies

Media Server :: Changed To Push The Servers Harder

Jul 30, 2009

I am trying to load test my 2 server load balanced FMS 2 environment which has been set up with the profile for 1000 connection 40MB. When I hit about 140 connections/server it fails with a "Bandwidth Penalty activated at time 1248945759.731000 with bandwidth 5945889 and limit 5000000" error logged in the event viewer immediately followed by many rejection errors: " immediately followed by many rejection errors: "
Connection rejected by server. Reason : [ License.Limit.Exceeded ] : (_defaultRoot_, _defaultVHost_/DLvideo/_definst_) : Current server bandwidth usage exceeds license limit set. Rejecting connection."The load testing mechanism is a test harness that was created by a third party and seems to work well up until the above messages are logged. It basically is making 25 sustained streamed video connections per minute until it starts disgarding connections as noted above.
 
The servers are not even breathing hard (RAM is less that 50% consumed and CPU Utilization is < 5%) 1GB NIC on each server.What parameter(s) can be changed to push the servers harder.

View 4 Replies

Media Server :: Pull/Push System Which In Rmtp?

Sep 18, 2011

i heard that rtmfp which in fms is a Pull/Push system,but i don't know, how the"push/pull" is working

View 2 Replies

Actionscript :: Flex Long Polling (server Push) Without BlazeDS?

Oct 19, 2009

Apart from using BlazeDS, are there any pre-existing libraries that implement long polling (or server push) in Flex?I've read I like to implement Flex to Server comet / long polling for games, but he's only asking if it's possible to implement... Not if implementations exist.

View 2 Replies

Flex :: Messaging - Selective Server Data Push Using Spring Blazeds

Mar 1, 2011

I have a flex UI which communicates with server using spring blazeds. I have a very typical requirement of Live data streaming on a panel in UI. Requirement is like this, We have an object say, Person and server keeps pushing its data on blazeds message destination where UI panel consumer has subscribed and hence user can see this live data in a panel. User can open multiple panels in same browser to view data for different Persons at the same time (e.g id=1,2,3 respectively). There can be multiple UI users who may be viewing the same data for person id=1 at a given time, lets say.

Basically I want to separate data between UI panels. UI panel opened for person id=1 must not display data of that for person id=2. I am doing this using headers-selectors, but apparently I found out that the differentiation to select and display what data happens on UI which is causing performance issues. I learned that using subtopics may improve performance. But, before proceeding for it, I want to know, will UI browser end up in receiving data irrespective of subtopic assigned to data and then consumer will decide to accept it or not?

View 1 Replies

Media Server :: String Parsing By Remote Java Server?

Jan 4, 2011

I am writing a game where positions of an object are being exchanged between the two flash clients through a java server. The secnario goes simply like this:
 
PlayerA ---> Server : "Position X + Position Y+
"
Server ---> PlayerB: "Position X + Position Y+


and it works both ways of course.the problem here is that on my computer where i use "localhost" everything is fine and the data is exchanged seamlessly .. when I loaded the server on a remote host the message received strangely turns into something like "Position X + NaN" (i.e. the y position is wrongly parsed by the server), what is weird even more, is that sometimes, the message gets parsed correctly..the server is wrote in java and it is exactly the same source code that works on my machine that fails over the internet

View 1 Replies

Java :: Smarfox Server For Flash Or Build Mini Server?

Jul 29, 2010

is it possible for me to build a server in java so that i can let my different flash clients communicate with each other?

View 3 Replies

Flex :: Reduce The Time Request Between Producer (Java) And Consumer (Flex) With JMS Message?

Jul 12, 2010

I have implemented application client-server with spring blazeDs message services using JMS message destination. The idea is a producer declared in Java send message using activeMQ and consumer declared in Flex receives them. I have configured the AMFChannel with a polling interval 0, but I have seen when the consumer subscribes to the destination in Flex, the time request can be of up to 3 seconds.

[Code]....

View 1 Replies

Java :: Flex Client Side And Java As Server Side?

Aug 7, 2011

Since I'm developing a multiplayer card game for Facebook using Flex as client side and Java SE as server side, I wanted to know how do I actually make the connection between Flex and Java? the server and client should be able to send each other data(cards,movement,room information etc...) across and I wonder what's the easiest way to do it without complicating it. where to read about it ? I know JAVA but I find JavaEE hard to understand.

View 2 Replies

ActionScript 3.0 :: Scope Within Package - Trace Always Shows A Blank Array Before Push And An Array With One Object In It After The Push

Nov 12, 2009

I have a class in which I have declared an array. The functions in that class are designed to make changes to the array, but it's not working:

[Code]...

Anything I do to customerCheck treats it as if it were a new array. This is especially obvious when using customerCheck.push in addCharToCheck() -- the trace always shows a blank array before push and an array with one object in it after the push... then next time it does the same. I know I'm making some sort of fundamental error regarding the scope of the array within the class but I just cannot find any good information on how to fix it! Moving to AS3 (been coding it for all of about 3 weeks) is a nightmare so far, and it seems to be the 'easy' stuff that causes me problems

View 6 Replies

Media Server :: Clients Not Allowed To Broadcast Message?

May 18, 2009

This is showing up in my logs, and i have no idea what is causing it and can't find any more Dropping application (stream_app/_definst_) message. Clients not allowed to broadcast message. It doesn't happen very often, about once every 1 to 2 days.

View 1 Replies

Media Server :: Deliver Message To All Peers In Rtmfp

Jun 5, 2011

How can I send some data to ALL peers via p2p-network?I tried using netgroup.post() but not all users recieved this messages.Then I tried to get peers to resend ( via post() ) all the data they have received - this works well, but produces large amounts of additional traffic for all peers (3Ñ…-5Ñ… and more)Is there a way guaranteed to deliver a message from the server to all peers? (not sending data from a server directly to each peer)

View 7 Replies

Media Server :: Error Message: Method Not Found(getStreamlength)?

Mar 1, 2010

ok, so I got the broadcast running as SE suggested, everything is running smooth local and live except for one thing.every 45 seconds or so, I the encoder displays an error while broadcasting. the broadcast however continues, so I went to the error log in application.00.log. and this is what was there:I'm assuming it has something to do with the length of the file, when I look in the folder that saves the broadcast, is dozens of files that have approx size 1 mb. As the broadcast goes, I see the file being created, and then when it reaches about 1 mb, a new one is born. it ?

View 10 Replies

Media Server :: Send Message To Direct Connected Users?

Jan 17, 2011

working on a text Chat application with FMS4 "RTMFP" connection and i am looking a functionality to send direct message to one to another peer

View 6 Replies

ActionScript 3.0 :: Server Shows Error Message In Flex Side

Jan 4, 2011

I am using AIR with tomcat..(blaze ds as bridge) but i changed in service.config also in server side but i got the following error.. how to rectify this problem Result : [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url:

View 1 Replies

Media Server :: Getting Message Connection Has Been Rejected Due To License Limit In Flash

Aug 4, 2011

We are getting message "Connection has been rejected due to license limit" in flash media server 2.0.5 at the time of connecting to the server. Previuosly that server works fine but today when we tried got above message. May be some changes occur on the system as we dont have controll for that system. But we can check FMS 2.0.5 on that system through managment console of FMS.  Please suggest us in which direction we have to look.

View 2 Replies

Media Server :: Sending Error Message: Method Not Found (FCSubscribe)?

Nov 26, 2011

Accepted a connection from IP:42.159.56.116, referrer: http://hh.dyndns.org/swfs/StrobeMediaPlayback.swf", pageurl: "http:/hh.dyndns.org/live.htm?source=rtmp://hh.dyndns.org/live/livest ream&type=liveSending error message: Method not found (FCSubscribe).

View 1 Replies

Flex :: Server Client Communication - Display Emergency Alert Message

Oct 1, 2010

I have 12 display monitors installed in different floors in a building. These monitors display announcements that will be update once in a day. I'm retrieving these announcements from db and storing in an array and displaying it all day long. In addition to this, I have a requirement to display emergency alert messages on the monitors. My Server is a windows 2000 server. I'm using asp for creating the JSON object.

For the emergency alert I am thinking of doing this:
Create a page in asp that lets user to enter emergency msg and save to db.
Create a page in asp that will check if there an emergency msg in db and show it in a asp page in json.
Create a timer that pings this json page every 1 second. If it's available then show it.
Is there any other sophisticated method available to poll the server or to send messages from server to client?

View 1 Replies

Flex :: RDS Server Connect Data Services Using Blazeds Get Error Message

Mar 2, 2011

When I connect data services using blazeds I get following error message.

[Code]...

Why am not able to connect? But when specify remoteObject in the declaration tags and call the methods it works fine.

View 1 Replies

Actionscript 3 :: Understand If A Message Is Successfully Sent To Target Server In Client Using TCP Protocol

Jan 17, 2012

Using TCP protocol. Client is Flash. Server is Java (on Linux). Is there anyway to understand if a message is successfully sent to target server in client (Actionscript 3) ?

View 1 Replies

Media Server :: Live Streaming - Sending Error Message: Method Not Found (getStreamLength)?

Nov 10, 2009

I got this error when i am trying to connect on rtmp://172.31.14.91/live/livestream. Accepted a connection from IP:172.31.14.91, referrer: , pageurl: Sending error message: Method not found (getStreamLength). I don't have any problems with vod but on live streaming is so hard for me to get it.My encoder is a Media live encoder 3 and the media server is media server 3.5.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved