Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Access from EJB running under WebSphere 5.0.2

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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
 
Steve Wink
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic