Thank you very much for your answer, Adrian.

Well, I need an example.  Anyone knows where I can find it?
Please help!

Anyway, I need to use java.io.File operations! How is it possible to make an ejb 
do the upload of files, if it throws an exception?! 
By the way I do have an ejb that perform operations on the file system, and I 
have no security exceptions, and I also have installed the security manager. So 
why didn't I get the exception?



>X-Originating-IP: [195.212.13.8]
>From: "Adrian Brock" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Cc: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] Transaction management
>Date: Fri, 25 Jan 2002 11:42:21 +0000
>Mime-Version: 1.0
>X-OriginalArrivalTime: 25 Jan 2002 11:42:21.0312 (UTC) 
FILETIME=[597C6800:01C1A595]
>
>Yes,
>
>You need to make the file access through a resource manager that
>understands transactions, in a similar way to database access.
>I'm not aware of an example of this, perhaps somebody else can
>knows a link?
>
>Also, technically according to the spec an ejb cannot
>use java.io.File operations. Running according to the spec's
>security you would get a security exception.
>JBoss by default doesn't run with a security manager installed.
>
>Regards,
>Adrian
>
>
>>From: Andrea Cervellati <[EMAIL PROTECTED]>
>>Reply-To: Andrea Cervellati <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED]
>>Subject: [JBoss-user] Transaction management
>>Date: Fri, 25 Jan 2002 11:41:27 +0100 (MET)
>>
>>Hi,
>>
>>I have a web app that manages the uploading and downloading of files.
>>
>>I use a database to store some informations related to each file, such as
>>descriptions and an index for categories.
>>
>>So I have some EJBs with methods for udate, insert and delete files in the 
>>file
>>system and related informations in the database.
>>
>>If an exception occurs while a method is executing, the jboss transaction
>>management provides the rollback on the database, but not in the file 
>>system.
>>Why?
>>Isn't the file system an EIS resource too?
>>
>>Is it possible to make jboss handle transactions both for the operations on
>>database and for the ones on the file system?
>>
>>Thanks
>>
>>Bye
>>
>>
>>_______________________________________________
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
>
>_________________________________________________________________
>Join the world�s largest e-mail service with MSN Hotmail. 
>http://www.hotmail.com
>


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to