Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Peter Merrylees
There is an alternative strategy which allows you to run as any user and bind to restricted ports. This can be done using authbind. Authbind works with the JVM using native threads and requires no native code. It allows quite a lot of control over which ports can be bound. http://www.debian.org/P

Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Nathan Meyers
On Thu, Sep 14, 2000 at 09:17:16PM +0530, Santosh Dawara wrote: > I would like to add some more info ... > > I finally came around to writing the threads for each session that > the Pop Server will handle, I tested it and despite 'x' sessions > spawned, 'ps' would show just one process in the l

Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Joi Ellis
Juergen Kreileder wrote: > > > "Nathan" == Nathan Meyers <[EMAIL PROTECTED]> writes: > > Nathan> If using green threads solves the problem, then you > Nathan> probably didn't really have a problem. All those > Nathan> "processes" are really threads, and they should all share >

Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Santosh Dawara
I would like to add some more info ... I finally came around to writing the threads for each session that the Pop Server will handle, I tested it and despite 'x' sessions spawned, 'ps' would show just one process in the list. But this was when I used the green option. However, when I used -nat

Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Nathan Meyers
On Thu, Sep 14, 2000 at 04:31:19PM +0200, Juergen Kreileder wrote: > > "Nathan" == Nathan Meyers <[EMAIL PROTECTED]> writes: > > Nathan> If using green threads solves the problem, then you > Nathan> probably didn't really have a problem. All those > Nathan> "processes" are really

Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Juergen Kreileder
> "Nathan" == Nathan Meyers <[EMAIL PROTECTED]> writes: Nathan> If using green threads solves the problem, then you Nathan> probably didn't really have a problem. All those Nathan> "processes" are really threads, and they should all share Nathan> the same privileges, despite w

Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Nathan Meyers
Santosh Dawara wrote: > I say "# java HelloWorld as root I then run ps uax | grep javadir" > > root 25181 98.7 1.4 20840 3708 pts/0R13:33 1:02 > /javadir/sun/jd > root 25205 0.0 1.4 20840 3708 pts/0S13:33 0:00 > /javadir/sun/jd > root 25206 0.0 1.4 20840 3708 pts/0S

Re: Solved - Writing A Java Pop Server for Linux

2000-09-14 Thread Santosh Dawara
I say "# java HelloWorld as root I then run ps uax | grep javadir" root 25181 98.7 1.4 20840 3708 pts/0R13:33 1:02 /javadir/sun/jd root 25205 0.0 1.4 20840 3708 pts/0S13:33 0:00 /javadir/sun/jd root 25206 0.0 1.4 20840 3708 pts/0S13:33 0:00 /javadir/sun/jd root

Re: Writing A Java Pop Server for Linux

2000-09-14 Thread Avi Cherry
>Proper Linux Processes, If you said "java Helloworld" for the simplest >of >code , 'ps uax ' will tell you 4 new Processes were Spawned , I am >guessing they are for the JVMs Internal book keeping and for executing >the code They are not actually 'proper' linux processes. They are, in fact, th

Re: Writing A Java Pop Server for Linux

2000-09-14 Thread Joi Ellis
On Thu, 14 Sep 2000, Santosh Dawara wrote: > Nathan Meyers wrote: > > > > You use 'forks' in quotes. Are they processes or threads? How were > > they created? > > Proper Linux Processes, If you said "java Helloworld" for the simplest > of > code , 'ps uax ' will tell you 4 new Processes were Sp

Re: Writing A Java Pop Server for Linux

2000-09-13 Thread Santosh Dawara
Nathan Meyers wrote: > > You use 'forks' in quotes. Are they processes or threads? How were > they created? Proper Linux Processes, If you said "java Helloworld" for the simplest of code , 'ps uax ' will tell you 4 new Processes were Spawned , I am guessing they are for the JVMs Internal book ke

Re: Writing A Java Pop Server for Linux

2000-09-13 Thread Peter Schuller
> I was worried about the entire JVM but I guess I will put this issue on > the backburner for a while, I'll let the script wait on the POp Server > and then > have the Server serve n connections & exit itself, the script can then > restart it. Why are you concerned with memory leaks at all? Sin

Re: Writing A Java Pop Server for Linux

2000-09-13 Thread Nathan Meyers
On Wed, Sep 13, 2000 at 05:55:58PM +0530, Santosh Dawara wrote: > Hi all, > > In my earlier post I wrote >> > > > 1> Bind to the System Port I want to listen on > > 2> Release Root Priveleges using JNI > > 3> Begin accepting Client Connections. > > > > I have reservations about the steps above

Re: Writing A Java Pop Server for Linux

2000-09-13 Thread Santosh Dawara
Hi all, In my earlier post I wrote >> > 1> Bind to the System Port I want to listen on > 2> Release Root Priveleges using JNI > 3> Begin accepting Client Connections. > > I have reservations about the steps above , will it really be as secure > as > a C application doing the same thing (ie beco

Re: Writing A Java Pop Server for Linux

2000-09-13 Thread Santosh Dawara
Hi Yavor and everybody else, Thank you for the detailed replies. Everybody advises writing a script to run the Pop Server, in more detail -> using SysV Script , nohup to dissasociate from the terminal. So heres the framework for the Java Code 1> Bind to the Pop Socket 2> Release Root Prive

Writing A Java Pop Server for Linux

2000-09-08 Thread Santosh Dawara
Hi all, Summary: I have a peculiar situation, briefly, I want to write a Daemon/Server in Java which will listen to the Pop port and service Pop requests from clients. Setup: -- I have a Redhat Linux 6 system, and I have jdk-1.1.8 on it. Details: I want the behaviour