|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.outbound.OutBoundSender
Publish actions as events to a Topic. Currently we are not handling the case when a JMS server is down. We rely on optimistic case and persume that JMS server is always up. In the next version, we will handle failover case.
Field Summary | |
static java.lang.String |
EVENT
event key that is published to Topic header. |
Constructor Summary | |
OutBoundSender()
Creates a new instance of OutBoundPublisher |
Method Summary | |
void |
initialize(java.lang.String topicName)
Initialize the OutBound Sender |
void |
initialize(java.lang.String connectionFactoryName,
java.lang.String topicName)
Initialize the OutBound Sender |
boolean |
isInTransactMode()
|
void |
release()
Release connections |
void |
send(java.lang.String eventType,
java.lang.String id,
EnterpriseObject eo)
Publish the eventType and its enterprise object information to a topic |
void |
send(java.lang.String eventType,
java.lang.String id,
EnterpriseObject enterpriseObj1,
EnterpriseObject enterpriseObj2)
Publish the eventType and two EnterpriseObject to a topic |
void |
send(java.lang.String eventType,
java.lang.String id,
MergeResult mresult)
Publish the eventType and two EnterpriseObject to a topic |
void |
setInTransactMode(boolean mInTransactMode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String EVENT
Constructor Detail |
public OutBoundSender()
Method Detail |
public void initialize(java.lang.String topicName) throws OutBoundException
OutBoundException
public void initialize(java.lang.String connectionFactoryName, java.lang.String topicName) throws OutBoundException
connectionFactoryName
- JNDI name of the topic connection factorytopicName
- JNDI name of the topic
OutBoundException
public boolean isInTransactMode()
public void release() throws OutBoundException
OutBoundException
public void send(java.lang.String eventType, java.lang.String id, EnterpriseObject eo) throws OutBoundException
eventType
- values are UPD, ADD, MRG, UNMRG, DEA, REAid
- the id
OutBoundException
public void send(java.lang.String eventType, java.lang.String id, EnterpriseObject enterpriseObj1, EnterpriseObject enterpriseObj2) throws OutBoundException
eventType
- values are UPD, ADD, MRG, UNMRG, DEA, REAid
- the identerpriseObj1
- first enterprise object to be stringified to xmlenterpriseObj2
- second enterprise object to be stringified to xml
and is sent to the topic.
OutBoundException
public void send(java.lang.String eventType, java.lang.String id, MergeResult mresult) throws OutBoundException
eventType
- values are UPD, ADD, MRG, UNMRG, DEA, REAid
- the idmresult
- Pairs of SBRs are extracted from mresult and is stringified to xml
and is sent to the topic.
OutBoundException
public void setInTransactMode(boolean mInTransactMode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.