Creating Files from EJB

Discussions

EJB design: Creating Files from EJB

  1. Creating Files from EJB (4 messages)

    Hi,

    I've got a problem with one of the EJB restrictions. The EJB specification says, that an EJB must not use the java.io API. Of course this could be a security hole. But I have a problem where I need to create a file. Is there a way to do this? A general solution or a specific solution for the iPlanet AS would be fine.

    Thanks,
    Markus

    Threaded Messages (4)

  2. Creating Files from EJB[ Go to top ]

    Although the spec says you shouldn't, you can, or at least you can with WLS.

    How do your log files get written to from your beans?
  3. Creating Files from EJB[ Go to top ]

    Create an external application that can do that,register
    it in the JNDI, calling it through RMI or JMS.
  4. Creating Files from EJB[ Go to top ]

    How about writing the data into a database table that you can file. Then you can have another java program running outside the server, read the data from the database and write it out to a file.

    Why can't you just write your data to the database? Can you provide more details about your situation.
  5. Creating Files from EJB[ Go to top ]

    Hey ,as you are maintaining the error log fine and having that in your classpath . while mentioning over a Xml file you can have your data save and later on can retrive it