Solved

Is This Possible?

Posted on 2004-09-10
1
280 Views
Last Modified: 2010-03-31
Ola,

I am thinking of using Java for this application I wrote in C#. But before I am going to do that I want to know if sertain things are possible in Java.

1st. Is it possible to write my application once and it runs anywhere where the java virtual machine is installed? ( My app acts as a web server )

2nd. If the first is true then how does this relate to services ( windows service in win2000/XP and something similar on other OS's )

3rd. Is remoting possible? The ability for one app to excecute methods from objects/classes inside another app.

4th. Is it possible to write somekind of TcpListner that intercepts incomming tcp requests on port 80 and if that request meets some specific requirement store it somewhere. If the request does NOT meet a specific requirement pass it back to the process that normally would handle the request ( IIS, Apache or do nothing if nothing else is listening on port 80 )

5th. Would all this be really cross platform?

Regards
0
Comment
Question by:DaFou
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 12033040
1. technically yes
2. unrelated really, there are products available for running java app as a service
3. Yes, see RMI
4. If you are talking about dealing with TCP/IP at a low level then no you'd need to use JNI and native code to achieve that
5. as long as you don't write any platform specific code yes
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
more than one jdk and one jre 1 50
JavaFX TableView not displaying correctly 3 58
java example issue 3 23
learn programming 8 42
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question