This content has been marked as final. Show 4 replies
For this reason my own build file (I had a hard time myself to get it going).
so if you want a nice buildfile checkout this link : http://www.vantwisk.nl/riesvantwisk/entry/adobe_flex_and_blaze_ds
I am soon going to update it with a even better build file and a method to compile modules within your application aswell.
The zip has been designed to 'just run' and contains all goodies so it should work.
Ries, thanks for the buildfile but I was already able to get it to build with Flexbuilder (Eclipse plugin.) The problem is that the messages sent to the producer are not being delivered to the consumers. Do I need to run an 'echo' servlet or does the Flex MessageBroker do this distribution automatically? Since I'm just getting into the messaging architecture, I am assuming this is a configuration issue. Perhaps there is a missing .jar file? Could someone please explain what components from the BlazeDS kit are needed to rebuild the 'collaborative dashboard' demo?
I am not sure about the dashboard since it was some weeks ago since I have seen it. But from the looks of it (uses consumer/producer) you need to have an proper setup on the server. By just uploading the swf will not make your dashboard work.
If I am not mistaken your destination for the dashboard needs to be configured in messaging-config.xml and that file should look like this:
<?xml version="1.0" encoding="UTF-8"?>
<service id="message-service" class="flex.messaging.services.MessageService">
<adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" />
The above messaging-config.xml get's included in services-config.xml using the following line:
<service-include file-path="messaging-config.xml" />
Also make sure you have a proper web.xml that contains the MessageBrokerServlet (samples can be found in blaze-ds samples file).
Needs to contain something like this:
<!-- Http Flex Session attribute and binding listener support -->
<!-- MessageBroker Servlet -->
You lib directory needs to contain the blaze-ds jar files, or you can deploy the given blaze-ds.war as given somewhere in the download (top of my head).
Last but not least you need to run it on tomcat, glasshfish or whatever application server.
Ries, that is pretty much what I have-- I duplicated the samples config files and pared them down some for just the dashboard messaging service, the channel defs, etc. and the HttpFlexSession listener and MessageBrokerServlet in web.xml. This is on Catalina. Is there a way to verbosely log / debug the startup of the MessageBrokerServlet or see what instances of it are running on the server? Is one instance shared across all deployed webapps?