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 . These examples are extracted from open source projects. 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 Project: cxf   File: WorkQueueImplMBeanWrapper.java    License: 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 Project: cxf   File: RMUtils.java    License: 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
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
	return new SpringBus();
}
 
Example 4
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 5
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 6
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 7
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 8
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 9
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 10
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}
 
Example 11
Source Project: tutorials   File: ServiceConfiguration.java    License: MIT License 4 votes vote down vote up
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
    return new SpringBus();
}