Vivek,
You are right that in OSGi mode, args passed using ASMain.main(args) is
not passed to the startupModule. That's because there is no way to
pass any object to an activated bundle. A bundle should have its
own way of configuring itself either by reading from a file or by use of
properties. Can your code use anything like that?
Thanks,
Sahoo
Vivek Pandey wrote:
> Sahoo/Jerome,
>
> In glassfish JRuby gem the v3 bootstrap happens thru
> ASMain.main(args). The args are the options that user might have
> passed, such as num of runtimes, context etc, which results into
> StartupContext inside ASMainOSGi or in the HK2 mode, inside
> bootstrap.Main (hk2.jar).
>
> With HK2 it works fine but with OSGi I dont think there is any code
> that passes on StartupContext anywhere.
>
> I need this fixed with ASMainFelix/ASMainOSGi in order to make gem
> OSGi aware, till then the gem is only going to run in HK2 mode.
>
>
> -vivek.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>