Merapi,
First, I appreciate your help. I keep trying to start the newest
svn version of Merapi (06.14.10) in Eclipse(GALILEO) and I've run into
multiple errors, but mostly it's because I need to know all of the
files which are required to be placed in your projects (Flex&Java).
I'm currently placing the commons-logging.jar, flex-messaging-
commons.jar, flex-messaging-core.jar, log4j-1.2.15.jar, spring.jar,
and tools.jar files into a libs folder of my java project which I then
add to my java project build path. I'm also adding the "config"
folder from svn-trunk-java to my java project which contains the
applicationContext.xml & merapi-native-config.xml files (this fixed an
error involving "merapi-native-config"). I have also added the
log4j.xml file to my java project src folder (this fixed a log4j
error). All of these files together and the following lines of code
inside the main method seem to allow the java portion to work (it
prints 4 INFO lines and doesn't crash). Please let me know if I have
missed any files or If I need to alter any of these files. I'm
currently using Flex 4.0, Eclipse Galileo and JDK 1.6.017.
Bridge bridge = Bridge.getInstance();
Message note = new Message();
note.setData("Hello From Java! ");
bridge.sendMessage(note);
I'm receiving more errors from the Flex end of the code. I'm
using Flash Builder 4 built into Eclipse (Flex 4.0) and i'm including
merapi-core-0.1.8-beta.swc and merapi-core-flex.swc files in a libs
folder which I include in the Flex Build path. I seem to be the most
lost when it comes to what files are truly required for the Flex end,
what configurations they may need and what simple lines of code can be
used to receive and send a string such as "hello."
Most all tutorials and examples currently listed on the internet
use the Bridgeinstance where the new Merapi is using only the Bridge
and then message handlers, however, I need to know what beginning
lines of code it would take to send or receive a "hello" using the
Flex end of Merapi. Basically, I'm looking for the updated page of
(
http://www.merapiproject.net/index.php?
option=com_content&view=article&id=47&Itemid=64&limitstart=3) which
gives similar examples, but it doesn't give them with the Bridge only
and the message handlers in Flex and Java. And I wanted to know what
files are required to run properly and if they need to be configured
in any special way. I truly appreciate your help as I have researched
all of this for quite a few days and it really seems like I just need
the first step or two to get me going. Thanks again and I look
forward to your response.
Nick