[android-developers] Re: Tomcat on Android

2010-11-05 Thread Marc Fleury
 I guess if it's a wall
 mounted device, it might be ok.  But at that point why not just use a
 PC of sorts and use some linux distribution and use your app as is,
 why even use Android at all?

You would be surprised how difficult it is to get a decent ARM based
fanless PC with a stable linux and working JVM.  We have been working
on it at www.openremote.org and you can find it but it is hard to do
and then distribution is a headache.  These are part of the reason why
we are looking for an android based server (in the wall). Also I think
the prices will be go down quickly due to economies of scale.  IT then
may be a decent server platform.   But yeah, I got to weight the
difficulty of porting against the joy of an in-wall android.  I got to
admit that porting is complicated and was full of nasty surprises for
me :(.  This is not java, the libraries, this is android-java,
unfortunately a different beast.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Tomcat on Android

2010-11-05 Thread Marc Fleury
Thanks Jason. Very useful.  i-jetty looks quite interesting run as a
service on android and may just be the ticket.

I may also contact the tjws guy see if he is porting to android.

On A/ this is meant for an in-wall device so no issues of power.

Thanks again.
MF
On Nov 5, 7:20 am, Jason jason.poli...@gmail.com wrote:
 My experience is that Jetty (http://www.mortbay.org/jetty/) tends to
 be a bit more lightweight than tomcat, and also a LOT easier to embed
 (it's basically just a JAR file).

 Or you could try this:

 http://tjws.sourceforge.net/

 Haven't tried it myself, but looks like it's designed to be
 lightweight.

 Or.. maybe even better:

 http://code.google.com/p/i-jetty/

 In either case it's likely to be:

 A) A battery killer due to much heavier resource usage than normal
 mobile apps
 B) Could be a performance problem if the container itself is
 allocating a lot of objects, and thus causing the GC to kick in.

 On Nov 5, 4:51 pm, Miguel Morales therevolti...@gmail.com wrote:



  All I gotta ask is, why?  I'd imagine Tomcat is not written to be run
  in embedded/legacy devices such as an android device.  You'd be
  wasting a lot of memory and cpu cycles.  I guess if it's a wall
  mounted device, it might be ok.  But at that point why not just use a
  PC of sorts and use some linux distribution and use your app as is,
  why even use Android at all?

  I really don't see a case where this is desirable.

  On Thu, Nov 4, 2010 at 10:35 PM, Bret Foreman bret.fore...@gmail.com 
  wrote:
   I've been looking into this too. We have an industrial embedded
   control application that I'd like to run on Android and control from a
   remote browser.

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  ~ Jeremiah:9:23-24
  Android 2D 
  MMORPG:http://developingthedream.blogspot.com/,http://www.youtube.com/user/r...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Tomcat on Android

2010-11-04 Thread Marc Fleury
I have seen other threads on the topic, most notably one asking about
tomcat/jboss on android.

Anyway, I am actually interested in hearing if people have
successfully ported tomcat on android? the use case for me would be
www.openremote.org.  We distribute a controller that is written in
java6.  I have actually started porting parts of it to Android and in
doing so got to thinking we could port the whole thing to android.  As
a dedicated controller in the wall (forget screens and such, this is
not an smart phone) it would be quite killer.

Has anyone succeeded? maybe I haven't searched hard enough?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en