create non blocking fifo file in java

Hi,
  IS there any way to create non blocking fifo(like a pipe file) file in java
prgeorge3383Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
What are you going to do with it?
0
prgeorge3383Author Commented:
i am planning to write the parse xml data in to a pipe file and have another process read from it and load to the tables
0
CEHJCommented:
Hmm that may not be suitable for queueing, depending on the xml. Why not process it consecutively as opposed to concurrently?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

prgeorge3383Author Commented:
will be parsing the xml data in toa pipe delimtted file and each record sperated by carriage return.....
loading in to tables is the slow part
0
mightyoneCommented:
must it be a file? which java version 1.5?

consider using queues instead....
0
CEHJCommented:
>>in toa pipe delimtted file

Why? Why not directly into the db?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WebstormCommented:
Hi prgeorge3383,

If you're using unix, you may use named pipe.
You can also use shell pipe :
   java -cp ... <yourclass> | ...

or use java.net.Socket
0
mrigankCommented:
You can do some thing like
a) the write process writes into different files, each file having a fixed number of xml parent elements. File names have their file numbers appended.
b) the parse process reads the already written files (based on last modified date or a number appended to the file name) .

The only latency here is the time when both the source and parse process vie for the same file, let the parse process wait, or write the file after a specified time elapses.
0
prgeorge3383Author Commented:
using mysql inmemory option now..... this seems quick and fast enough....
0
CEHJCommented:
:-)
0
mightyoneCommented:
lol
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.