That's another discussion, in fact JBoss support (for the moment?) files
manipulation, and it doesn't crash.
Try to imagine any other resource instead of files..

SAINT-MARTIN Cecile
[EMAIL PROTECTED]

> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Dain
> Sundstrom
> Envoyé : lundi 16 juillet 2001 17:10
> À : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] Entity and session bean
>
>
> EJB 1.1 Spec Section 18.1.2 item 3:
>
> An enterprise bean must not use the java.io package to attempt to access
> files and directories in the file system.
>
> Your code will not run on any EJB server, and likely crash most
> EJB servers.
>
> -dain
>
> ----- Original Message -----
> From: "Saint-Martin Cecile" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Monday, July 16, 2001 4:47 AM
> Subject: [JBoss-user] Entity and session bean
>
>
> > Hi,
> >
> > I have a question about entity and session bean.
> >
> > We have
> > - a CMP entity EA, mapped to a table, primarey key is a unique id ID.
> > - a stateless session bean SB, that execute a treatment, called by EA on
> > method execute().
> > - a client that creates an instance of EA, and call execute()
> method : EA
> > instance call SB.
> > Creation of EA instance and execute() call are made in a transaction in
> the
> > client code (which is too a session bean).
> >
> > The problem is that in the treatment of SB, we access to a file
> whose name
> > is EA's ID.
> > On execution we have concurrence access to this file, and we don't
> > understand how it can happen.
> > Is EA's call to SB not really sequential?
> >
> >
> > SAINT-MARTIN Cecile
> > [EMAIL PROTECTED]
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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

Reply via email to