I coded an MBean for handling database connection and deployed it in this way:
<mbean code="mamt.db.dbconnector.DBConnector" name="adam_module:service=OracleConnector" xmbean-dd="">
Open DB connection
I put JDBC Oracle driver - classes12.jar in server/<my_conf>/lib directory.
But when I try to invoke method openConnection I got ClassNotFountException: No ClassLoaders found for: oracle.jdbc.driver.OracleDriver.
when deploying the MBean without persistence it works. what's the problem?
I don't see how/why persistence affects your deployment. Do you mean deploying the MBean as an XMBean has that effect? Put you descriptor inside "code" tags so that is shows correctly.