blazeds

Flex Web Application Timeout after a specific time and redirect to login

怎甘沉沦 提交于 2019-12-24 21:30:07
问题 All, We have a Flex, Blazeds & Spring based Web application. The requirement is that if the browser is idle for 30 minutes, we have to popup an error message to the user and then redirect to the login page. I have searched on this and was not able to find a suitable solution to this. If someone can point me in the right direction, that would be great. I really appreciate that Thanks Harish 回答1: Here's how I would approach it. When the app loads, start a 30 minute timer and add a listener to

Injecting Log4J loggers with Spring

丶灬走出姿态 提交于 2019-12-24 03:23:52
问题 I have a spring 2.5 webapp with the following web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <display-name>Spring BlazeDS Integration Samples</display-name> <context-param> <param-name>webAppRootKey</param-name> <param-value>ServerBlaze</param-value> </context-param> <context

How to make BlazeDS ignore properties?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 08:57:59
问题 I have a java class which has one field with getter and setter, and a second pair of getter and setter that access this field in another way: public class NullAbleId { private static final int NULL_ID = -1; private int internalId; getter & setter for internalId public Integer getId() { if(this.internalId == NULL_ID) { return null; } else { return Integer.valueOf(internalId); } } public void setId(Integer id) { if (id == null) { this.internalId = NULL_ID; } else { this.internalId = id.intValue

What material did you use to learn Flex/Air, and with ColdFusion + BlazeDS/LCDS? [closed]

不羁岁月 提交于 2019-12-21 17:41:16
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . What material did you use to learn Flex/Air itself, and with ColdFusion + BlazeDS/LCDS? 回答1: Flex in a Week http://www.adobe.com

How do I get a strongly typed collection from BlazeDS?

隐身守侯 提交于 2019-12-21 02:43:07
问题 I've exposed a Spring bean to my Flex app via BlazeDS. In my Java code I return strongly typed lists. e.g. public List<Folder> getFolders(String path) { return dao.getFolders(path); } The Flex app receives the data as an ArrayCollection of AS3 Object instances - i.e. not as a ArrayCollection of Folders which is what I want. I've annotated my Flex class as follows: package myproject.vo { import com.adobe.cairngorm.vo.IValueObject; import mx.collections.ArrayCollection; [Bindable] [RemoteClass

BlazeDS and ArrayList of custom objects

倾然丶 夕夏残阳落幕 提交于 2019-12-20 17:15:10
问题 I'm using BlazeDS to connect Flex with Java. I'm having trouble passing ArrayLists of custom objects from Flex to java. I have two objects, one is called Category, the other Section. A Category has an ArrayList of Section objects. I can send an ArrayList of Category objects back and forth between Flex and Java, the problem is when I try to access the sections ArrayList of a Category object that has been returned to Java from Flex, I get the following error: flex.messaging.MessageException:

How To Make a channel Secure ? I'm using a Amf channel , How to add security to My channel

佐手、 提交于 2019-12-13 18:55:29
问题 I'm using a Amf channel , How to add security to My channel.. 回答1: You need to change the channel def's, you'll find them in: WEB-INF/flex/services-config.xml Change or add a secure definition and endpoint - here is an example: <channel-definition id="my-server" class="mx.messaging.channels.AMFChannel"> <endpoint uri="http://{server.name}:{server.port}/{context.root}/amf" class="flex.messaging.endpoints.AMFEndpoint" /> </channel-definition> <channel-definition id="my-server-secure" class="mx

Flex deserialization issue with List of Maps

廉价感情. 提交于 2019-12-13 07:26:14
问题 I have a problem with BlazeDS to Flex mobile deserialization, so that I try to send back list of maps List<Map<String, Object>> with different Objects in every Map, but when I receive this list in flex code: hastalarim = event.result as ArrayCollection; But when I debug this in flex code I see that there're 7 instances of the same Object (the first object that was inserted on server-side) in that list. Here's my method on server-side: public List<Map<String, Object>> getHastalarim(String

Is it possible to connect a flex application to two different BlazeDS servers?

浪尽此生 提交于 2019-12-13 04:28:36
问题 My question is is it possible to connect to two different BlazeDS servers from the same Flex app? I have already read this question: Can a Flex client app connect to BlazeDS running on a different server? However, it appears to be discussing the possibility of connecting a Flex client to a BlazeDS on a different server but not necessarily to another BlazeDS on a different server. I have also read this question: One Flex client connecting to two webapps using BlazeDS - Detected duplicate HTTP