It seems to me the whole hibernate deployer could be replaced by an  xmbean 
interceptor to the SARDeployer that checks in the init step if any of the 
specified MBeans is of type org.jboss.hibernate.jmx.Hibernate, in order to do 
the extra "HarUrl" call to it to complete the setup.

However, that means that we don't need the .har archives any more. Those will 
be ordinary .sar deployments with that extra capability.

Also, I don't quite understand why/how using JBossXB would help in this case. 
Currently the deployed MBean for hibernate looks like:


  | <mbean code="org.jboss.hibernate.jmx.Hibernate" 
name="jboss.har:service=Hibernate">
  | <attribute name="DatasourceName">java:/DefaultDS</attribute>
  | <attribute 
name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
  | <attribute name="Dialect">net.sf.hibernate.dialect.HSQLDialect</attribute>
  | <attribute 
name="CacheProviderClass">net.sf.hibernate.cache.HashtableCacheProvider</attribute>
  | <attribute name="Hbm2ddlAuto">create-drop</attribute>
  | </mbean>
  | 



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873318#3873318

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873318


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to