Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Use of flat files in distributed architecture probs.  RSS feed

 
Vikas Kumar Sahu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guiess,

I am working in a module in distributed environment.
Its client is swing application.I have a one doubt and the doubt is -
I am making some flow chart sort of thing at client side and saving this work in
a flat file (java property file/xml file) at the server side.
Could n e 1 suggest me that saving flat file at the server side would work,
coz this file would share by multiple clients.And how locking facility j2e gives whilesomebody is modifing one file.

Thnax in advance -
Vikas Kumar
 
Grand Puba
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The spec staits:
An enterprise bean must not use the java.io package to attempt to access files and directories in the file system.
The file system APIs are not well-suited for business components to access data. Business components should use a resource manager API, such as JDBC, to store data.

What DB do you use? Can't you store the XML there?

Ciau,

Puba
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!