I would like to run the objectdatase db4o with IT Mill. Therefore I’ve configured the web.xml and added a listener to tomcat (5.5). Goal is, to open and close the database with tomcat.
The db4o tutorial says, that the following code will connect to the database.
Problem is, the example runs in a class witch extends from HttpServlet. In my init() function of the ITMill-Application-Class, I don’t have access to the getServletContext() Method… do you have idea to get this example running?
this time I would like to open a PDF as MIME Type in the browser. But I’m not getting the ServletOutputStream…
ServletOutputStream out = res.getOutputStream();