blazeds

Multiple consumers per StreamingAmf connection?

可紊 提交于 2019-12-13 00:06:46
问题 I have an Adobe Air 2.0 application that is also utilizing Spring BlazeDS integration. Inside this application I have a couple of data grids. The design was for each grid's model to register a Consumer to listen for changes pushed from BlazeDS. The first grid instantiated works correctly, however each subsequent grid causes the following warning in BlazeDS [WARN] [Endpoint.StreamingAMF] Endpoint with id 'streaming-amf' received a duplicate streaming connection request from, FlexClient with id

Detecting (on the server side) when a Flex client disconnects from BlazeDS destination

这一生的挚爱 提交于 2019-12-12 19:14:11
问题 I'd like to know whether it's possible to easily detect (on the server side) when Flex clients disconnect from a BlazeDS destination please? My scenario is simply that I'd like to try and use this to figure out how long each of my clients are connected for each session. I need to be able to differentiate between clients as well (ie so not just counting the number of currently connected clients which I see in ds-console). Whilst I could program in a "I'm now logging out" process in my clients,

Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies

痞子三分冷 提交于 2019-12-12 18:16:45
问题 scene description: my program is implemented by flex+java+blazeDS+activeMQ,it subscribe the jms message from activeMQ by Flex Consumer,Currently i deliver two tomcat in the same Server,them are all contains my program ,and the ActiveMQ is in another server,now time i open the two applications in the same kind of browser,such as IE or Chrome,whatever,the url just like http://localhost: 8080 /HelloWord/index.html , http://localhost: 8181 /HelloWord/index.html Problem: the first application url

Error Executing Batch file of BlazeDS

喜欢而已 提交于 2019-12-12 06:38:43
问题 I'm trying to see samples of BlazeDs in my web brower as shown in the tutorial on this webpage. After I have started tomcat i open the localhost link 8400/samples in my browser as shown below.After entering the url i get the following page in my browser.. After that i try to start the sample database according to the instructions given in a box at the starting of the webpage. After i run the specified command on my command prompt i get the following error message.. I can't seem to understand

BlazeDS custom serialization causes RangeError

你离开我真会死。 提交于 2019-12-12 01:27:26
问题 I am using BlazeDS to communicate between Java and Flash/Flex. And everything works fine, except that Java Null Integer becomes 0 on Flex side. To handle the problem with transferring a Java Null Integer to an Flash/Flex int, I have implement a custom serialization, which works on the Java side and uses negative values to express Null values. After implementing that I get an RangeError: Error #2006: Der angegebene Index liegt außerhalb des zulässigen Bereichs. (in english: the index is out of

How can my Spring-Flex project use a vanilla HttpServlet via Java?

点点圈 提交于 2019-12-11 20:39:17
问题 I've got a bit of a tricky question. I'm trying to figure out the best way to leverage a vanilla HttpServlet from a Spring-Flex (with BlazeDS) project I'm working on. My team has an HttpServlet that they've used in the past (that some other team built) that processes a request given some key/value pairs passed over HTTP GET. I want to use this HttpServlet class to do the same work, but I want to call it in Java, when my Flex client invokes a method on a Service. Ideally, the class invoking

blazesds consuming huge memory

半腔热情 提交于 2019-12-11 18:48:14
问题 BlazeDS 4 is used to communicate with Flex4.6. When flex client invokes a remote call on blazeds server, server returns an arrayList containing POJOs. Assuming each POJO mem size is 12 bytes, I am expecting the arrayList size to be 12*number of elements. However, I find that somewhere in blazeds, it is compounded multiple times. Assuming I add 200000 POJOs into the array list, I am expecting its size to be ~2MB. But, I could see through profilers, that JVM shoots up N times of original size

accessing jsf bean from blazeds client

别来无恙 提交于 2019-12-11 16:15:07
问题 How can I access a jsf managed bean (say, icefaces) from a blazeds client? Will it be possible to share the same session information also ? (for eg, if I have a page with a jsf/icefaces component and a swf client - can they use the same session?) 回答1: first of all you have to implement the FlexFactory in your own Factory: http://livedocs.adobe.com/blazeds/1/blazeds_devguide/factory_2.html I change the SpringFactory a little bit so you can access to the current instance of the given bean:

Handling redirected URL within Flex app?

我的未来我决定 提交于 2019-12-11 14:28:13
问题 We have a Flex client and a server that is using the Spring/Blazeds project. After the user logs in and is authenticated, the spring security layer sends a redirect to a new URL which is where our main application is located. However, within the flex client, I'm currently using HTTPService for the initial request and I get the redirected page sent back to me in its entirety. How can I just get the URL so that I can use navigatetourl to get where the app to go where it needs to? Any help would

Grails dependency injection no longer working after upgrade to Grails 1.3.3

妖精的绣舞 提交于 2019-12-11 12:14:23
问题 Project setup is Flex 3-BlazeDS-Spring Flex Integration-Grails Dependency injection in my Service classes was working just fine with Grails 1.2.1, when service methods were called from my flex client. When I upgraded my project to 1.3.3 yesterday using the regular 'grails upgrade' command, everything went well but once I started the app, dependency injection no longer seems to work in my Grails Service classes. I did not change the BlazeDS nor Spring Integration setup. When I call the exact