I dunno about this.  The different JVM language runtimes (JRuby, Rhino, 
Groovy, etc) all generate and run bytecode on the fly.  I don't know if you 
can cache that generated byte code and re-execute it later, though that 
seems like it'd be a shortcoming of the interpreter, not the App Engine 
environment.


On Wednesday, March 9, 2011 12:17:57 AM UTC-5, Didier Durand wrote:
>
> Hi, 
>
> Even if you solve the File I/O issue, I would guess that you may then 
> face security issue: Google has probably protected its instances 
> against execution of code not coming direcly from the war file... 
>
> Anyway, very interesting question: pls, let us konw how you progress. 
>
> regards 
>
> didier 
>
> On Mar 9, 5:43 am, Larry Cable <[email protected]> wrote: 
> > On Mar 8, 8:35 pm, Larry Cable <[email protected]> wrote: 
> > 
> > 
> > 
> > > On Mar 7, 12:13 am, Rick Smith <[email protected]> wrote: 
> > 
> > > > Hi all 
> > 
> > > > Can I create and compile a java class at run time on goolge 
> > > > appengine. 
> > > > Use case: I have given a UI to my application user that they can 
> > > > define their own business logic.Now what is going to be main 
> challenge 
> > > > is that I need to make new deployment each time when some one need to 
>
> > > > modify its business logic. As an alternate I want to store source 
> code 
> > > > in data base and compile it when required. 
> > 
> > > > Regards 
> > 
> > > > Rick 
> > 
> > > As others have pointed out the file I/O issue precludes using a 
> > > compiler .... 
> > 
> > > The best I can suggest is using BCEL to construct classes at 
> > > runtime... But I have never tried this with GAE so I do not know if 
> > > BCEL is whitelist safe. 
> > 
> > Just as a followup you need to take a look at the BCEL API to see if 
> > you can create in-memory class files ... Otherwise you will trip up 
> > over the File I/O issue again.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to