Solved

Is This Possible?

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now