Java Code Examples for org.apache.cxf.Bus#DEFAULT_BUS_ID

The following examples show how to use org.apache.cxf.Bus#DEFAULT_BUS_ID . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WorkQueueImplMBeanWrapper.java    From cxf with Apache License 2.0 6 votes vote down vote up
public WorkQueueImplMBeanWrapper(AutomaticWorkQueueImpl wq,
                                 WorkQueueManager mgr) {
    aWorkQueue = wq;

    //Use default domain name of server
    StringBuilder sb = new StringBuilder(ManagementConstants.DEFAULT_DOMAIN_NAME).append(':');
    if (!aWorkQueue.isShared()) {
        String busId = Bus.DEFAULT_BUS_ID;
        if (mgr instanceof WorkQueueManagerImpl) {
            busId = ((WorkQueueManagerImpl) mgr).getBus().getId();
        }
        sb  .append(ManagementConstants.BUS_ID_PROP).append('=').append(busId).append(',')
            .append(WorkQueueManagerImplMBeanWrapper.TYPE_VALUE).append('=')
            .append(WorkQueueManagerImplMBeanWrapper.NAME_VALUE).append(',');
    } else {
        sb.append(ManagementConstants.BUS_ID_PROP).append("=Shared,");
        //buffer.append(WorkQueueManagerImplMBeanWrapper.TYPE_VALUE).append("=Shared,");
    }
    sb  .append(ManagementConstants.TYPE_PROP).append('=').append(TYPE_VALUE).append(',')
        .append(ManagementConstants.NAME_PROP).append('=').append(aWorkQueue.getName()).append(',')
        // Added the instance id to make the ObjectName unique
        .append(ManagementConstants.INSTANCE_ID_PROP).append('=').append(aWorkQueue.hashCode());
    objectName = sb.toString();
}
 
Example 2
Source File: RMUtils.java    From cxf with Apache License 2.0 5 votes vote down vote up
public static String getEndpointIdentifier(Endpoint endpoint, Bus bus) {
    String busId = null;
    if (bus == null) {
        busId = Bus.DEFAULT_BUS_ID;
    } else {
        busId = bus.getId();
        // bus-ids of form cxfnnn or artifactid-cxfnnn must drop the variable part nnn
        Matcher m = GENERATED_BUS_ID_PATTERN.matcher(busId);
        if (m.find()) {
            busId = busId.substring(0, m.start() + Bus.DEFAULT_BUS_ID.length());
        }
    }
    return endpoint.getEndpointInfo().getService().getName() + "."
        + endpoint.getEndpointInfo().getName() + "@" + busId;
}
 
Example 3
Source File: CxfConfig.java    From open-capacity-platform with Apache License 2.0 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
	return new SpringBus();
}
 
Example 4
Source File: WebServiceConfiguration.java    From tutorial-soap-spring-boot-cxf with MIT License 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 5
Source File: WebServiceConfiguration.java    From tutorial-soap-spring-boot-cxf with MIT License 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 6
Source File: SimpleBootCxfApplication.java    From tutorial-soap-spring-boot-cxf with MIT License 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 7
Source File: SimpleBootCxfApplication.java    From tutorial-soap-spring-boot-cxf with MIT License 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 8
Source File: WebServiceConfiguration.java    From tutorial-soap-spring-boot-cxf with MIT License 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 9
Source File: WebServiceConfiguration.java    From tutorial-soap-spring-boot-cxf with MIT License 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 10
Source File: WebServiceConfiguration.java    From tutorial-soap-spring-boot-cxf with MIT License 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 11
Source File: ServiceConfiguration.java    From tutorials with MIT License 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}