users@glassfish.java.net

Re: rmic (RMI Stub Compiler) command line tool invocation from Glassfish

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Mon, 12 Oct 2009 10:35:02 -0700

Vlad,

There are 2 places that generate the stubs - one in for EJBs, and it's the
ejb-container/src/main/java/com/sun/ejb/codegen/StaticRmiStubGenerator.java and
another part of the code that does it for the webservices. I don't know where
that part of the code is located :(.

Regards,
-marina

glassfish_at_javadesktop.org wrote:
> Hello,
>
> could somebody give me some help about the implementation of the "--generatermistubs" option of the "asaadmin deploy" command in Glassfish v3?
>
> I assume somewhere in the calling chain of classes implementing the "asadmin deploy" command, the "rmic" JDK tool is invoked. But i searched for half a day in the Glassfish v3 source code and didn't find something ressembling to the call of the "rmic" command line command.
>
> First of all, am i right that rmic is used for this? In either case can someone point me the exact key line/lines in Glassfihes's source code where those stub classes are generated for an EJB?
>
> They have names like "_TestBean_Stub.class" and "_TestBeanHome_Stub.class" for an EJB 2.1 exposing a remote home interface named "TestBeanHome" and a remote component interface named "TestBean"
>
> Thank you so much!
> Vlad
> [Message sent by forum member 'vladbalan' (vladbalan_fr_at_yahoo.fr)]
>
> http://forums.java.net/jive/thread.jspa?messageID=367638
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>