-
1. Re: Is there a way to force HDScanner to scan immediatly ? (
jaikiran Nov 27, 2009 5:17 AM (in response to pfm)"pfm" wrote:
In jboss 4.0.5 there was a MBean called deploymentScanner that we could use directly.
( http://www.jboss.org/community/wiki/ManageTheDeploymentScannerWithTheJMXConsole )
After looking at that wiki, i am wondering what the current 5.x version lacks. Are you talking about point#11 in that wiki? If yes, then i believe it should be possible to do something similar in AS-5 (although i'll have to look through the details).
-
2. Re: Is there a way to force HDScanner to scan immediatly ? (
pfm Nov 27, 2009 5:26 AM (in response to pfm)That's exactly the point 11.
The problem is that I didn't find anything similar to that in jboss AS 5.0.1 -
3. Re: Is there a way to force HDScanner to scan immediatly ? (
jaikiran Nov 27, 2009 5:36 AM (in response to pfm)Hmm, with AS-5 and ProfileService APIs, i think it's the responsibility of the ProfileServiceDeployer (MC bean) to expose this API. Programatically, i think it's possible, but to be able to do it from JMX console, this MC bean needs to be exposed as a MBean which i don't see being done currently.
P.S: By the way, 5.1.0 is the latest stable version and i believe there have been some changes around ProfileService in this version. So you might want to upgrade to this new version (although it probably won't solve your issue). -
4. Re: Is there a way to force HDScanner to scan immediatly ? (
alesj Nov 27, 2009 5:46 AM (in response to pfm)You can use this:
* http://anonsvn.jboss.org/repos/jbossas/trunk/system/src/main/java/org/jboss/system/tools/DeploymentScannerMBean.java
JBoss Tools uses it.
For more details have a look at the code, it should be simple enough. -
5. Re: Is there a way to force HDScanner to scan immediatly ? (
jaikiran Nov 27, 2009 5:51 AM (in response to pfm)Isn't that the one which bypasses ProfileService (and hence is deprecated)? I agree, that it's going to work in the current released version of AS.
-
6. Re: Is there a way to force HDScanner to scan immediatly ? (
alesj Nov 27, 2009 6:04 AM (in response to pfm)"jaikiran" wrote:
Isn't that the one which bypasses ProfileService
No.
This one *does* use the PS."jaikiran" wrote:
(and hence is deprecated)?
Deprecated?
I do think we need something simpler, e.g. REST interface,
but this one still looks legit + has backing tests. -
7. Re: Is there a way to force HDScanner to scan immediatly ? (
alesj Nov 27, 2009 6:06 AM (in response to pfm)I think you're referring to the old DSMBean.
Same simple class name, diff impl. :-) -
8. Re: Is there a way to force HDScanner to scan immediatly ? (
pfm Nov 27, 2009 6:16 AM (in response to pfm)I saw an implementation, using the profileService here, for 5.x
http://www.jboss.org/community/wiki/ProfileServiceDeploymentManagerin5x
(for 5.0.1 is a bit different, the methods contain DeploymentPhase as well, as described there)
But still, I didn't manage to get it running.
And as in 4.0.5 there was an MBean that could be called to that action, I was wondering if there's something like that in 5.0.1.
Currently my project is attached to 5.0.1. (That's why I insist in the version), but if 5.1 has a solution to this problem, we might change that. For now, I haven't seen a way of doing that, in either version. -
9. Re: Is there a way to force HDScanner to scan immediatly ? (
jaikiran Nov 27, 2009 6:24 AM (in response to pfm)"alesj" wrote:
I think you're referring to the old DSMBean.
Same simple class name, diff impl. :-)
Ah, yes! :)