-
1. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
jaikiran Nov 27, 2009 5:19 AM (in response to ramses)Which specific version of JBoss AS-5? I remember seeing some similar thread earlier, although i am not able to locate it now.
-
2. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
jaikiran Nov 27, 2009 5:26 AM (in response to ramses)Is this the notification you are talking about http://www.jboss.org/index.html?module=bb&op=viewtopic&t=150436
-
3. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
jaikiran Nov 27, 2009 5:28 AM (in response to ramses)"ramses" wrote:
2) The method getContextRoot() does not exist at WebMetaData.
The WebMetaData you are talking about is the JBoss specific class, isn't it? How and where are you using that class in your code? Any specific reason why you relied on the JBoss specific class? Maybe we can recommend some other way. -
4. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
ramses Nov 27, 2009 9:09 AM (in response to ramses)"jaikiran" wrote:
Which specific version of JBoss AS-5?
JBossAS 5.1.0.GA"jaikiran" wrote:
Is this the notification you are talking about http://www.jboss.org/index.html?module=bb&op=viewtopic&t=150436
No. The notification is from jboss.web:service=WebServer type is org.jboss.deployment.SubDeployer.init
The userdata of this notification are org.jboss.deployment.DeploymentInfo. A member of the DeploymentInfo is org.jboss.metadata.WebMetaData.
We use this to get infos from a war deployment (context root, env-entries, security roles) defined in web.xml
br Ramses -
5. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
jaikiran Nov 29, 2009 4:12 AM (in response to ramses)Looks like because of the changes to deployers in AS-5, the notifications are no longer generated. In AS-4.x, the deployers used to be supported by the SubDeployer which used to generate these notifications. However in AS-5, deployers are backed by the Virtual Deployer Framework and don't generate these notifications. Here's the other threads:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158120
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=160122
Would you like to open a JIRA for this https://jira.jboss.org/jira/browse/JBAS? If not, i'll create one tomorrow. -
6. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
alesj Nov 29, 2009 6:40 AM (in response to ramses)"jaikiran" wrote:
Would you like to open a JIRA for this https://jira.jboss.org/jira/browse/JBAS? If not, i'll create one tomorrow.
There is no sense in porting/bringing this back.
* JMX will become optional
* The old deployment API doesn't exist anymore
What used to be notification+listener combo,
can now simply be replaced by a plain deployer pojo.
You should re-write your listener to be a AS5/MC deployer.
If you need some help on how to do that, open a new MC user forum post. -
7. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
jaikiran Nov 29, 2009 7:23 AM (in response to ramses)"alesj" wrote:
There is no sense in porting/bringing this back.
* JMX will become optional
* The old deployment API doesn't exist anymore
What used to be notification+listener combo,
can now simply be replaced by a plain deployer pojo.
It need not be based on the old deployment API. However, IMO, there should be some mechanism through which the end user applications can rely on notification/events of applications being deployed."alesj" wrote:
You should re-write your listener to be a AS5/MC deployer.
IMO, i think this should be provided by AS (deployer framework) instead of each individual application developer (/end user) coming up with their own versions. Once it's available, i guess the end user can just switch it on/off by configuring the appropriate MC beans. Thoughts? -
8. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
alesj Nov 29, 2009 7:45 AM (in response to ramses)"jaikiran" wrote:
It need not be based on the old deployment API. However, IMO, there should be some mechanism through which the end user applications can rely on notification/events of applications being deployed.
There already exists such mechanism, it's called VDF. ;-)"jaikiran" wrote:
IMO, i think this should be provided by AS (deployer framework) instead of each individual application developer (/end user) coming up with their own versions. Once it's available, i guess the end user can just switch it on/off by configuring the appropriate MC beans. Thoughts?
Provide what?
Anything more exact/custom would be meaningless. -
9. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
jaikiran Nov 29, 2009 8:49 AM (in response to ramses)"alesj" wrote:
Provide what?
A callback which gets invoked when a deployment has been processed by all available deployers. I don't think we have that support right now, do we? -
10. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
alesj Nov 29, 2009 3:38 PM (in response to ramses)"jaikiran" wrote:
A callback which gets invoked when a deployment has been processed by all available deployers. I don't think we have that support right now, do we?
You could add a new deployment stage, after DeploymentStages.INSTALLED,
and have a deployer for that stage which would do what even final processing you like. -
11. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
ramses Dec 2, 2009 9:03 AM (in response to ramses)"alesj" wrote:
You should re-write your listener to be a AS5/MC deployer.
If you need some help on how to do that, open a new MC user forum post."alesj" wrote:
You could add a new deployment stage, after DeploymentStages.INSTALLED,
and have a deployer for that stage which would do what even final processing you like.
Sorry, but I need some initial hints, how I can do this. There are any examples, documents, links etc for this or similar purpose.
br Ramses -
12. Re: JBossAS 5.1.0.GA no WebServer JMX Notifications
alesj Dec 2, 2009 10:33 AM (in response to ramses)"ramses" wrote:
Sorry, but I need some initial hints, how I can do this. There are any examples, documents, links etc for this or similar purpose.
Check any of the numerous Deployers tests.
* http://anonsvn.jboss.org/repos/jbossas/projects/jboss-deployers/trunk