You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Srinath Perera <he...@opensource.lk> on 2004/07/23 07:43:00 UTC

Re: [code generation]webservice deployment in geronimo

> If we need to generate Java source code and compile it, then I would
> rather have the deployment process simply do that.  What I was really
> getting at is can we simply generate the byte code directly and skip
> the Java source generation and compile steps?

Have heard of generating the byte code directly but never done it my self
before. My only concern is in that way will the debuging become 
nightmare. (as we are not good @ reading byte codes as computers.)

plus there would be quite bit of code changing in the generation code..
but that is not impossible if it worth it.
Thanks
Srinath

Re: [code generation]webservice deployment in geronimo

Posted by Srinath Perera <he...@opensource.lk>.
yes.. I am working on it :)
thanks
Srinath

> lets get all the tests working as-is and then tackle that problem.
>
> thanks,
> -- dims
>
> On Sat, 24 Jul 2004 12:20:29 -0400 (EDT), Srinath Perera
> <he...@opensource.lk> wrote:
>> > Normally, you write the standard code reused across all beans in
>> normal
>> > java code that you compile an pack in a library jar. Then you only
>> > generate a tiny bit of byte code to implement an interface and call
>> > your library java code.  This is how we implement EJB.  We generate an
>> > implementation of the EJB interfaces and all that implementations does
>> > is call our EJB library code, which does stuff like check permissions
>> > and start transactions.
>> Thanks :) .. I read bit about cglib and saw the jar inside the geronimo
>> as well. With the help of tools ect and with above approch I belive it
>> is
>> much better than I thought at first.
>>
>> > Anyway, it is not important for now, but something I'd like to do in
>> > the future.
>> yes it would make the deployment simpler .. plus I think we shoud ask
>> what
>> the dims think about it as well.
>> Thanks
>> Srinath
>>
>>
>
>
> --
> Davanum Srinivas - http://webservices.apache.org/~dims/
>
>


------------------------------------
Lanka Sofware Foundation
------------------------------------

Re: [code generation]webservice deployment in geronimo

Posted by Davanum Srinivas <da...@gmail.com>.
lets get all the tests working as-is and then tackle that problem.

thanks,
-- dims

On Sat, 24 Jul 2004 12:20:29 -0400 (EDT), Srinath Perera
<he...@opensource.lk> wrote:
> > Normally, you write the standard code reused across all beans in normal
> > java code that you compile an pack in a library jar. Then you only
> > generate a tiny bit of byte code to implement an interface and call
> > your library java code.  This is how we implement EJB.  We generate an
> > implementation of the EJB interfaces and all that implementations does
> > is call our EJB library code, which does stuff like check permissions
> > and start transactions.
> Thanks :) .. I read bit about cglib and saw the jar inside the geronimo
> as well. With the help of tools ect and with above approch I belive it is
> much better than I thought at first.
> 
> > Anyway, it is not important for now, but something I'd like to do in
> > the future.
> yes it would make the deployment simpler .. plus I think we shoud ask what
> the dims think about it as well.
> Thanks
> Srinath
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: [code generation]webservice deployment in geronimo

Posted by Srinath Perera <he...@opensource.lk>.
> Normally, you write the standard code reused across all beans in normal
> java code that you compile an pack in a library jar. Then you only
> generate a tiny bit of byte code to implement an interface and call
> your library java code.  This is how we implement EJB.  We generate an
> implementation of the EJB interfaces and all that implementations does
> is call our EJB library code, which does stuff like check permissions
> and start transactions.
Thanks :) .. I read bit about cglib and saw the jar inside the geronimo 
as well. With the help of tools ect and with above approch I belive it is
much better than I thought at first.

> Anyway, it is not important for now, but something I'd like to do in
> the future.
yes it would make the deployment simpler .. plus I think we shoud ask what
the dims think about it as well.
Thanks
Srinath




Re: [code generation]webservice deployment in geronimo

Posted by Dain Sundstrom <da...@coredevelopers.net>.
On Jul 22, 2004, at 10:43 PM, Srinath Perera wrote:

>> If we need to generate Java source code and compile it, then I would
>> rather have the deployment process simply do that.  What I was really
>> getting at is can we simply generate the byte code directly and skip
>> the Java source generation and compile steps?
>
> Have heard of generating the byte code directly but never done it my 
> self
> before. My only concern is in that way will the debuging become
> nightmare. (as we are not good @ reading byte codes as computers.)
>
> plus there would be quite bit of code changing in the generation code..
> but that is not impossible if it worth it.

Normally, you write the standard code reused across all beans in normal 
java code that you compile an pack in a library jar. Then you only 
generate a tiny bit of byte code to implement an interface and call 
your library java code.  This is how we implement EJB.  We generate an 
implementation of the EJB interfaces and all that implementations does 
is call our EJB library code, which does stuff like check permissions 
and start transactions.

Anyway, it is not important for now, but something I'd like to do in 
the future.

-dain