Hi Sanjeev, I understand what the spec mean and the reason behind such a restriction. My confusion is really about the common practice of doing xml parsing at the business layer such as use xml as a rule engine and the service session bean then check with the xml wrapper component for the related business rules.
According to the restrictions, the session bean shall not implement the xml wrapper instead of a plain java bean or helper class shall implment the xml wrapper. I guess the main restriction lies on the contract between ejb container and ejb beans. Outside this contract, file io is not a restriction. Am I correct? Thanks --- sanjeev verma <[EMAIL PROTECTED]> wrote: > Hi Ellwood, > > it is not as if the app server will not allow u to > do > io, it is just that the EJB spec says that the io > package should not be used inside EJB. The EJB spec > says: "the file system apis are not well suited for > business components to access data". io package does > not support transactions, for example. > > Refer to the wrox publications J2ee vol. 2 for > details. > > Best Regards > > Sanjeev > --- PiFen Ellwood <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I still don't quite understand how is the file io > > restriction works. If I use JDOM to parse an xml > > file, > > it's doing file io anyway. So how's the > restriction > > works? > > > > Thanks for any advices. > > > > > > > > ===== > > PiFen Ellwood > > > > __________________________________________________ > > Do You Yahoo!? > > Make a great connection at Yahoo! Personals. > > http://personals.yahoo.com > > > > > =========================================================================== > > 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". > > > > > __________________________________________________ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com > > =========================================================================== > 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". > ===== PiFen Ellwood __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com =========================================================================== 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".
