# Regarding Broker JMS provier

**URL:** <https://techcommunity.softwareag.com/t/regarding-broker-jms-provier/125953>\
**Category:** Feedback & ideas\
**Tags:** Discussions-on-this-Forum-System, New-User-Welcome-and-Introductions\
**Created:** [May 18, 2011, 1:14pm UTC](https://techcommunity.softwareag.com/t/regarding-broker-jms-provier/125953 "2011-05-18T13:14:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohitalt](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@mohitalt](https://techcommunity.softwareag.com/u/mohitalt)\
**Post date:** [May 18, 2011, 1:14pm UTC](https://techcommunity.softwareag.com/t/regarding-broker-jms-provier/125953/1 "2011-05-18T13:14:03Z")

</div>

I want to know how we can create document type on broker?  
I think we should write some java codes. can someone help me regarding that?🙂

---

<div class="post-metadata">

**Author:** ![amolchauhan](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@amolchauhan](https://techcommunity.softwareag.com/u/amolchauhan)\
**Post date:** [May 18, 2011, 5:43pm UTC](https://techcommunity.softwareag.com/t/regarding-broker-jms-provier/125953/2 "2011-05-18T17:43:00Z")

</div>

Mohit,

I checked the Broker\_Java\_Client\_API\_Reference and IData API reference but could not find methods for the following.

1. How to make IData publishable.
2. doc synchronization which will sync doc to the broker.

## If you want to publish any document available on broker using java service here is the code.

## IDataCursor pipelineCursor = pipeline.getCursor(); try{ BrokerClient client = new BrokerClient(“localhost:6849”, “Broker #1”, null, “IntegrationServer”, “TestClient”,null ); BrokerEvent document = new BrokerEvent(client,“wm::is::Test::Practice::javaServices::pubdoc”); document.setStringField(“name”, “A”); document.setStringField(“age”, “25”); client.publish(document); } catch(Exception e) { IDataUtil.put( pipelineCursor, “error”, e.toString() ); } pipelineCursor.destroy();

Please import COM.activesw.API.client.\* in shared tab.

Regards,  
Amol.
