aspose file tools*
The moose likes Websphere and the fly likes File Access from EJB  running under WebSphere 5.0.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "File Access from EJB  running under WebSphere 5.0.2" Watch "File Access from EJB  running under WebSphere 5.0.2" New topic
Author

File Access from EJB running under WebSphere 5.0.2

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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
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
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

Joined: Dec 10, 2001
Posts: 7023
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!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File Access from EJB running under WebSphere 5.0.2