Dead Letter subscription creation


I have created Dead letter queue for the default broker in my IS.
How can i create dead letter subscription for a particular publishable document type.

I have gone through the documentation, what they have mentioned is

use {hint: DeadLetterOnly=true} hint in filters.

to specify in filters, we need to create a trigger(with Broker docType & Subscribing service).
i.e we have clients(subscriber) to receive data.
but, deadletter subscription purpose is, it has to store the docType when there are no subscribers.

So please give me your suggestions…


You have to write code based on Broker API documentation. Please see the below rough code, try the same and le us know your observations.

IDataCursor pipelineCursor = pipeline.getCursor();
String brokerServer = IDataUtil.getString( pipelineCursor, “brokerServer” );
String brokerName = IDataUtil.getString( pipelineCursor, “brokerName” );
String brokerClient = IDataUtil.getString( pipelineCursor, “brokerClient” );

/* Create a deadletter subscription for all event types*/



BrokerClient c = new BrokerClient(brokerServer
, brokerName
, brokerClient
,client group
, app name
, connection descriptor);


catch (BrokerException e)
throw new ServiceException(e);