LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Best server for JSP and J2ME (https://www.linuxquestions.org/questions/programming-9/best-server-for-jsp-and-j2me-254826/)

Mufasa 11-14-2004 05:05 PM

Best server for JSP and J2ME
 
Hello,

What is the best server to use when programming with JSP and J2ME? I have heard of Weblogic as well as a combination of Apache with Tomcat.

What would be the best approach?

TIA

twantrd 11-15-2004 01:05 AM

I believe weblogic is a commercial product (I have never used it but heard of it) and so you need to pay. Apache+Tomcat is free. That's what I would use. However, if you are working for a company and they are willing to pay, then go with Weblogic.

-twantrd

jlliagre 11-15-2004 01:38 AM

Apache/Tomcat will not help you for developing J2ME applications, I would suggest downloading the free J2ME Toolkit at http://java.sun.com/products/j2mewtoolkit/index.html or the commercial Java Studio Mobility at http://wwws.sun.com/software/product...ty/index.html.

twantrd 11-15-2004 01:21 PM

Ahh my mistake. I thought you meant serving jsp pages. Sorry

-twantrd

Mufasa 11-15-2004 02:19 PM

Hello there - sorry - that was what I meant Java Server Pages (JSP) :p and J2ME. (I think JSP is for Java Server Pages) I would use JAVA but it would seem that JAVA requires a lot of space on the client side where it seems that the development of a JSP would produce something HTML like and not take up a lot of space on the client side. The only thing is that it would take up processing time too - am I right?

Also, will Tomcat/apache serve J2ME pages?

TIA

jlliagre 11-15-2004 03:16 PM

Okay, JSP and J2ME are different unrelated beasts.
JSP is one Java technology easing the development of server side web applications, that isn't demanding any Java support on the client side.
J2ME is another Java technology allowing to develop lightweight applications on the client side, targetting PDAs, telephones and that kind of small and mobile devices, that may or may not be HTTP clients.
There is no such thing as a J2ME page, J2ME is just a lightweight Java virtual machine.

Mufasa 11-15-2004 03:56 PM

OK - thank you for the explanation :)

If one were to make something that is to work on a web page and also work with J2ME, then would they have to make programs using java? Is not Java large and slow so JSP would be preferred (to build the page "on the fly")?

I also found this on the net:
http://groups.google.com/groups?hl=e...oteo%404ax.com

jlliagre 11-15-2004 06:17 PM

Quote:

If one were to make something that is to work on a web page and also work with J2ME, then would they have to make programs using java?
If you mean by "something that work on a web page" a Java Applet, then yes it can share pieces of code with a J2ME midlet, but the latter is more restricted on what it can do.
Quote:

Is not Java large and slow
Don't trust those who say that, it is no more true.
Quote:

so JSP would be preferred (to build the page "on the fly")?
Again, J2ME as nothing to do with web pages, nothing.
Moreover, JSP is something like a preprocessor that build java source code on the fly then compile the page to a servlet, so JSP is Java too. Development is faster and execution speed is as good as the one obtained with servlets.

Mufasa 11-16-2004 04:46 PM

Thank you for the information :)

When I mentioned "page", I was referring to a type of .java page: when creating java pages, they are static whereas the .java page (using JSP) is built "on the fly".

I was thinking that for a static page, it has to be downloaded in the person's browser. The browser would have to have enough room for whatever is being downloaded.

For the .jsp page, it is built on the fly - all the processing and resource hits would be on the server side and not on the client side as it would be for java.

jlliagre 11-17-2004 01:34 AM

Quote:

When I mentioned "page", I was referring to a type of .java page: when creating java pages, they are static whereas the .java page (using JSP) is built "on the fly".
OK, this is better described as java source files. The page term is usually associated with a web (i.e. HTML) page.

Quote:

I was thinking that for a static page, it has to be downloaded in the person's browser. The browser would have to have enough room for whatever is being downloaded.
This is not always true. Java source can represent Java applets that will be downloaded to the client's browser or Java servlets that will be executed by the server.
Applet size is seldom an issue nowadays, with the bandwidth available by xDSL users.
There is also a third technology, Java Web Start, that allows Java applications to be automatically downloaded and cached on the client side. This is overcoming many of the applet's limitations.

Quote:

For the .jsp page, it is built on the fly - all the processing and resource hits would be on the server side
Yup.
Quote:

and not on the client side as it would be for java.
See previous comment.


All times are GMT -5. The time now is 11:59 PM.