Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-85

Support deploying .yml (RoR applications) in an EAR

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0.Beta19
    • Fix Version/s: None
    • Component/s: Rails
    • Labels:
      None

      Description

      For developing joint Java and RoR applications (e.g. Java backend, RoR frontend), it would be useful to be able to deploy .yml files as part of .ear packages.

      I've prepared a demo project: http://github.com/adamw/torquebox-in-ear-test. In the java backend there's one class, Test, with a method getMessage(). In home_controller.rb, this value is read: @message = Test.new.get_message() and then displayed.

      This can be made to work right now if the ear is placed in the DefaultDomain, so if all classes are visible to every other deployment (this can be achieved by adding a jboss-classloading.xml to the META-INF of the ear:
      <classloading xmlns="urn:jboss:classloading:1.0"
      domain="DefaultDomain"
      top-level-classloader="true"
      export-all="NON_EMPTY"
      import-all="true">
      </classloading>
      ).

      However it would be much better if the ear could be deployed normally, and the .yml application as part of it.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                adamw Adam Warski
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: