5 Replies Latest reply on Feb 25, 2003 5:44 AM by isabella

    JBoss communicating with Flash?

    isabella

      hello,

      i would like to know how JBoss can communicate with Flash....i am trying to use Flash for the UI part and so, i needa know in what kind(s) of way can i do the communication between the two?

      i think using xml as data exchange is possible, and what other ways are there?

      and also, if i am using xml, can i read the xml in a session bean? if so, what object/method should i use?

      i am sorry for raising so many questions at a time...

      thx very much in advance,
      isabella~

        • 1. Re: JBoss communicating with Flash?
          blackers

          Yes it is possible, I am not sure if this is the best way, but in the past I have used a jsp where the output of the jsp is simply just something like:
          param1=value1&param2=value2&param3=value3 etc...

          and then I just read use getvariablesnum() function from actionscript. I will confirm this function asap.

          • 2. Re: JBoss communicating with Flash?
            isabella

            hello blackers,

            thx alot for your advice...

            however, as i shall be sending at least 10 objects (each with a list of attributes themselves), it seems better (or easier to program) using XML....

            pls correct me if i am mistaken...=P

            cheers,
            isabella~

            • 3. Re: JBoss communicating with Flash?
              hoos

              isabella

              If you are using flash mx you can open an xml socket to a servlet deployed onto Jboss, this works well for us but this approach does require a good level of understaing of servlets and xml parsing APIs (SAX or DOM).

              I have been working on Flash front ends integrated with J2EE apps for a few weeks, my first aproach was simply post to a servlet from Flash and display the results.

              Cheers Hoos

              • 4. Re: JBoss communicating with Flash?
                isabella

                hello Hoos,

                thx for your advice..i am quite interested in your suggestion and i would like to clarify a few points for the moment:

                the xml socket u mentioned, is it the XMLSocket object in flash??

                why must i use SAX or DOM?? can i use the XMLEncoder/XMLDecoder instead??

                also, do u mind telling me a bit more on how to receive/send data thru servlet?? i am quite unknown to it...

                thx alot,
                isabella~

                • 5. Re: JBoss communicating with Flash?
                  isabella

                  hello Hoos,

                  thx for your advice..i am quite interested in your suggestion and i would like to clarify a few points for the moment:

                  the xml socket u mentioned, is it the XMLSocket object in flash??

                  why must i use SAX or DOM?? can i use the XMLEncoder/XMLDecoder instead??

                  also, do u mind telling me a bit more on how to receive/send data thru servlet?? i am quite unknown to it...

                  thx alot,
                  isabella~