Just figured out with help of tomcat
help resource
Scroll down the page to section
Adding Custom Resource Factories
1. Implement interface javax.naming.spi.ObjectFactory
2. create
quartz.properties file as shown in the above post (consider specifying additional properties as required by your app.)
3. In web.xml add resource ref
4. create context.xml in the project structure at location /webapps/META-INF.
When deployed tomcat will automatically create
<myWebApp>.xml in dir. \tomcat\conf\Catalina\localhost and the contents of context.xml will be copied into it.
Finally, perform lookup as