# J2ee and rails proejct with one jboss webserver

**URL:** <https://www.ruby-forum.com/t/j2ee-and-rails-proejct-with-one-jboss-webserver/152111>\
**Category:** Deployment\
**Created:** [October 30, 2008, 4:57am UTC](https://www.ruby-forum.com/t/j2ee-and-rails-proejct-with-one-jboss-webserver/152111 "2008-10-30T04:57:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thaniyarasu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@thaniyarasu](https://www.ruby-forum.com/u/thaniyarasu)\
**Post date:** [October 30, 2008, 4:57am UTC](https://www.ruby-forum.com/t/j2ee-and-rails-proejct-with-one-jboss-webserver/152111/1 "2008-10-30T04:57:51Z")

</div>

i am new to rails(version-2.1.1)  
Already i have a j2ee project running on jboss server.  
i want to add some extra functionality(which is i have created in a new  
Rails project) into that j2ee project.  
i want to deploy my new rails project with that old jboss server  
that means i don’t want to use any of the ruby server like thin  
,mongrel,webrick

my constraint focus is  
i want to use only on webserver (that is Jboss)  
i want to use two application server (j2ee,rails-2.1)

how can i manage that ?

is there any way to redirect the request from jboss or tomcat webserver  
to both of the above mentioned application server.

should i write any cgi script ?

---

<div class="post-metadata">

**Author:** ![thaniyarasu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@thaniyarasu](https://www.ruby-forum.com/u/thaniyarasu)\
**Post date:** [October 30, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/j2ee-and-rails-proejct-with-one-jboss-webserver/152111/2 "2008-10-30T18:14:02Z")

</div>

You will have to use _some_ Ruby application server (like mongrel).  
You can’t run a Rails app without something executing the code and  
serving up the content. What you would need to do in this case is set  
up Jboss to proxy requests over to your mongrels. If you need help on  
how to set that up you’d probably have better luck on a java-specific  
list.

On Oct 29, 8:57 pm, Thani A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![thaniyarasu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@thaniyarasu](https://www.ruby-forum.com/u/thaniyarasu)\
**Post date:** [October 31, 2008, 1:36pm UTC](https://www.ruby-forum.com/t/j2ee-and-rails-proejct-with-one-jboss-webserver/152111/3 "2008-10-31T13:36:16Z")

</div>

Thani A. wrote:

> i want to deploy my new rails project with that old jboss server  
> that means i don’t want to use any of the ruby server like thin  
> ,mongrel,webrick

Have you taken a look at JRuby and Warbler? You can package a Rails app  
up as a WAR file (with some constraints) and any J2EE compliant  
webserver should grok it.

–  
Roderick van Domburg

> **[De domeinnaam Nedforce.nl is te koop.](http://www.nedforce.nl)**
>
> Deze mooie domeinnaam kan al over een paar minuten van jou zijn. Betalen gaat eenvoudig en vertrouwd via iDEAL. Direct na de betaling ontvang je de verhuiscode per e-mail en kun je aan de slag.

---

<div class="post-metadata">

**Author:** ![thaniyarasu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@thaniyarasu](https://www.ruby-forum.com/u/thaniyarasu)\
**Post date:** [November 3, 2008, 5:22am UTC](https://www.ruby-forum.com/t/j2ee-and-rails-proejct-with-one-jboss-webserver/152111/4 "2008-11-03T05:22:38Z")

</div>

Thanks guys  
i will try it…
