I agree with Peter.  App Engine is - in concept - similar to a JEE
container in that it provides certain services to users (persistence,
scalability etc.)  And at least in earlier J2EE specs EJB as the
carriers of business logic were explicitly forbidden to create their
own threads since concurrency was handled by the container (http://
java.sun.com/blueprints/qanda/ejb_tier/restrictions.html#threads).
Not sure if that still is in place with JEE 5/6.

On 7 Jan., 05:49, Peter <[email protected]> wrote:
> In the Holiday Episode, there was some talk about Google hurting Java
> with some of its projects like App Engine.  I don't think this is
> really a fair criticism.  I agree that the current sandbox can be a
> little annoying.  But App Engine doesn't hide the fact that it is a
> restricted environment.  Users should not be surprised that they are
> not allowed to spawn new Threads, or that libraries that rely on
> Threads may not work.  Anyone choosing to use App Engine is making a
> conscious trade off - they are giving up certain classes/functionality
> in order to gain (mostly) automatic scalability and relatively little
> sysadmin work.  To me this is just a more extreme version of coding
> with things like Servlets or EJB's, where we agree to follow certain
> restrictions in order to leverage some container's existing
> functionality.  (And App Engine runs bytecode, so I am able to use
> Scala!)
>
> I would much rather have the current situation than have my app
> crippled when some newb writes something like:
>
> while(true){
>   new MyThread().start()}
>
> Since releasing the java SDK, the appengine team has added classes to
> the whitelist.  I imagine they will continue to do so whenever
> possible.
>
> And as far as GWT goes, I'd much rather be using a subset of Java to
> be writing my web UI than an arbitrary non java language. (or worse
> yet, a proprietary google language)  Don't get me wrong, I'd love it
> if GWT could compile arbitrary byte code to javascript, as then I
> could use Scala for that too :-)
>
> -peter
-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" 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/javaposse?hl=en.


Reply via email to