Re: [Concern-users] jmx integration
Brought to you by:
hengels,
leonchiver
|
From: Holger E. <he...@me...> - 2004-08-16 17:02:09
|
The j2ee demo build script is arranging jmx deployment on jboss now. Now, I'm quite satisfied with all the integration stuff .. some more tests, then it's time for a new release. I'm not sure, if we should call it 1.2 or 2.0 ? Holger Quoting Holger Engels <he...@me...>: > I did the jmx integration this weekend. Controllers can now be deployed as > MBeans. All controller methods are exposed and can thus be called from within > a > jmx console. For JBoss, there is a RMI proxy available. It is currently used > by > the (command line) client. > > For JBoss create a sar with the following layout: > > - engagement.sar > |-- META-INF > | |-- concern-process.xml > | `-- jboss-service.xml > `-- org > `-- concern > `-- test > `-- engagement > `-- engagement > |-- AdvertisedExternally.class > |-- AdvertisedInternally.class > |-- AllApplicationsDestroyed.class > |-- Close.class > |-- Closed.class > |-- DestroyApplicationIn.class > |-- DestroyApplicationOut.class > |-- EngagementLoader.class > |-- ExternalAdvertising.class > |-- InternalAdvertising.class > `-- TakeUpJobApplication.class > > The jboss-service.xml might look like this: > > <?xml version="1.0" encoding="UTF-8"?> > > <server> > > <mbean code="org.concern.controller.jmx.ControllerService" > name="jboss.concern:name=EngagementController"> > <depends>jboss:service=TransactionManager</depends> > <depends>jboss.jca:service=LocalTxCM,name=DefaultDS</depends> > > <attribute name="JndiName">java:controller/Engagement</attribute> > <attribute name="UserTransactionName">UserTransaction</attribute> > <attribute > name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute> > > <attribute name="Datasource">java:DefaultDS</attribute> > <attribute > name="Dialect">net.sf.hibernate.dialect.HSQLDialect</attribute> > <attribute > name="CacheProvider">net.sf.ehcache.hibernate.Provider</attribute> > > <attribute name="ShowSql">true</attribute> > <attribute name="HbmToDdlAuto">create</attribute> > </mbean> > > </server> > > This is: > > o a dependency on the TransactionManager and the DataSource > o a JNDI name > o hibernate configuration > > > I will add jmx deployment on jboss (and maybe tomcat) by option for the > j2ee-demo build scripts. > > > Holger Engels > (Dipl Inf Med) > > -- > Consultant, Architect, Developer > Mobile: +49 176 20119752 > > > ------------------------------------------------- > This mail sent through IMP: http://horde.org/imp/ > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Concern-users mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/concern-users > > Holger Engels (Dipl Inf Med) -- Consultant, Architect, Developer Mobile: +49 176 20119752 ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |