Writing XML output from within EJB


XML & Web services: Writing XML output from within EJB

  1. Writing XML output from within EJB (1 messages)

    Can anyone advise me on a way if possible to write an xml output file from within an EJB session bean.

    Requirement: I’m performing an Oracle 10g database query that returns an XML resultset that I want to write to a file, As normal file I/O is forbidden in the EJB spec
    I find myself scratching for a solution, I’ve considered using a resource provider but as the I want to be able to specify the output file name programmatically I’m not sure that will work.
    Any assistance appreciated.
  2. User producer -consumer model to feed the ml data to the pure java class and let the Pure Java class do the IO in different thread outside of ejb tier.