Results 1 to 5 of 5
Thread: isolated task in java
- 09-03-2008, 04:04 PM #1
Member
- Join Date
- Jun 2008
- Posts
- 17
- Rep Power
- 0
isolated task in java
Hi,
I want to do a task in a separate thread in java where the task is completely isolated from the outside world and there is no way for it to access the outside world variables. How to enforce this restriction practically as the task is written by anyone and I am providing a wrapper around a task to prevent it from accessing outside world.
Is it something that can be done in java?
thanks,
samit
- 09-03-2008, 05:16 PM #2
Not sure what those are.access the outside world variables
What does that mean?to prevent it from accessing outside world.
If you can control the ClassLoader that the task uses, you can control what classes it can instantiate.
- 09-03-2008, 11:03 PM #3
Member
- Join Date
- Jun 2008
- Posts
- 17
- Rep Power
- 0
- 09-04-2008, 12:43 AM #4
To isolate the task, you could start it in another JVM. You would need a very tight sandbox to isolate the program from the world.
What is the purpose of this isolation?
Have you looked at the SecurityManager class?Last edited by Norm; 09-04-2008 at 03:12 AM.
- 09-07-2008, 08:54 PM #5
purpose?
The purpose of the isolation is of critical centrality in providing design studies. In general, for simple designs, all that is needful is to code carefull with stringent observation of code correctness. If it is a real security issue, then then you need to come in from a differerent window of ideas.
If possible, provide short - fabricated code snippets to model the design concern.
Is this a student or study project?Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Similar Threads
-
java : how to hide application icon from a task bar
By yogeshagashe in forum Advanced JavaReplies: 0Last Post: 03-12-2008, 01:05 PM -
Scheduling a task
By bugger in forum Advanced JavaReplies: 3Last Post: 12-04-2007, 12:32 PM -
Task Blocks 0.5
By johnt in forum Java SoftwareReplies: 0Last Post: 08-08-2007, 08:43 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks