LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2004, 05:05 PM   #1
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Rep: Reputation: 15
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
 
Old 11-15-2004, 01:05 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
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
 
Old 11-15-2004, 01:38 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 11-15-2004, 01:21 PM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Ahh my mistake. I thought you meant serving jsp pages. Sorry

-twantrd
 
Old 11-15-2004, 02:19 PM   #5
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
Hello there - sorry - that was what I meant Java Server Pages (JSP) 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

Last edited by Mufasa; 11-15-2004 at 02:20 PM.
 
Old 11-15-2004, 03:16 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 11-15-2004, 03:56 PM   #7
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
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

Last edited by Mufasa; 11-15-2004 at 05:55 PM.
 
Old 11-15-2004, 06:17 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 11-16-2004, 04:46 PM   #9
Mufasa
Member
 
Registered: Nov 2004
Posts: 101

Original Poster
Rep: Reputation: 15
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.

Last edited by Mufasa; 11-16-2004 at 04:47 PM.
 
Old 11-17-2004, 01:34 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Palm's Serial Port with J2ME alejakun Programming 0 06-12-2005 11:40 AM
Apache/Tomcat : jsp = "No Host matches server name" ghow961 Linux - Networking 0 07-01-2004 06:20 PM
J2ME and MIDP 2.0 ashokumar.a Programming 3 04-25-2004 10:49 PM
J2ME and sim secprovider Programming 2 03-29-2004 09:15 PM
how to configure JSP server with redhat9.0 zhangwf Red Hat 0 03-18-2004 10:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration