Flex :: Syncing BlazeDS Messages Across Two Webservers?
Mar 5, 2012
I have a Flex/BlazeDS webapp (pseudo content management system) with a Java backend running on 2 Weblogic 10.3 servers for load balancing and HA purposes.Basically, I'm using AMF polling to update my app such that when a user opens a document from the search results, the corresponding row will display a locked icon across all user displays that currently have that document on the screen.
The problem I have is that if a user connected to Server A opens up document X, the locked icon will only appear on the screens of other users connected to Server A. The displays of users connected to Server B will not be updated. Is there any established paradigm or best practice to ensure that the locked update will propagate across all servers?
View 2 Replies
Similar Posts:
Oct 29, 2010
I've run into a bit of a wall with sending messages from BlazeDS on the server to Flex clients. I have my adapters and destinations set properly (I think) messaging-config.xml and my streaming channel setup in my services-config.xml files. The messages work beautifully in Safari (Mac and PC) but no other browsers.
[Code]...
I feel like things are setup correctly in the channel definition but, perhaps, some of those user-agent settings are off (I have played with their settings, to no avail thus far).
View 1 Replies
Nov 25, 2010
I've run into a bit of a wall with sending messages from BlazeDS on the server to Flex clients. I have my adapters and destinations set properly (I think) messaging-config.xml and my streaming channel setup in my services-config.xml files. The messages work beautifully in Safari (Mac and PC) but no other browsers. relevant Bits from messaging-config.xmlAdapter:Destination:
<destination id="FriendNotifierGateway">
<adapter ref="friendNotifierAdapter" />
<properties>
[code]......
View 0 Replies
Aug 14, 2011
I have a system where clients connect via http streaming channels and use Producer and Consumer classes to dispatch and receive messages. I need to test the latency of messages in a way that adequately simulates real-world usage when the server is under load. I have 3 ideas for how this may be accomplished. Has anyone tried and succeeded or failed with these methods?
View 1 Replies
Dec 27, 2009
I'm trying to create a Flex based internet application with an EJB layer in the server. This layer provides the XML used by the flex application. It uses the Cairngorm architecture.Currently, on an error I call the handler function defined in all the command files. How can I centralize this?My idea is to create a XML file that contains all the error messages and the types of error message eg:- Warning, Error etc. In the error handler, I will call the error handling function and pass a unique id which in turn will display the error message defined in the xml config file. Do I need to load this XML file in the Model layer of the application itself and store them as say global variables?
View 3 Replies
Jun 21, 2009
I'm working on a flex 3 application which will initially support only one language (which is not English) but may need to support English and other languages later. So I'm using the standard localization technique, with resource bundles. Now, somewhere I use the validators like EmailValidator which have some error messages displayed, these are in english and come with the flex sdk. How do I localize those messages?
View 1 Replies
Oct 20, 2009
I am completely new to the whole FlashDevelop/Flash/etc toolchain, but wanted to do some experimenting. I installed FlashDevelop and Flex SDK on my laptop, and thinks worked out just fine, except for one thing: the compiler messages are localized! Messages like "gebruik van een niet-gedefinieerde eigenschap" (Dutch.. sort of) are limiting my productivity. I don't recognize them because they look nothing like what I'm used to in any other programming environment, as a proper sentence they make even less sense than English error messages, and I certainly can't google them properly. Now I've already seen there are a couple of xml files and java/mxmlc/fcsh/etc configs I can tweak, but nothing so far helped.
[Code]...
View 3 Replies
Jan 10, 2010
I am using Google AppEngine, in conjunction with PyAMF to provide RemoteObject support. In my Flex code I make several RemoteObject method calls at once which tends to batch the AMF Messages into a single HTTP request. Most of the time this is fine but AppEngine applies some strict per request limits (in this case I am hitting a DeadlineExceededError - max 30 seconds). A number of service methods are expected to take upwards of 10 seconds and if these are batched by the RemoteObject into 1 HTTP you see where this is going. Now you could say refactor your service calls and that is also going on but not really the question being asked here. Is there a way to prevent Flex RemoteObject from batching AMF requests for situations like this? I have done a fair amount of Googling on the subject and come up with bupkis. It seems to me that I would need to implement a custom version of mx.messaging.channels.AMFChannel or something of that nature, which seems waay too hardcore for a feature like this
View 3 Replies
Sep 1, 2011
i'm looking for a possibility to log messages in my flex 4.5 Project. This should cover errormessages in remoteClasses, errorHandler or messages typing by hand. After reading a lot of webpages, the solution from parslay looks good. i want to switch to this framework anyway. the benefit is the possibility to configure the logging behavior at runtime. but i don't understand the documentation. perhaps because I'm brandnew in parsley. Also google has no fitting result.
[Code]...
View 1 Replies
Oct 14, 2011
I've configured Flash Debug player to log trace messages from my Flex application to the flashlog.txt file.I can see trace() messages from my own code, thats ok.
However, would also like to see also trace messages from Fle SDK. I use Flex SDK ver. 4.1, and, for example, I would like to have trace message trace("app initialize app"); which is placed in function initialize() in mx/core/Application.as file in the SDK.
What I need to do? Should I recompile SDK somehow or is there a compiler switch to enable this? I'm a beginner in Flex, so I'm sorry if this question sounds silly.
View 1 Replies
Nov 9, 2010
how can I strip trace() messages from a flex and flash applications? I write flash and flex applications and i use a lot of trace messages for debugging, but when i product the actual swf i want it to be stripped from any trace messages.
View 6 Replies
Mar 6, 2011
I want to create custom error and notify messages, but i don't know which element should I use. In the message there should be icon and text I tried to use Label but don't know how to build custom label the one I need. Is there a resource on how to create a custom label or tip how to do it?
View 1 Replies
Sep 29, 2009
I have Flex call a C# dll which starts a long batch process (10 minutes). This process is actually a PERL program which periodically outputs progress messages. I want to be able to stream these messages back to a text area in Flex.
View 1 Replies
Apr 9, 2011
I'm developing a web application (client in Flash Builder 4, server in Eclipse 3.6 + Tomcat 7 + Spring 3 Framework). How do I make the Flex client automatically deploy in the Tomcat server and use BlazeDS messaging and remoting more seamlessly?
View 14 Replies
Apr 15, 2012
What material did you use to learn Flex/Air itself, and with ColdFusion + BlazeDS/LCDS?
View 7 Replies
Jun 10, 2010
I'am using flexmojos-maven-plugin to build my Flex module. So on the compile phase I'm getting org.apache.maven.plugin.MojoExecutionException: Error compiling!with no information on where (at what source file) the error happens and what is nature of the compile error.
View 2 Replies
Apr 16, 2011
Am facing issue with session timeout. Say for instance, the user logs into the application and he waits for 30 mins (session timeout time) and then tries to get a service through remote object.Ideally speaking, since the session has timeout the user shouldn't be able to hit the remote object, but this is happening the other way round.
[Code]...
View 1 Replies
Jul 20, 2011
The question says it. Does anybody know the answer to this? We're running into problems when 3rd-party cookies are disabled.
View 1 Replies
Aug 19, 2009
Which is the best way to integrate existent spring-MVC-Project with flex. I'am using Spring-2.5 lib with annotations. e.g my list controller:
[Code]...
I have also a colors.jsp which displays the colors. Now I would like to integrate flex as an UI-Layer. I only need to integrate the Spring-View with shown RequestMappings above.
View 2 Replies
Apr 21, 2010
I'm building modular application with 2 modules which share common vo: ShopRegionVO
This vo is also a BlazeDS entity and is mapped to a remote java object. When shell loads first module everything is ok. The second module is a list of ShopRegionVOs and item change is handled with the following code:
sendNotification(CoverageConstants.SET_SELECTED_REGION_COMMAND, ShopRegionVO(List(e.target).selectedItem));
The exception is thrown right here:
Main Thread (Suspended: Error #1034: Type Coercion failed: cannot convert model.vo::ShopRegionVO@14961809 to model.vo.ShopRegionVO.)
view.list::RegionListMediator/onChange
flash.events::EventDispatcher/dispatchEventFunction [no source][code].....
View 1 Replies
Sep 7, 2010
I'm using Flex 3.5, BlazeDS 3.2.0.3978 and EJB3 for backend. There are two RPC which are important to the problem. The first call will get a list of ThirdParty objects, this works fine. The second call happens when the user clicks on a ThirdParty, the details of this object (lazy collections) are retrieved. A single object is returned with most fields serialized. I say most, because for some reason, 4 boolean fields are not serialized and are put on false by flex by default.[code]I've set blazeDS logging to debug and all fields but these booleans are shown in the output. Next, I've tried stepping through the serialization process but it's fairly easy to get lost in there.
View 3 Replies
Sep 28, 2010
Do you know any free alternative for BlazeDS? It's working fine here, but we're looking for alternatives to check wich one is better.
View 3 Replies
Jan 24, 2011
I want to use Spring BlazeDS Integration.I write them like this.
[web.xml]
<servlet>
<servlet-name>flex</servlet-name>
[code].....
View 2 Replies
Mar 30, 2011
The task is to try to connect directly to a stateless EJB deployed on Glassfish. I have already done this via Web Service and I can also connect to the EJB by calling a remote java object which uses JNDI to find and load the bean. What I cannot do is directly connect to the EJB with Blazeds. I am using EBJ3Factory BY Ryan Norris (downloaded from adobe site) as follows;
[Code]....
View 1 Replies
May 2, 2011
I try to start JEE, so after studying the frameworks avalaible for this architecture, i choose to use the following one: Flex, BlazeDS, Spring, Hibernate, mysql. i will work with eclipse or STS.The problem is that, after trying different project all over web tutorial, i wasn't able to create an architecture that gather all the last versions off technologies i choose.SO, can someone send me a links which refer a tutorial where it's preferable that the source code is available to download, and it gives the explanation about what is done.
View 2 Replies
May 20, 2011
My name is Rahul.I am new to flex. I am trying to integrate flex with blazeds using java. I have written some code as per my knowledge. But it is not connecting to database. I am pasting my code here.Please look into this and let me know if i have done any mistakes over there:
[Code...
If i try to execute the Feedback.mxml then i am getting "Sorry your feedback is not entered" as output.I dont know where the problem is.I think flex is connected successfully but problem is in java code.
View 2 Replies
Dec 12, 2011
I've downloaded BlazeDS 4 and installed in on my Tomcat server. How can I make it to listen to port distinct from 8080? I change port in channels configuration in services-config.xml, and my client application sends requests for new port, but they failHow can I make server listen to custom port?
View 2 Replies
Mar 16, 2012
I'm starting a flex+blazeds project. First I coded some server classes, and modified xmls (in WEB-INF). Now I want to test it with client. There (in Flash Builder) it's needed to specify path to folder where server lives. The problem is that I cannot find it. In the same time [URL] is found in browser.
View 1 Replies
May 15, 2009
i have a problem about RDS and blazeds, when i use flash builder 4.5 to connect the server data, there is a rds error (403 or 404),but i can ping the http://10.25.129.151:8400/testdrive/test/" on Chrome or ie. So i don't know how to configure the rds in flash builder 4.5 or i will must configure others?
View 1 Replies
Aug 14, 2009
I using messaging in Flex-BlazeDS. When the AIR client starts it connects to a destination and a specific subtopic. During runtime, the user can use a combo box to subscribe to different sets of live data coming in, this combo box change event changes the subtopic by:
messagingConsumer.subtopic = subtopicComboBox.selectedLabel;
messagingProducer.subtopic = subtopicComboBox.selectedLabel;
messagingConsumer.subscribe();
A message is then sent to the server with the new subtopic name as well so the server knows to send to a new subtopic. This whole mechanism seems very glitchy and I'm wondering if anyone else has tried this and succeeded? Most times it works the first time and the after that either the messages dont get sent or I get server errors like:
[BlazeDS]Endpoint with id 'my-streaming-amf' cannot service the streaming request as either the supplied FlexClient id 'B07F3285-A408-816E-4697-F13F9B17E32C is not valid, or the FlexClient with that id is not valid.
Also sometimes when I change subtopics it will cause the FlexSession and FlexClient to be destroyed instead of just the MessageClient. Once that FlexSession gets destroyed it messes up all kinds of things including logging out the user.
Perhaps I'm over complicating things by changing subtopics to listen to different sets of live data, if anyone has any other ideas on how to accomplish dynamic changing of destinations or subtopics please list those as well.
View 1 Replies