• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File Access from EJB running under WebSphere 5.0.2

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I got to access the local file system from EJB running under Websphere 5.0.2.

I know to accomplish the above we got to use any of the following approaches

1. JCA Adaptor
2. Alternative is to use an RDBMS like a file system - and store/retrieve files as BLOBS

Can anybody advice me how can I achieve the same in WebSphere 5.0.2 as I dont see any JCA Adaptor in it or is there any other way I can access the local file system without the issue of multiple thread accessing the single file kind of thread handling.

Any suggestion or idea or alternative most welcome.

Thank you for your time.

-Ram
 
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ramadoss:
Hi,
I got to access the local file system from EJB running under Websphere 5.0.2.

I know to accomplish the above we got to use any of the following approaches

1. JCA Adaptor
2. Alternative is to use an RDBMS like a file system - and store/retrieve files as BLOBS

Can anybody advice me how can I achieve the same in WebSphere 5.0.2 as I dont see any JCA Adaptor in it or is there any other way I can access the local file system without the issue of multiple thread accessing the single file kind of thread handling.

Any suggestion or idea or alternative most welcome.

Thank you for your time.

-Ram




A couple of things
1. IBM call JCA J2C
2. You'd have to write your own file based JCA resource adapter. Depending on the nature of the files, transactional attributes etc it could vary from easy to very hard. The JCA book by Atul Apte has sample code for a file based JCA resource adapter. That will start you on the easy side of things.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Steve,,
Thank you for your assistance

I'll look into it and see how can I impelement this.


Appreciate your help.

-Ram
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ramadoss,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

We request that display names be of the pattern FIRST_NAME+SPACE+LAST_NAME.

Thanks Pardner! Hope to see you 'round the Ranch!
 
reply
    Bookmark Topic Watch Topic
  • New Topic