Skip to main content

jruby app in same VM?

3 replies [Last post]
Anonymous

Hello all -

Is there a way to get a separate jruby process to run in the same VM as the jruby container inside Glassfish? For example - if I need to start a jruby app after glassfish is up and running, I would like to attach it to the same VM that the current jruby apps inside of Glassfish are using.

Is this possible?

Thanks.

--
Robert B. Weeks
rweeks@ext-inc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Robert Weeks

Hello -

Is there a way to get a separate jruby process to run in the same VM as the jruby container inside Glassfish? For example - if I need to start a jruby app after glassfish is up and running, I would like to attach it to the same VM that the current jruby apps inside of Glassfish are using.

I never heard back if anyone knew if this was possible or not?

For example - if we have to still utilize a poller (jruby -S script/jruby_poller) for JMS communications, I would rather it attach to the same jruby instance/vm that the main rails app is using under glassfish.

Please let me know if anyone has been able to get this to work or if I am overlooking something that is obvious to enable it.

Thanks a lot.

--
Robert B. Weeks
rweeks@ext-inc.com

[att1.html]

Paul Blair

One thing you might tray is to finagle something by running the Quartz job
scheduler within Glassfish. Here's a forum thread with more details:

http://forums.java.net/jive/thread.jspa?messageID=235708

On Wed, Mar 24, 2010 at 9:06 AM, Robert Weeks wrote:

> Hello -
>
> Is there a way to get a separate jruby process to run in the same VM as the
> jruby container inside Glassfish? For example - if I need to start a jruby
> app after glassfish is up and running, I would like to attach it to the same
> VM that the current jruby apps inside of Glassfish are using.
>
>
> I never heard back if anyone knew if this was possible or not?
>
> For example - if we have to still utilize a poller (jruby -S
> script/jruby_poller) for JMS communications, I would rather it attach to the
> same jruby instance/vm that the main rails app is using under glassfish.
>
> Please let me know if anyone has been able to get this to work or if I am
> overlooking something that is obvious to enable it.
>
> Thanks a lot.
>
> --
> Robert B. Weeks
> rweeks@ext-inc.com
>
>
>
>
>

--
Paul Blair
pblair@cyrusinnovation.com

Cyrus Innovation LLC
200 Varick, Suite 902
New York, NY 10014
phone: (212) 647-7186
fax: (212) 591-6043
http://cyrusinnovation.com

~~~~~~~~~~~~~~~~~

Cyrus ranked #231 on the Inc 500 fastest growing companies:
http://www.marketwire.com/press-release/Cyrus-Innovation-Llc-1029552.html

~~~~~~~~~~~~~~~~~
[att1.html]

Robert Weeks

Thank you very much for the pointer - I will look into this and report back!

On Mar 25, 2010, at 12:34 PM, Paul Blair wrote:

One thing you might tray is to finagle something by running the Quartz job scheduler within Glassfish. Here's a forum thread with more details:

http://forums.java.net/jive/thread.jspa?messageID=235708

On Wed, Mar 24, 2010 at 9:06 AM, Robert Weeks > wrote:
Hello -

Is there a way to get a separate jruby process to run in the same VM as the jruby container inside Glassfish? For example - if I need to start a jruby app after glassfish is up and running, I would like to attach it to the same VM that the current jruby apps inside of Glassfish are using.

I never heard back if anyone knew if this was possible or not?

For example - if we have to still utilize a poller (jruby -S script/jruby_poller) for JMS communications, I would rather it attach to the same jruby instance/vm that the main rails app is using under glassfish.

Please let me know if anyone has been able to get this to work or if I am overlooking something that is obvious to enable it.

Thanks a lot.

--

--
Paul Blair
pblair@cyrusinnovation.com

Cyrus Innovation LLC
200 Varick, Suite 902
New York, NY 10014
phone: (212) 647-7186
fax: (212) 591-6043
http://cyrusinnovation.com

--
Robert B. Weeks
rweeks@ext-inc.com

[att1.html]