blazeds

BlazeDS on Glassfish

守給你的承諾、 提交于 2019-12-11 09:08:38
问题 Is there a way to use BlazeDS on a Glassfish server? If so how? 回答1: The BlazeDS installation instructions here cover running BlazeDS under J2EE app servers (of which Glassfish is one). 来源: https://stackoverflow.com/questions/1365026/blazeds-on-glassfish

Can a Flex client app connect to BlazeDS running on a different server?

北慕城南 提交于 2019-12-11 07:17:16
问题 As far as In understand the Flex technology, a Flex client connects to a Flex server to retrieve business information. Is this the only allowed connection for the client, back to the originating server? Or can a Flex client also open a secondary connection to a different server wich runs BlazeDS for message exchange? (This might offer an option for load balancing and cross-platform development). Update : thanks for the answer! I have found this page which links to the Cross-domain policy file

How to implement a web app with blazeds+java+flex+tomcat?

有些话、适合烂在心里 提交于 2019-12-11 05:54:47
问题 I'm coding a web app in flex blazeds and Java. I installed the Eclipse plugins for using WTP mixed project. I'm using flex's server that uses an emulate of tomcat when i ran my flex service the web app got the datas, everythings is ok. the problem is when i copy the project with all files generated by flex in my tomcat or the blazeds's tomcat, it doesn't work, this is becasue i want to implement my app on a server the error is: "(mx.messaging.messages::ErrorMessage)#0 body = (Object)#1

Best practice to handle nullable Integer in a Java - Flex remoting application?

你说的曾经没有我的故事 提交于 2019-12-11 05:21:01
问题 I have an Application consisting of a Java Server part and a Flash/Flex client, both communicate via BlazeDS. In order to have the same typed Objects on both sites, I use the GAS3 code generator (used by flex-mojos). But now I am facing the problem of handling nullable Integers. The problem is that I have an Object (A) which contains a foreign key ID which is reference an optional Object B. – But I only send the ID to the flex client. On the Java site it is easy: class A { private Integer bFk

how can I talk to a blazeds endpoint without flash

假装没事ソ 提交于 2019-12-10 16:23:45
问题 i would like to reuse my existing blazeds/java/spring apps to write some html 5 clients. Is anyone aware of a pure js (no swf bridge allowed) client that has pub/sub capability so far my googling has found 2 projects - jsasmf (which uses a tiny swf) and amf.js which is missing pub/sub, but no other projects besides these 2 any ideas (crazy is fine) on how to do this appreciated cheers 回答1: Why not annotate your blazeds service object implementation with jersey annotations to expose it as a

ActiveMQ does not stop subscription when flex client disconnects

那年仲夏 提交于 2019-12-08 10:17:28
问题 I'm using activeMQ 5.3 to send messages to a flex client via blazeds 3.2. When the client connects for the first time, I can see the subscriptions to the activeMQ broker being made. However, after I kill the browser that runs the client the subscriptions remain open even though no messages are being consumed anymore. This finally results in an out-of-memory of the web server. From the logs it looks like Blazeds is unsubscribing from the feeds. Shouldn't blazeds stop the subscription when

Flex RemoteObject - handling multiple requests

做~自己de王妃 提交于 2019-12-07 11:14:45
问题 I have a couple of remote object methods that I want to respond to in different ways depending on the context, but I'd rather not set up a bunch of different RemoteObject aliases. Any advice on doing that? Some background: Let's say I have an admin application that displays sales stats in different ways. The remote method looks like: <mx:RemoteObject id="rpt" destination="AMFServer"> <mx:method name="getSalesStats" fault="getSalesStatsFault(event)" result = "getSalesStatsSuccess(event)" /> <

More than one channel in BlazeDS

人盡茶涼 提交于 2019-12-06 10:05:24
I am trying to set up a scenario where a Flex application would be able to use resources written in two different web application implementing BlazeDS. I originally tried to do it by specifying a channel set in my mxml code and then setting this as the channel set of the service in mxml. However, although this worked, I was getting duplicate session errors. It was suggested in one of the answers to my question linked to above that I could/should see about setting up channels with different endpoints. I guess this means that the Flex app will only be connecting to one service as it sees it but

How to make BlazeDS ignore properties?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 15:30:11
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(); } } } (the reason for this construction is that I want to build a way to hande Nullable Intergers )

Flex RemoteObject - handling multiple requests

笑着哭i 提交于 2019-12-05 13:06:05
I have a couple of remote object methods that I want to respond to in different ways depending on the context, but I'd rather not set up a bunch of different RemoteObject aliases. Any advice on doing that? Some background: Let's say I have an admin application that displays sales stats in different ways. The remote method looks like: <mx:RemoteObject id="rpt" destination="AMFServer"> <mx:method name="getSalesStats" fault="getSalesStatsFault(event)" result = "getSalesStatsSuccess(event)" /> </mx:RemoteObject> The getSalesStats method takes an employee ID and a sales type as its arguments. You'd