My team is currently in the process of repackaging Neo4j webadmin console to make it usable as a Glassfish standard JavaEE web application. We build that on top of neo4j-jca-connector.
We have already found a way to repackage the various web resources and serve them from our war. we now fight against the various REST endpoints.
Indeed, those endpoints all have their neo4j Database
injected as @Context
elements (see for example RestfulGraphDatabase constructor). We can access a Neo4J database through JNDI naming and @Resource injection. But, as we don't want to change any line of code of those REST resources, how can we inject the database in that JAX-RS resource ?
Can we do something in web.xml ?
Do we have to write a JAX-RS Application class ?