I am not sure whether the following fits your requirements. But consider using BLOB or CLOB fields in a database to store files and then access them using JDBC ~ranjith Nicholas wrote: The spec is quite specific in the prohibition of the use of java.io package classes in EJBs, due to platform differences and the lack of enterprise robustness.However, JNDI has a file system based implementation which works quite nicely in EJBs which might be a good work around for you. //Nicholas --- sven_van't_veer <[EMAIL PROTECTED]> wrote:Cindy, The EJB specification prohibits writing to files. EJB´s are transactional and clusterable objects. files can neither take part in transactions nor can the be written to in a cluster. Imagine you deploy yor bean in a cluster containing 10 boxes. you will never know which ejb will write to the file and on what box. sven -----Original Message----- From: Cindy hao [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 15, 2003 2:55 PM To: [EMAIL PROTECTED] Subject: Re: File I/O in EJBs Saravana, Thanks for responding to my email. You are suggesting that EJBs can access file I/O indirectly through some helper classes. But my understanding is that EJB can not access file I/O either directly or indirectly. Cindy Saravana wrote:Hi, In EJB's to access a file as for myknowledge, use a wrapper classand implement Streams in that. Return a Stringfrom that method and parsethe String using the parser, or do the processing inthe class it self. Hopethis solves ur problem. Regards Saravana ----- Original Message ----- From: "Cindy hao" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 15, 2003 8:30 PM Subject: File I/O in EJBsHi, Since file I/O is prohibited in EJBs, how toaccess large and dynamicgenerated files from EJBs? Would you pleaserecommend an approach orapproaches with the best Qos? Thanks in advance, Cindy Hao===========================================================================To unsubscribe, send email to[EMAIL PROTECTED] and include in thebodyof the message "signoff EJB-INTEREST". Forgeneral help, send email to[EMAIL PROTECTED] and include in the body ofthe message "help".===========================================================================To unsubscribe, send email to[EMAIL PROTECTED] and include in the bodyof the message "signoff EJB-INTEREST". Forgeneral help, send email to[EMAIL PROTECTED] and include in the body ofthe message "help".===========================================================================To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".==========================================================================Tounsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".===== Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". |
- File I/O in EJBs Cindy hao
- Re: File I/O in EJBs Saravana
- Re: File I/O in EJBs Cindy hao
- Re: File I/O in EJBs Saravana
- Re: File I/O in EJBs Joe Sam Shirah
- Re: File I/O in EJBs sven van't veer
- Re: File I/O in EJBs Nicholas
- Websphere question Ranjith Chandran
- Websphere question Maya menon
- Re: File I/O in EJBs Alex Paransky