/** * Create an instance of {@link CreatePullPoint } * */ public CreatePullPoint createCreatePullPoint() { return new CreatePullPoint(); }
public PullPoint create(String queueName) throws UnableToCreatePullPointFault { org.oasis_open.docs.wsn.b_2.CreatePullPoint request = new org.oasis_open.docs.wsn.b_2.CreatePullPoint(); request.getOtherAttributes().put(NotificationBroker.QNAME_PULLPOINT_QUEUE_NAME, queueName); CreatePullPointResponse response = createPullPoint.createPullPoint(request); return new PullPoint(response.getPullPoint()); } }
@Override protected String createPullPointName(CreatePullPoint createPullPointRequest) { String name = null; if (createPullPointRequest.getOtherAttributes().get( NotificationBroker.QNAME_PULLPOINT_QUEUE_NAME) != null) { //try use the sepcified pullpoint queue instead a generated one //so that we can reuse this durable pullpoint queue between the //broker restarts name = createPullPointRequest.getOtherAttributes().get( NotificationBroker.QNAME_PULLPOINT_QUEUE_NAME); } else { name = super.createPullPointName(createPullPointRequest); } // For JMS, avoid using dashes in the pullpoint name (which is also the queue name, // as it will lead to problems with some JMS providers name = name.replace("-", ""); return name; }
/** * Create an instance of {@link CreatePullPoint } * */ public CreatePullPoint createCreatePullPoint() { return new CreatePullPoint(); }
/** * Create an instance of {@link CreatePullPoint } * */ public CreatePullPoint createCreatePullPoint() { return new CreatePullPoint(); }
public PullPoint create() throws UnableToCreatePullPointFault { org.oasis_open.docs.wsn.b_2.CreatePullPoint request = new org.oasis_open.docs.wsn.b_2.CreatePullPoint(); CreatePullPointResponse response = createPullPoint.createPullPoint(request); return new PullPoint(response.getPullPoint()); }