BlazeDS (Turnkey) + ActiveMQ

So, after a lot of reading and experimenting, I was able to get my flex client subscribed to some ActiveMQ topics.  The problem I first noticed, however, was the all of the message bodies on the flex side were null and the tomcat console for BlazeDS had the following error:
> JMSAdapter encountered an error while retrieving JMS message body during JMS to Flex conversion: Failed to build body from bytes. Reason: java.io.IOException: ebal.jms.messaging.coa.CourseofAction
That kind of made sense to me, since I never copied any of the classes used by our java applications for BlazeDS, so I stuck the jar in the "tomcat/webapps/blazeds/WEB-INF/lib" folder (I even tried putting them in the "tomcat/webapps/blazeds/WEB-INF/classes" and "tomcat/lib" folders).  The complete opposite of what I expected then happened - nothing worked at all.  There was absolutely no recognition from the BlazeDS console that any messages were making it from the ActiveMQ topic.  I'm completely failing to see how *not* having the JMS object classes works better than *having* them.
Since there is absolutely no documentation on using BlazeDS with ActiveMQ beyond just the configurations, I was curious if anyone has run in to this and found a fix?
Here are the logging settings:
>  
                [BlazeDS]
                false
                false
                true
                true
                Endpoint.*
                Service.*
                Configuration
              Service.Message.JMS
               Service.*
Any ideas would be greatly appreciated.

anybody help ??

Similar Messages

  • Tomcat Manager Portal in BlazeDS Turnkey Server

    Hi all,
    Im pretty new to blazeds, and liking what i have experienced thus far. Could anyone please tell me how to access the Tomcat Manager Portal within the BlazeDS Turnkey Server Installation.
    Like in know it runs on port 8400 by default. So running it then opening http://localhost:8400 gets me the blazeds turnkey home page with links to the sample apps.
    However I want to get to the Tomcat Portal to change file access permissions etc. And if i wanted to deploy apps from there etc.
    Is this possible?
    Please advise!
    Kind Regards
    Willem

    Follow the instructions here:
    http://blog.techstacks.com/2009/05/tomcat-management-setting-up-tomcat.html
    Basically just add a user and role to the $CATALINA_HOME/conf/tomcat-users.xml:
    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="manager"/>
      <user username="tomcat" password="tomcat" roles="manager"/>
    </tomcat-users>
    Then use the URL: http://localhost:8400/manager/html to access the manager.

  • [svn] 4377: Bug: BLZ-292 - Data Push sample does not work in BlazeDS Turnkey

    Revision: 4377<br />Author:   [email protected]<br />Date:     2008-12-22 16:16:25 -0800 (Mon, 22 Dec 2008)<br /><br />Log Message:<br />-----------<br />Bug: BLZ-292 - Data Push sample does not work in BlazeDS Turnkey<br />QA: Yes<br />Doc: No<br />Checkintests Pass: Yes<br /><br />Details:<br />* Regression due to some refactoring of user-agent handling that was failing to set up defaults if no explicit <properties> were defined for the <channel-definition>. This meant that for IE, no kick-start bytes were being pushed down the streaming connection at setup time...<br /><br />Ticket Links:<br />------------<br />    http://bugs.adobe.com/jira/browse/BLZ-292<br /><br />Modified Paths:<br />--------------<br />    blazeds/trunk/modules/core/src/flex/messaging/endpoints/BasePollingHTTPEndpoint.java<br />    blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java<br />    blazeds/trunk/modules/core/src/flex/messaging/util/UserAgentManager.java

    Hi,
    Thanks for your feedback!
    This feature has been going through a lot of changes with the BlazeDS and Flash Builder builds.
    We request you to pick up the BETA2 build of Flash Builder and BlazeDS 4.0.0.10654, hopefully you should see things working fine.
    Kindly let us know if you still encounter problems.
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Error: "Cannot access the web server" with BlazeDS Turnkey

    Help! I'm new to Flex and BlazeDS and Eclipse.  I was trying to setup a Flex Project using a BlazeDS/Tomcat server running from Eclipse on Windows XP per the example in flexbandit.com/archives/55#comment-269 and in (www.infoq.com/articles/blazeds-intro).   I am NOT using the Eclipse Flex plug-in.  I'm using Flex Builder for the Flex code.
    Here's what I've done:
    I installed BlazeDS and tested http://localhost:8400 - That worked.
    I setup Tomcat in Eclipse.  -  That seemed to work.
    I created a Dynamic Web Project in Eclipse - That seemed to work.
    I created the bare-bones BlazeDS Configuration under the Eclipse project and then created a basic HelloWorld java class.
    I added the destination in the “remoting-config.xml” file found in the c:/projects/workspace/ReportGenTool/WebContent/WEB-INF/flex” directory:
    <destination id="HelloWorld">   <properties>  <source>HelloWorld</source> </properties> </destination>
    When I started the application server by clicking on the server's green play button in Eclipse and then tried to open localhost:8400/ReportGenTool, I got the 404 error : The requested source (/ReportGenTool/) is not available which according to the instructions is fine.
    Next I created a Flex Project, but when I try to validate the new Flex project configuration, it gives me an error "Cannot access the web server. The server may not be running, or the web root folder or root URL may be invalid."
    When I validated the server was running after setting up the BlazeDs Turnkey, I saw the BlazeDS page.
    Now when I bring up http://localhost:8400 I get:
          Directory Listing for /
          Apache Tomcat/6.0.14
    My eclipse project is named ReportGenTool and I've overwritten the WebContent directory with the META-INF and WEB-INF directories from the BlazeDS installation (C:\blazeds\tomcat\webapps\blazeds).  According to Eclipse the server is running.
    My Flex project is named ReportGenTool and is located in another directory away from the Eclipse project directory.
         My root folder is: C:\Projects\workspace\ReportGenTool\WebContent
         Root URL: is http://localhost:8400/ReportGenTool/
         Context root is: /ReportGenTool/
    Any idea what might be wrong? What didn't I configure that needs to be configured?
    Thanks in advance.

    This is not working because your router has a direct to your web server that is not through the outside interface which is needed for nat to occur, for this to work you need to setup a loopback interface as nat outside and policy route traffic to there for your server traffic
    Bu if your server is internal why do you need nat at all? Can you not use bind with views that might be simpler
    M
    Sent from Cisco Technical Support iPad App

  • Install and run blazeds-turnkey-3.2.0-3978 in Tomcat in Linux

    I Installed and ran the blazeds-turnkey-3.2.0-3978 distrubution in Tomcat 5.0.27 with JVM 1.5.0_22 in Window Vista successfully.
    Blazeds, ds-consolo, and samples applications are working fine. I'm not using the Tomcat with Flex Builder. The ds-consolo and samples are
    accessed through http://localhost:8080/ds-consolo and http://localhost:8080/samples. I did not change any of the configuration files
    (service-config.xml, ...) in the distribution package.
    Now I try to Install and run the same blazeds-turnkey-3.2.0-3978 distrubution in the same  Tomcat 5.0.27 with JVM 1.5.0_22 in a remote Linux server.
    I changed the configuration files as following:
    For blazeds application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name, and we use default port 80)
    {context-root} to blazeds
    For ds-consolo application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name,  and we use default port 80)
    {context-root} to ds-consolo
    For samples application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name,  and we use default port 80)
    {context-root} to samples
    It seems they were all deployed to the Tomcat OK, but when I tried to run the ds-consolo and samples apps, I got
    errors. Did I set the parameters, especially {context-root}, correctly? Am I missing anything?

    I Installed and ran the blazeds-turnkey-3.2.0-3978 distrubution in Tomcat 5.0.27 with JVM 1.5.0_22 in Window Vista successfully.
    Blazeds, ds-consolo, and samples applications are working fine. I'm not using the Tomcat with Flex Builder. The ds-consolo and samples are
    accessed through http://localhost:8080/ds-consolo and http://localhost:8080/samples. I did not change any of the configuration files
    (service-config.xml, ...) in the distribution package.
    Now I try to Install and run the same blazeds-turnkey-3.2.0-3978 distrubution in the same  Tomcat 5.0.27 with JVM 1.5.0_22 in a remote Linux server.
    I changed the configuration files as following:
    For blazeds application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name, and we use default port 80)
    {context-root} to blazeds
    For ds-consolo application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name,  and we use default port 80)
    {context-root} to ds-consolo
    For samples application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name,  and we use default port 80)
    {context-root} to samples
    It seems they were all deployed to the Tomcat OK, but when I tried to run the ds-consolo and samples apps, I got
    errors. Did I set the parameters, especially {context-root}, correctly? Am I missing anything?

  • Install and run blazeds-turnkey-3.2.0-3978 in Tomcat on Linux

    I Installed and ran the  blazeds-turnkey-3.2.0-3978 distrubution in Tomcat 5.0.27 with JVM  1.5.0_22 in my laptop (Window Vista Pro) successfully.
    Blazeds, ds-consolo, and  samples applications are working fine. I'm not using  Flex Builder for this. The ds-consolo and samples are
    accessed  through http://localhost:8080/ds-consolo and http://localhost:8080/samples.  I did not change any of the configuration files
    (service-config.xml,  ...) in the distribution package.
    Now I try to Install and run the same  blazeds-turnkey-3.2.0-3978 distrubution with the same Tomcat 5.0.27 with  JVM 1.5.0_22 in a remote Linux server.
    I changed the configuration  files as following:
    For blazeds application, I changed the parameters in all  the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port}  to xyz.com   (xyz.com is the domain name, and we use default port 80).
    {context-root}  to blazeds
    For ds-consolo application, I changed the  parameters in all the configuration files under WEB-INF/flex in  following way:
    {server.name}:{server:port} to xyz.com   (xyz.com  is the domain name,  and we use default port 80).
    {context-root} to  ds-consolo
    For samples application, I changed the parameters  in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port}  to xyz.com   (xyz.com is the domain name,  and we use default port 80).
    {context-root}  to samples
    It seems they were all deployed to the Tomcat OK,  but when I tried to run the ds-consolo and samples apps, I got
    errors.  Did I set the parameters in the configuration files, especially {context-root}, correctly? Am I  missing anything?

    If it is caused by a wrong port, I should get an error message or timeout.
    This is the services-config.xml file I'm using for Blazeds app
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service-include file-path="remoting-config.xml" />
            <service-include file-path="proxy-config.xml" />
            <service-include file-path="messaging-config.xml" />       
        </services>
        <security>
            <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
        </security>
        <channels>
            <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://infody.com/blazeds/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            </channel-definition>
            <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint url="https://xyz.com/blazeds/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
                <properties>
                    <add-no-cache-headers>false</add-no-cache-headers>
                </properties>
            </channel-definition>
            <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://xyz.com/blazeds/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>4</polling-interval-seconds>
                </properties>
            </channel-definition>
        </channels>
        <logging>
            <target class="flex.messaging.log.ConsoleTarget" level="Error">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>false</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                    <pattern>Service.*</pattern>
                    <pattern>Configuration</pattern>
                </filters>
            </target>
        </logging>
        <system>
            <redeploy>
                <enabled>false</enabled>
            </redeploy>
        </system>
    </services-config>
    There is no url or port settings in the other three Blazeds configuration xml file: remoting-config.xml, proxy-config.xml, messaging-config.xml
    Here is the services-config.xml file for ds-console app:
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <!--
                    REMOTING SERVICE
            -->
            <service id="remoting-service" class="flex.messaging.services.RemotingService">
                <adapters>
                    <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
                </adapters>
                <!-- Runtime management console destination -->
                <destination id="RuntimeManagement" channels="amf">
                    <properties>
                        <source>flex.management.jmx.MBeanServerGateway</source>
                    </properties>
                </destination>
            </service>
        </services>
            <security>
                <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>              
            </security>
        <channels>
            <channel-definition id="amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://xyz.com/ds-console/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>false</polling-enabled>
                </properties>
            </channel-definition>
        </channels>
        <logging>
            <!-- You may also use flex.messaging.log.ServletLogTarget -->
            <target class="flex.messaging.log.ConsoleTarget" level="Error">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>true</includeLevel>
                    <includeCategory>true</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                </filters>
            </target>
        </logging>
        <system>
            <redeploy>
                <enabled>true</enabled>
                <watch-interval>20</watch-interval>
                <watch-file>ds-console/WEB-INF/flex/services-config.xml</watch-file>
                <touch-file>ds-console/WEB-INF/web.xml</touch-file>
            </redeploy>
        </system>
    </services-config>

  • [svn] 2597: Bug: BLZ-217 - Should add a resources/ lib directory to BlazeDS turnkey with messaging jars

    Revision: 2597
    Author: [email protected]
    Date: 2008-07-23 12:40:08 -0700 (Wed, 23 Jul 2008)
    Log Message:
    Bug: BLZ-217 - Should add a resources/lib directory to BlazeDS turnkey with messaging jars
    QA: Yes
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-217
    Modified Paths:
    blazeds/branches/3.0.x/build.xml

    Hi,
    Can you mention the eclipse version you are using? And the platform in which you are trying to build?
    I feel its always better to be platform specific when you go in for headless build. I can see that the configs value in your properties file is "configs=*,*,*". Try changing it to appropriate value and build your product. For example, I use "configs=win32, win32, x86" for building my product in 32-bit windows machine.

  • BlazeDS and ActiveMQ ?

    Hi all,
         I read some things about ActiveMQ (version 5). I have been using Flex (version 3) and BlazeDS server and Java work together.
         Java client  (publish) send messages to ActiveMQ server and after that this messages send to BlazeDS (from ActiveMQ) and flex client (subscribe) show them
         Also, I search at google to found the connection style beetween ActiveMQ, BlazeDS, Flex and Java. Especially, how configure ActiveMQ contact with BlazeDS ?
         Can show me some link and examples about this problem ?
    Thanks.

    I would configure your application server to have a short HTTP session timeout. The issue is that when the client application is shutdown without unsubscribing the Consumer the server still thinks the Consumer is alive and queues up messages to be delivered to it. This can be a problem if messages are being pushed at too fast a rate or if you have a long HTTP session timeout because lots of undelivered messages will be hanging around in memory. When the client application is connected to the server it will keep the HTTP session alive so I don't think there is much point in using a long session timeout. Most app servers have a default of about 30 minutes for the session timeout I believe. I would try changing this to be just 1 or 2 minutes and see if it helps your memory problems.
    Setting message-time-to-live on the destination may not work if the messages have already been put in the queue of outbound messages to be sent to the Consumer. I would need to take a look at that more closely but I think in this case changing the HTTP session timeout is a better approach.
    Hope that helps.
    -Alex   

  • Question about blazeds turnkey, tomcat and directory structure

    hi. this question is pretty basic...been reading sujit reddy g's blog on installing/setting up blazeds.
    in one article he creates a samplewebapps directory in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\samplewebapps and copies the blazeds WEB-INF/lib into that directory and the configuration files in the flex folder across as well...http://sujitreddyg.wordpress.com/2009/04/07/setting-up-blazeds/
    in another article on invoking java methods from flex he configures the remote-config.xml file directly in the blazeds\WEB-INF\flex folder....http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-fle x/
    wasn't sure why in the first example he copied the files and folders to the samplewebapps directory while in the second example he just configured the files within the blazeds directory...thanx...(i'm a newbie at server side development)

    I'll take a stab at it. The key thing to realize is the BlazeDS code is ADDED on
    to the appserver. E.g. for Tomcat/WebLogic/et al one adds the reference in the web.xml file in WEB-INF.
    So, what is that add-on?
    1. Executable files. These are jar files and typically stuck into WEB-INF/lib
    2. Configuration files. flex/services-config.xml is specified in web.xml. It refers to the other config files in WEB-INF/flex
    So, the config in web.xml tells Tomcat (and its forked commercial products) to load up the Flex jars and run some classes. By standard, the "run some classes" follows the servlet lifecycle and runs specific methods in the class when the servlet is loaded, called, destroyed. So, Flex jars have a class which implements the servlet interface.
    Incidentally, you may also see references to log4j, Spring, and other frameworks in the web.xml as well. They do the same sort of stuff. So, Tomcat does the passing of the HTTP packets and stages them into Java classes and the hooked in frameworks do add their own behaviours to the setup.
    HTH,
    TimJowers
    P.S> Also note in Flex when you setup the project properties for a Flex Project then you need to match up your URL and "context" to what you have on your server. In his exampe, the "samples" context may have already been setup so easier to use. What is a "context"? The idea is to have more than one webapp running on an appserver. In Tomcat, its basically just the subdirectory under "webapps". That directory name becomes part of the URL. E.g. webapps/samples -> http://localhost:8080/samples  or webapps/mytest -> http://localhost:8080/mytest

  • Question about blazeds turnkey installation and directory structure

    hi. this question is pretty basic...been reading sujit reddy g's blog on installing/setting up blazeds.
    in one article he creates a samplewebapps directory in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\samplewebapps and copies the blazeds WEB-INF/lib into that directory and the configuration files in the flex folder across as well...http://sujitreddyg.wordpress.com/2009/04/07/setting-up-blazeds/
    in another article on invoking java methods from flex he configures the remote-config.xml file directly in the blazeds\WEB-INF\flex folder....http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-flex/
    wasn't sure why in the first example he copied the files and folders to the samplewebapps directory while in the second example he just configured the files within the blazeds directory...thanx...(i'm a newbie at server side development)

    There's really not much difference. In some cases, you might already have a web application you are using so you could just copy the contents of the blazeds web app into your existing web application.
    Application servers can host more than one web application and a Flex application that uses BlazeDS can be deployed on a different web app than the one where BlazeDS is running or a different server entirely so it really just depends how you want to set things up.
    Hope I'm not just making things more confusing for you. . .
    -Alex

  • I'm having trouble installing my BlazeDS turnkey

    I'm runing flashbuilder on eclipse JEE and I already have Tomcat running but I'm confused about how to install BlazeDS into all of this.
    The instructions here on the Adobe site are a bit confusing, I dont know what command window I need to go to just to get all this configured
    a)when it says go to instal_root/tomcat/bin and enter the catalina start command I have no idea what to do
    b)when it says start tomcat in startup.sh I have no idea how to do that either because the icon is blank
    c)theres more i dont understand but I attach a screen shot of where I'm stuck at
    P.s> is there a video tut on this because I do better when I see it for my own eyes.
    Please help!!!

    Ok i have my catalina started but when I enter startdb.sh the program doesnt work what do I do

  • How to use an ActiveMQ broker plugin

    Sorry in advance if this is a stupid question but I've just inherited this project and have never used BlazeDS or ActiveMQ before. I've got a collection of various programs that are communicating through BlazeDS and ActiveMQ and I've been tasked with recording all the messages being passed between them for later analysis. It appears from this link that I could just develop a BrokerPlugin that could take care of this pretty easily. However I don't know how to add this BrokerPlugin to the system. There doesn't any appear to be any configuration data for ActiveMQ in the current system. I believe it was built on the BlazeDS turnkey server with ActiveMQ added to handle the JMS integration.
    Also, I had originally just created a small app that subscribes to all the topics and saves the messages out to an xml file. That part worked for most of the messages but some of the message destinations are defined as queues though so they can't have more than one subscriber. I wasn't sure how to go about getting these messages without using a BrokerPlugin.
    Any help would be greatly appreciated.

    > I face the problem that I can't find out how to use the plugin in Acrobat with Javascript.
    That's right. You can't.
    >
    >But I can't find out how to use the methods of the plugin.
    You cannot use the methods of a plug-in. They are for its own internal
    use.
    A plug-in registers for call backs. Most obviously menu selections,
    but also selecting a tool, clicking on a button, opening a document,
    changing page etc. Also it can register an "idle" procedure to be run
    when Acrobat is not busy, at intervals. Your plug-in code is run, by
    Acrobat, at these moments.
    Aandi Inston

  • Flex client can SEND but not RECEIVE messages from BlazeDS

    Hi there,
    I built a sample chat application that should be able to send/receive messages from a JMS topic. However, I am only able to SEND messages, I am not able to receive them. Any advice/suggestions would be GREATLY appreciated as I am seriously stuck.
    My setup:
    - BlazeDS Turnkey
    - FioranoMQ JMS provider on remote machine
    What I know:
    - My MXML code is good. I am able to use the exact same code and get both subscribing and publishing working when I use 'ActiveMQ' instead of 'FioranoMQ' as my JMS provider
    - FioranoMQ JMS provider is working fine, my test Java clients can both subscribe and publish to the same JMS topic that the Flex app uses
    - Publishing from my Flex app is working because my Java client is able to receive messages from the same topic whenever Flex messages are sent to FioranoMQ
    - My Flex app is supposedly 'subscribed' to and 'connected' to the correct (streaming-amf) channel. I know this because the MXML 'Consumer' object's "subscribed" and "connected" properties are true and no fault events appear whenever I issue "consumer.subscribe()" in my Flex app.
    Sample debug console log:
    (I tried sending 8 JMS messages from my Java client code to the 'mytopic' topic that my Flex app is using. The end of the log shows that SOMETHING is happening after sending these messages, but notice the actual 'message' is never streamed even in the log!)
    [BlazeDS] 01/27/2009 FlexSession created with id '72D3E6EED1364AD328F342F1AF59FF
    69' for an Http-based client connection.
    [BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
    [BlazeDS] 01/27/2009 Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/1)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
    operation = 5
    correlationId = ""
    clientId = null
    timestamp = 0
    body = (Object #1)
    headers = (Object #2)
    DSMessagingVersion = 1
    DSId = "nil"
    timeToLive = 0
    destination = ""
    messageId = "AECE3D84-789C-29B7-3413-197C7A48A7D2"
    [BlazeDS] 01/27/2009 Serializing AMF/HTTP response
    Version: 3
    (Message #0 targetURI=/1/onResult, responseURI=)
    (Externalizable Object #0 'DSK')
    (Object #1)
    DSMessagingVersion = 1.0
    DSId = "ED38E721-2609-CF34-62A2-28D918C4BB8F"
    1.233083202182E12
    (Byte Array #2, Length 16)
    (Byte Array #3, Length 16)
    (Byte Array #4, Length 16)
    [BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
    [BlazeDS] 01/27/2009 Endpoint with id 'flextest-streaming-amf' is streaming mess
    age: Flex Message (flex.messaging.messages.AcknowledgeMessage)
    clientId = null
    correlationId = open
    destination = null
    messageId = ED38E793-E519-95BB-3E4C-1A7E8D716951
    timestamp = 1233083202229
    timeToLive = 0
    body = ED38E793-E50A-2500-E2F5-7525401FD8CE
    [BlazeDS] 01/27/2009 Number of streaming clients for FlexSession with id '72D3E6
    EED1364AD328F342F1AF59FF69' is 1.
    [BlazeDS] 01/27/2009 Number of streaming clients for endpoint with id 'flextest-
    streaming-amf' is 1.
    [BlazeDS] 01/27/2009 Channel endpoint flextest-streaming-amf received request.
    [BlazeDS] 01/27/2009 Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/2)
    (Array #0)
    [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
    operation = 0
    correlationId = ""
    clientId = null
    timestamp = 0
    body = (Object #1)
    headers = (Object #2)
    DSEndpoint = "flextest-streaming-amf"
    DSId = "ED38E721-2609-CF34-62A2-28D918C4BB8F"
    timeToLive = 0
    destination = "flextest-message-destination"
    messageId = "5ED8AAA4-BDA8-C8E4-D85B-197C7AC5E83A"
    [BlazeDS] 01/27/2009 JMS consumer for JMS destination 'mytopic' is starting.
    [BlazeDS] 01/27/2009 JMS consumer for JMS destination 'mytopic' is

    Hi Alex, thanks for your advice. I tried reading the client-side logs, but it just physically shows what I was saying earlier - that the consumer is connected and subscribed, but no messages are coming through to it.
    I've attached the output of the 'flashlog.txt' file. For the particular session shown, the flex application was sent 8 JMS messages, but as you can see nothing got through. I put a 'trace' message in the message handler function (for my consumer object), but it never gets called.
    'E2513351-75DA-0837-7263-3807B91D9630' consumer set destination to 'flextest-message-destination'.
    '7D784A40-DBBB-71F1-4029-3807B91D45E3' producer set destination to 'flextest-message-destination'.
    'consumer' consumer subscribe.
    'flextest-streaming-amf' channel endpoint set to http://localhost:8400/FLEXTEST/msgbroker/streaming-amf
    'flextest-streaming-amf' channel settings are:
    'flextest-streaming-amf' pinging endpoint.
    'flextest-streaming-amf' channel is connected.
    'flextest-streaming-amf' channel sending message:
    (mx.messaging.messages::CommandMessage)
      body=(Object)#0
      clientId=(null)
      correlationId=""
      destination="flextest-message-destination"
      headers=(Object)#0
      messageId="8A592005-3C8A-4C6C-B074-380857710C00"
      operation="subscribe"
      timeToLive=0
      timestamp=0
    'consumer' consumer connected.
    'consumer' consumer acknowledge for subscribe. Client id '37CC5DED-A019-7110-3C89-A9926835103E' new timestamp 1233595684954
    'consumer' consumer acknowledge of '8A592005-3C8A-4C6C-B074-380857710C00'.
    Seems to me there can only be two explanations: either my BlazeDS configuration is incorrect (which is unlikely given that everything works if I use a ActiveMQ as my JMS provider with only trivial changes to my configuration), or there is some bug within BlazeDS that is preventing it from working properly with FioranoMQ. What do you think?

  • Problem integrating BlazeDS into CF8 (StreamingAMFChannel not found)

    Hi everyone,<br /><br />Ive been trying for days now to integrate BlazeDS into one of my Coldfusion 8 multi-server instances, and I get the following error in Flex Builder 3: Channel definition, mx.messaging.channels.StreamingAMFChannel, can not be found.<br /><br />Sorry for the dreadful amount of information that's coming, I just want to be sure I didnt do anything wrong here.<br /><br />My goal is to use the tutorial-chat application proposed by Adobe here: http://www.adobe.com/devnet/livecycle/articles/blazeds_gettingstarted_02.html but obviously without Tomcat.<br /><br />Ive got integrated LiveCycle Data Services ES, so I followed the corresponding instructions of the Installation Guide (http://opensource.adobe.com/wiki/display/blazeds/Installation+Guide).<br /><br />I edited "web.xml" as asked Then, I followed the optional steps (#8 to 12) to avoid overwriting my current XML files.<br /><br />I restarted my CF8 instance, and then created a new Flex project in Flex Builder 3.<br /><br />b -       Project name = <br />tutorial-chat<br /><br />b -       Folder = <br />\\london\nath\tutorial-chat<br /><br />b -       Application type = <br />Web application<br /><br />b -       Application server type = <br />J2EE<br /><br />-       Use remote object access service, LiveCycle Data Services.<br /><br />b -       Server location = <br />\\london\cfservers\nath\cfusion.ear\cfusion.war\<br /><br />b -       Root URL = <br />http://london:8303/ (which points to my folder \\london\nath)<br /><br />b -       Context root = <br />/tutorial-chat<br /><br />b -       Output folder = <br />bin-debug<br /><br />According to the XML files in the blazeDS samples folder, I added these lines to messaging-config.xml:<br /><br /><default-channels><br />        <channel ref="<br />b my-streaming-amf<br />"/><br /><channel ref="<br />b my-polling-amf<br />"/><br /></default-channels><br /><destination id="tutorial-chat"/><br /><br />And these in services-config.xml:<br /><br /><channel-definition id="<br />b my-streaming-amf<br />" class="mx.messaging.channels.StreamingAMFChannel"><br />]<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/><br /></channel-definition><br /><br /><channel-definition id="<br />b my-polling-amf<br />" class="mx.messaging.channels.AMFChannel"><br />]<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/><br />]<properties><br />]]<polling-enabled>true</polling-enabled><br />]]<polling-interval-seconds>4</polling-interval-seconds><br />]</properties><br /></channel-definition><br /><br />I restarted my CF8 instance and rebuilt the workspace in Flex.<br /><br />And I get in the Problems panel:<br /><br />b Channel definition, mx.messaging.channels.StreamingAMFChannel, can not be found.<br /><br />Has anyone come across the same issue? And hopefully, come up with a solution? :)<br /><br />Thanks for taking the time to read me.<br /><br />Nath

    Hi Mete,
    rpc.swc is appearing under my Server SDK library path.
    But I have no idea how to check if it is out of date... Both Flex and BlazeDS are kind of new to me.
    I tried replacing it (+ the locale) by the ones from the flex SDK included in BlazeDS turnkey, but no luck: Flex Builder returns a "unable to load" error.
    EDIT: out of curiosity, I tried removing the streamingAMF channel definition, so that the polling channel is used.
    No error in Flex Builder, but when I try sending a message in the chat application, I get "Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://london:8303/tutorial-chat/messagebroker/amfpolling'".
    (and in my browser I get a 404 error with this URL)

  • BlazeDS configuration with coldfusion/java No destination 'testClass' exists in service flex.messaging.services.RemotingService"

    Hi
      I have an application which requires interaction with both coldfusion and java.I have taken the configuration files from the blazeDS turnkey project and added it to my application.My application server is  coldfusion  deployed in a weblogic.I was able to call coldfusion from my flex but whenever i try making java calls i get the following error
    [RPC Fault faultString="No destination 'testClass' exists in service flex.messaging.services.RemotingService" faultCode="Server.Processing" faultDetail="null"]
    services-config file is as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service-include file-path="remoting-config.xml" />
            <!--<service-include file-path="proxy-config.xml" />
            <service-include file-path="messaging-config.xml" />-->
        </services>
        <security>
            <login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/>
            <!-- Uncomment the correct app server
            <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
            <login-command class="flex.messaging.security.WeblogicLoginCommand" server="Weblogic"/>
            <login-command class="flex.messaging.security.WebSphereLoginCommand" server="WebSphere"/>
            -->
            <!--
            <security-constraint id="basic-read-access">
                <auth-method>Basic</auth-method>
                <roles>
                    <role>guests</role>
                    <role>accountants</role>
                    <role>employees</role>
                    <role>managers</role>
                </roles>
            </security-constraint>
            -->
        </security>
        <channels>
            <!--  CF Based Endpoints -->
            <channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://localhost:7002/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>false</polling-enabled>
                    <serialization>
                        <instantiate-types>false</instantiate-types>
                    </serialization>
                </properties>
            </channel-definition>
            <channel-definition id="cf-polling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>8</polling-interval-seconds>
                    <serialization>
                        <instantiate-types>false</instantiate-types>
                    </serialization>
                </properties>
            </channel-definition>
            <channel-definition id="my-cfamf-secure" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
                <properties>
                    <polling-enabled>false</polling-enabled>
                    <serialization>
                        <instantiate-types>false</instantiate-types>
                    </serialization>
                </properties>
            </channel-definition>
            <!--  Java Based Endpoints -->
            <channel-definition id="java-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://localhost:7002/flex2gateway/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            </channel-definition>
            <channel-definition id="java-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
            </channel-definition>
            <channel-definition id="java-polling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>8</polling-interval-seconds>
                </properties>
            </channel-definition>
            <!--
            <channel-definition id="java-http" class="mx.messaging.channels.HTTPChannel">
                <endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
            </channel-definition>
            <channel-definition id="java-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
                <endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
            </channel-definition>
            -->
        </channels>
        <logging>
            <target class="flex.messaging.log.ConsoleTarget" level="Error">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>false</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                    <pattern>Service.*</pattern>
                    <pattern>Configuration</pattern>
                    <pattern>Message.*</pattern>
                </filters>
            </target>
        </logging>
        <system>
           <!-- <manageable>false</manageable>-->
            <!--
            <redeploy>
                <enabled>true</enabled>
                <watch-interval>20</watch-interval>
                <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
                <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>
                <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>
                <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>
                <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>
                <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
            </redeploy>
             -->
        </system>
    </services-config>
    remote-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service"
        class="flex.messaging.services.RemotingService"
        messageTypes="flex.messaging.messages.RemotingMessage">
        <adapters>
            <adapter-definition id="cf-object" class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/>
            <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter"/>
        </adapters>
        <default-channels>
            <channel ref="my-cfamf"/>
        </default-channels>
        <destination id="ColdFusion">
            <channels>
                <channel ref="my-cfamf"/>
            </channels>
            <properties>
                <source>*</source>
                <!-- define the resolution rules and access level of the cfc being invoked -->
                <access>
                    <!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -->
                    <use-mappings>false</use-mappings>
                    <!-- allow "public and remote" or just "remote" methods to be invoked -->
                    <method-access-level>remote</method-access-level>
                </access>
                <property-case>
                    <!-- cfc property names -->
                    <force-cfc-lowercase>false</force-cfc-lowercase>
                    <!-- Query column names -->
                    <force-query-lowercase>false</force-query-lowercase>
                    <!-- struct keys -->
                    <force-struct-lowercase>false</force-struct-lowercase>
                </property-case>
            </properties>
        </destination>
    <destination id="testClass">
            <properties>
                    <source>TestClass</source>
            </properties>
    <adapter ref="java-object" />
            <channels>
                <channel ref="java-amf"/>
            </channels>
        </destination>
        <destination id="testClass2">
            <properties>
                    <source>TestClass2</source>
            </properties>
      <adapter ref="java-object"/>
            <channels>
                <channel ref="java-amf"/>
            </channels>
        </destination>
    </service>
    Can anyone please tell me where i m  going wrong.Is that because i m using flex2gateway for java calls?.I used it since it was how it has been configured in the turnkey project for coldfusion.I have replicated the file as it was there and since it is using flex2gateway even for javaEndpoints i felt we could use the same.
    regards
    Sidd

    Thanks for the reply. Yes, I did compile all the Java and it
    works OK with a simple Java program. It just will not work in a
    Flex application.
    The java classes are:
    RRA:
    package blah.myPackage;
    import java.util.List;
    import java.util.Collection;
    import flex.data.DataSyncException;
    import flex.data.assemblers.AbstractAssembler;
    class RRA extends AbstractAssembler
    public Collection fill( List fillParameters )
    RRS service = new RRS();
    return service.getSome();
    RRS:
    package blah.myPackage;
    import java.util.ArrayList;
    import java.util.List;
    import java.sql.*;
    import flex.EORS.*;
    class RRS
    public List getSome()
    ArrayList list = new ArrayList();
    String str = "bob";
    RR rr = new RR(str);
    list.add(rr);
    return list;
    RR:
    package blah.myPackage;
    class RR
    private String name;
    public RR() { }
    public RR(String name)
    this.name = name;
    public String getName()
    return this.name;
    public void setName(String name)
    this.name = name;
    I started with something that retrieved data from a database
    but watered it down just to try and get some kind of communication
    between Flex and Java.

Maybe you are looking for

  • Can I convert my VHS tapes into DVD using iMAC?

    How can I convert my VHS tapes into DVD by using iMAC?

  • Video onto Ipod

    Please help, how do you convert vids on pc into your ipod video? do you need software?

  • Comping multi-Track multi-take Drums

    Hi everyone, In the last days I recorded a set of drum tracks. I'm looking for a good way to comp them so that a crash that was hit in take 1 can fade out while take 2 is already starting to play. I thought that might be possible to do wit hthe compi

  • Photoshop prefs not saving

    Numerous issues since trying out some of the CC 2014 offerings including Unable to update any apps in the Mac OS desktop app since first updating Premiere and After Effects. Premiere updates and load After Effect 2014 won't open Seems related to pref

  • Uprgaded to 6.0.4, now my computer runs like a turtle

    I just upgraded from itunes 5 to 6.0.4 Now my CPU usage is thru the roof and programs take forever to open up. Even tasks as simple as switching windows to other app's take a few seconds. I have 1GB of RAM i don't understand why this is happening but