My First Steps With Flash Data Services

Today i finally got the time to install the flex data services. For me this is quite an adventure as i`m not really a server or java guy. So for me the first thing was to get tomcat. I know it would have been easier to use the integrated jrun but i think tomcat is a more common setup.

Installing Java Open Transaction Managet (JOTM)

With this decision comes the first problem. In order to use the data management features one has to install the Java Open Transaction Managet (JOTM). No big deal if you know that 😉 You can grab a version here.
Unzip the file and locate the lib folder. Now copy all of those jars into your tomcat project folder under WEB-INF/lib. Here i struggled for a moment. I thought know the CRM example that ships with FDS should work fine but it didn`t. The solution was to create a config file under TomcatInstallation/conf/Catalina/localhost/ . The file needs to be an xml file named after your webapp directory e.g. samples.xml. Assuming your webapp directory is called samples the content should look like this:
<Context docBase=”${catalina.home}/webapps/samples” privileged=”true”
antiResourceLocking=”false” antiJARLocking=”false”>
<Transaction factory=”org.objectweb.jotm.UserTransactionFactory” jotm.timeout=”60″/>
</Context>

Replace ${catalina.home}/webapps/samples with your location.
With this setup i was able to run the CRM samples. Next step will be to configure everything for messaging. What would be the best messaging provider for tomcat?
As i said i`m pretty new to all this server/java stuff but i`m allready really impressed by FDS.

Anyone knows of good tutorials for starters? Any suggestions?

Cheers
Benz

Tweet about this on TwitterShare on FacebookShare on LinkedInShare on Google+Pin on Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *