4 Replies Latest reply on Aug 9, 2011 10:35 AM by r4raghs

    Suggest File Structure

    r4raghs Level 1

      Suggest a file structure for the project combined Flex with Java, Going to use Eclipse alone to handle both Flex and Java. I'm having blazeds-turnkey-4.x. I would like to handle everything in and around WEB-INF folder in tomcat.

        • 1. Re: Suggest File Structure
          Vibhuti Gosavi(InfoCepts) Level 3

          Hi,

           

          I would suggest , in Web-Inf folder create following folders :

           

          1) classes - having all java classes of your project.

           

          2) flex - keep all configuration files in this folder.

           

          3) lib - keep all the external jar files.

           

          Also keep web.xml file in Web-Inf folder.web11.jpg

           

           

          config.jpg

           

          You can keep remoting config as follows:

           

           

          <?xml version="1.0" encoding="UTF-8"?>

          <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>

           

              <default-channels>

                  <channel ref="my-amf"/>

              </default-channels>

           

              <destination id="loginService">

                  <properties>

                      <source>infocepts.irms.servlet.login.Login</source>

          <scope>application</scope>

                  </properties>

          <adapter ref="java-object" />

           

              </destination>

           

             <destination id="uploadService">

                  <properties>

                      <source>infocepts.irms.servlet.upload.Upload</source>

          <scope>application</scope>

                  </properties>

          <adapter ref="java-object" />

           

              </destination>

           

             <destination id="FileUtil">

                  <properties>

                      <source>infocepts.irms.util.FileUtils</source>

          <scope>application</scope>

                  </properties>

          <adapter ref="java-object" />

           

              </destination>

           

           

          <destination id="feedbackService">

                  <properties>

                      <source>infocepts.irms.servlet.feedback.Feedback</source>

          <scope>application</scope>

                  </properties>

          <adapter ref="java-object" />

           

              </destination>

           

           

          <destination id="sessionService">

                  <properties>

                      <source>infocepts.irms.session.MySessionHandler</source>

           

                  </properties>

          <adapter ref="java-object" />

           

              </destination>

           

          <destination id="processService">

                  <properties>

                      <source>infocepts.irms.servlet.process.Process</source>

           

                  </properties>

          <adapter ref="java-object" />

           

              </destination>

           

          <destination id="reportService">

                  <properties>

                      <source>infocepts.irms.servlet.reports.Reports</source>

           

                  </properties>

          <adapter ref="java-object" />

           

              </destination>

           

          <destination id="emailService">

                  <properties>

                      <source>infocepts.irms.util.EMail</source>

           

                  </properties>

          <adapter ref="java-object" />

           

          </destination>

           

          <destination id="Service">

                 <properties>

                     <source>demo.Info</source>

           

                 </properties>

                  <adapter ref="java-object" />

           

          </destination>

           

          </service>

           

           

           

          lib.jpg

           

          Thanks and Regards,

          ------------------------------------------------------------------------------------------ -

          Vibhuti Gosavi | vgosavi@infocepts.com | www.infocepts.com

          ------------------------------------------------------------------------------------------ --

          • 2. Re: Suggest File Structure
            r4raghs Level 1

            Hi Vibhuti Gosavi,

            As I'm using blazeds i have the folders u mentioned above.My doubt is, say for example I have a folder structure /tomcat/webapps/FirstApp/WEB-INF.

            I am creating first-app(project name) as dynamic web project in eclipse, in that instead of using default workspace, which path I have to use ? Is  /tomcat/FirstApp/WEB-INF correct ? Also, when create Flex project, I am using project path as /tomcat/webapps/FirstApp. Need more clarification.

            If u metion the paths upto create a project for both it would be greatful.

            • 3. Re: Suggest File Structure
              Vibhuti Gosavi(InfoCepts) Level 3

              Hi,

               

              Keep your files as follows:

               

              tomcat/webapps/blazeds/

               

              In blazeds folder put following folders:

               

              WEB-INF , META-INF  and output folder(i.e. bin-debug/bin-release) of your Flex project which contains the HTML page and SWF files.

               

              Thanks and Regards,

              -----------------------------------------------------------------------------------------

              Vibhuti Gosavi | vgosavi@infocepts.com | www.infocepts.com

              -----------------------------------------------------------------------------------------

              • 4. Re: Suggest File Structure
                r4raghs Level 1

                Hi,

                I have done HelloWorld sample using this structure, seems much reliable.

                Thank you for your valuable time.