yes use MBeans for that,
the information is persisted in the XML files you give it.
take a look at the basic mbeans we ship with any default installation you can ship it as SAR, base XML you can even boot it on the network.
To deploy a service, package it like the example and drop the file in the deploy directory remove it when you are done
Thanks for your reply,
I had tried using the MBeans but no where in the documentation(3.0 quick start guide) did I find way to remotely access MBean.
I tried using the following bit of code to start off with:
javax.management.j2ee.ManagementHome home = (javax.management.j2ee.ManagementHome)context.lookup("ejb/mgmt/MEJB");
javax.management.j2ee.Management remote = (javax.management.j2ee.Management)home.create();
And whenever I try to run it I get the following error
java.lang.IllegalArgumentException: wrong number of arguments
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
Can anyone help me with the lookup and accessing part of the MBeans to bind data resources ?
Thanks for your time,