Friends, I have updated the code that turns Xindice into a JMX service running in JBoss. I pulled everything together under a jboss dir under scratchpad instead of having it separated between test and the "normal src" dir as before with the hope that someone with rw could put it in to scratchpad. For those of you have not seen it before here's as quick howto:
JMX is a frameworks for service management and it is the core of the JBoss application server. The Xindice service consists of two parts one (XindiceService) starts and configures the database. The other part (XmlDbService) exposes the XML:DB api through the embedded mode. You build the service by running the "package.jmx.service" on the buildService.xml ant script in ...scratchpad/jboss. To deploy it just copy the ...scratchpad/jboss/dist/xindice.sar to the deploy dir in JBoss (e.g. $JBOSS_HOME/server/default/deploy) I've included a simple web app that uses the service. It is a jsp page that talks to a servlet that uses the XmlDbService. To build and deploy it run the package target in ...scratchpad/jboss/examples/servlet/build.xml and then copy the ...scratchpad/jboss/examples/servlet/dist/xml-xindice-servlet-example.war to the JBoss deploy dir. Use a web browser to go to http://localhost:8080/xml-xindice-servlet/index.jsp to try it out. If the code makes it into scratchpad I'll create an EJB usage example and type up some more documentation. I hope this could provide a useful example of how to use Xindice embedded which is something I've seen people ask about on the user list... Best regards, Per Nyfelt
XindiceJMX.jar
Description: application/jar
