File Access from EJB running under WebSphere 5.0.2
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
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
Joined: May 13, 2002
Posts: 223
posted
0
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
Joined: Nov 22, 2008
Posts: 18944
posted
0
Hi Steve,, Thank you for your assistance
I'll look into it and see how can I impelement this.