Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > named pipes

Reply
Thread Tools

named pipes

 
 
Andrey Romanenko
Guest
Posts: n/a
 
      09-30-2004
Hello to all,

I want to implement an exe module under w2k/win32 the purpose of module
to run jvm with java application as separate process and have provide
LOG capability to java program. This would allow write LOG by separate
process (more safe and secure) and run java application with different
user credentials than executed exe module. The question is: which
process communication mechanism should I use to gain maximum
performance? Is there way to use named pipes with java?

any comments appreciated,
thanks,
Andrey

 
Reply With Quote
 
 
 
 
Gordon Beaton
Guest
Posts: n/a
 
      09-30-2004
On Thu, 30 Sep 2004 17:35:54 +0300, Andrey Romanenko wrote:
> The question is: which process communication mechanism should I use
> to gain maximum performance?


I think you'll find that a socket provides sufficient performance for
virtually any logging requirements, especially when server and clients
run on the same host. A socket has the added advantage over named
pipes that you can run the log server on a separate host from the
clients that will use it, and you can easily support multiple clients
simultaneously.

> Is there way to use named pipes with java?


Named pipes appear as files in the filesystem, and can be opened and
read or written using the same mechanisms as ordinary files (e.g.
FileInputStream, etc). It's true on Unix, and I have heard anecdotal
evidence of the same on windows.

There are existing logging libraries for Java that already do what you
are planning to implement.

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
 
Reply With Quote
 
 
 
 
Andrey Romanenko
Guest
Posts: n/a
 
      10-04-2004
thanks for answer,

Gordon Beaton wrote:
> There are existing logging libraries for Java that already do what you
> are planning to implement.


what exactly do you mean?

thanks,

Andrey

 
Reply With Quote
 
Gordon Beaton
Guest
Posts: n/a
 
      10-04-2004
On Mon, 04 Oct 2004 11:00:45 +0300, Andrey Romanenko wrote:
> thanks for answer,
>
> Gordon Beaton wrote:
>> There are existing logging libraries for Java that already do what you
>> are planning to implement.

>
> what exactly do you mean?


For example, log4j lets you specify any of a number of different log
targets including "console, files, remote socket servers, JMS, NT
Event Loggers and remote Unix Syslog Daemons". I believe that the
stuff in java.util.logging also lets you specify a log target in a
similar manner.

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP .NET Session State : Named Pipes Provider, error: 40 J.G. ASP .Net 0 03-09-2006 08:30 PM
"Named Pipes Provider: The network path was not found" error xz ASP .Net 0 01-20-2005 05:05 AM
Too many open named pipes in a java process... Firdousi Farozan Java 2 01-05-2005 01:59 PM
IPC Mechanism Named pipes or Windows messages or sthg else ? piyush ASP .Net 0 07-14-2004 02:41 PM
Using named pipes in Java maximax Java 2 02-19-2004 01:00 PM



Advertisments