Q: Whenever I try to create one, the
constructor of GenericDO tries to get the DatabaseManager using the static method
Enhydra.getDatabaseManager(). But this returns null because the JSP's thread is not
registered with the Enydra class. What should I do? Answer (by Peter Darrah, Lutris
Support):
You could either register an Enhydra application with the thread in the JSP (see
javadoc for the Enhydra class) or you could change how DODS generated code gets its
reference to the database manager.
You could do a hack like use a static member of your own class, or you could do something
really stylish like a JNDI implementation. In either case, you would change the DODS
template to reflect how you get the reference.
See also Using DODS-generated classes in
non-Enhydra applications. |