google-app-engineweb.xmlobjectifyservletcontextlistener

Example of registering classes for Objectify using ServletContextListener


I have read a couple of articles, including Objectify's documentation in Github, that the best practice on registering classes for Objectify purpose is to use ServletContextListener in web.xml. Unfortunately, I couldn't find any example for the Google App Engine (endpoint) scenario.

Does anyone have an example that I can follow?

Thanks!


Solution

  • The answer I am looking for is here: ...I already have the setup you suggested, however, it will occasionally give me the "class not registered error"