How to install and develop using Flex 2 (FDS) and EJB3 projects - Part 1
I'll promise you to write some tutorials on how to integrate Flex 2 with your EJB3 applications. So in this first part I'll talk about the JBoss options and settings yo have to modfiy in order to deploy Flex Data Services 2 on our J2EE enviroment.
Let's start with JBoss settings.
In order to start the JBoss server you have to modify the bat script (JBOSS_HOME/bin/run.bat ) adding the JAVA enviroment variable (JAVA_HOME). Then to activate the remote debug through JPDA change and edit the following lines of code :
set JAVA_HOME=/..../jdk5.0
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n %JAVA_OPTS%
If you have the 8000 port busy, you have to modify and change it.
The installation of Flex Data Services is very simple. For using FDS under JBoss just copy the flex.war application file on the JBOSS_HOME/server/default/deploy directory. Create a folder inside this path with the name flex.war.
NOTE: the directory has to be named "flex.war", like the file. In this way JBoss is able to automatically deploy the flex.war file as application.
You can test the evniroment launching this url : http://localhost:8080/flex .
You'll obtain the Welcome page of Flex Data Services.
In the next part of the series dedicated to Flex 2, Flex Data Services and EJB3 I'll show you how to create our first EJB3 project.
If you're italian have also a look at the great articles that Roberto Tassi wrote about EJB3 and Flex 2 integration on FlexGala user Group.





























http://highestshelf.org/blackandwhite/index.html
Posted by: http://highestshelf.org/blackandwhite/index.html | July 06, 2007 at 01:43 AM