views:

285

answers:

1

Hi All,

I need some direction with JMX and J2EE.

I am aware (after few weeks of research) that the JMX specification is missing as far as deployment is concerned. There are few vendor specific implementations for what I am looking for but none are cross vendor. I would like to automate the deployment of MBeans and registration with the Server. I need the server to load and register my MBeand when the application is deployed and remove when the application is un-deployed.

I develop with: NetBean 6.7.1, GlassFish 2.1, J2EE5, EJB3

More specific, I need a way to manage timer service runs. My application need to run different archiving agents and batch reporting. I was hoping the JMX will give me remote access to create and manage the timer services and enable the user to create his own schedule. If the JMX is auto registered on application deployment the user can immediately connect and manage the schedule. On the other hand, how can an EJB connect/access an MBean?

Many thanks in advance. Gadi.

+1  A: 
ewernli
Thank you ewernli, I appreciate the time you took to answer my question. Maybe you can suggest from your experience a way to manage/configure timer services in a flexible way so it is not hardcoded into the product? Many thanks, Gadi.
Gadi
Other options (1) use deployment descriptor with `env-entry` (2) use the database to store config info (3) use an external configuration file.
ewernli