Solved

Is This Possible?

Posted on 2004-09-10
1
279 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 45
Java JRE greater than 1.6 5 63
arguments to jar 5 27
Cisco ASA: Java web start no go, asdm launcher no go 3 10
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 learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

832 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