Hi Rebecca,
by scanning you commits, I believe you might have forgotten to modify
the org.jboss.ws.common.management.AbstractServerConfigMBean which is
the interface defining what is exposed on JMX by the ServerConfig.
Cheers
Alessio
On 07/05/14 16:29, Rebecca Searls wrote:
Hi Jim,
This enhancement crosses 4 repos. I've implemented the getters and setters as
follows.
1 In repo jbossws/spi the interface file is
src/main/java/org/jboss/wsf/spi/management/ServerConfig.java
I added stmts
String getWebServicePath();
void setWebServicePath(String path);
2 In repo jbossws/container/wildfly80
I added impls of the ServerConfig methods to
server-integration/src/main/java/org/jboss/as/webservices/config/ServerConfigImpl.java
3 And these changes are mirrored in wildfly-next/webservices/server-integration
And I added the following test to
server-integration/src/test/java/org/jboss/as/webservices/config/ServerConfigImplTestCase.java
and that runs successfully.
internalTestSingleAttributeUpdate(new Callback() {
@Override
public void setAttribute(ServerConfig sc) throws Exception {
sc.setWebServicePath("MY/TEST/PATH");
}
});
4 In repo jbossws/common file
src/main/java/org/jboss/ws/common/management/AbstractServerConfig.java
has impls
public String getWebServicePath()
public void setWebServicePath(String path)
Finally there is an archive build hierarchy of these repos. I created SNAPSHOT
versions of these repos and updated the pom files. Here is the dep tree.
I've checked that I have the proper version ref.
+ wildfly-webservices:8.0.1.Final-SNAPSHOT
- jbossws-cxf
- jbossws-common
- jbossws-spi
+ jbossws-cxf
- jbossws-wildfly800-parent
- jbossws-common
- jbossws-spi
+ jbossws-wildfly800-parent
- jbossws-common
- jbossws-spi
+ jbossws-common
- jbossws-spi
I think I'm missing some ref specifically related to the JMX bean config.
I was able to back track the execution thread to
org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer
where it fails to find "WebServicePath", but I'm baffled as to what else
I'm
missing since "WebServiceHost" is found.
----- Original Message -----
> From: "Jim Ma" <ema(a)redhat.com>
> To: "Rebecca Searls" <rsearls(a)redhat.com>
> Cc: jbossws-dev(a)lists.jboss.org
> Sent: Wednesday, May 7, 2014 3:06:14 AM
> Subject: Re: [jbossws-dev] JXM bean, ServerConfig access question
>
> Did you add the getter and setter for the "WebServicePat" in ServerConfig
?
>
>
> On 05/07/2014 05:10 AM, Rebecca Searls wrote:
>>
>> I'm adding a new property to ServerConfig. I have confirmed that my sample
>> app works properly. I've hit a snag when adding a test to
>> (
https://svn.jboss.org/repos/jbossws/stack/cxf/branches/rsearls)
>>
modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2150/JBWS2150TestCaseForked.java
>> The exiting test updates a like property as follows
>>
>> Attribute attr = new Attribute("WebServiceHost", value);
>> getServer().setAttribute(SERVER_CONFIG_OBJECT_NAME, attr);
>>
>> On the server side
>> org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer is being
>> called.
>>
>> In JBWS2150TestCaseForked I am setting my property in a like manner.
>>
>> Attribute attr = new Attribute("WebServicePath", value);
>> getServer().setAttribute(SERVER_CONFIG_OBJECT_NAME, at
>>
>> However it fails, "WebServicePath" is not found.
>> This seems to be a JMX bean setup issues.
>>
>> Any advise as to how to resolve would be appreciated.
>>
>> _______________________________________________
>> jbossws-dev mailing list
>> jbossws-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/jbossws-dev
>
_______________________________________________
jbossws-dev mailing list
jbossws-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossws-dev