[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

servlets trouble RemoteDatabase



Hi ,

i am trying to incorporate the XML sample into a servlet.
i have the folowing problem i can create a RemoteDatabase varialbe
but i can't initialise it (eq db = new RemoteDatabase()).
i am running ozone 0.3.2
het is a sample of the code:

import org.w3c.dom.*;
import org.ozoneDB.*;
import org.ozoneDB.xml.util.*;

public class XMLServer
    extends HttpServlet
{
    RemoteDatabase  database ;
    public void init(ServletConfig config) 
	throws ServletException
    {
	database = new RemoteDatabase();
    }
}

the strange thing is that in the ozone source 0.4-dev4 
the Construtor does nothing.
if i remove the new RemoteDatabase(); but leave 
 RemoteDatabase  database the  servlet wil work

could someone help?