Hi, I have this reference in the composite file and works fine
<reference name="AdminAccessService"
promote="AdminAccessServiceComponent/gwAdminAccess"
requires="authentication">
<interface.java
interface="com.ptb.gwaccess.servicecomponents.AdminAccess"/>
<binding.ws uri="http://192.168.1.254:8085/gwadmin"/>
</reference>
But I need to change the binding ws uri in runtime. I am trying to do this:
List<ComponentReference> references =
scaDomain.getComponentManager().getComponent("AdminAccessServiceComponent").getReferences();
/* Setting the service url for binding */
for (ComponentReference ref : references) {
if (ref.getName().equals("AdminAccessService")) {
for (Binding b : ref.getBindings()) {
b.setURI(url+name);
}
}
}