Charging and Control Applications (MOSC)

MOSC Banner

External EDR Listener - MDB - JTA XA Transaction

edited May 28, 2010 1:58AM in Charging and Control Applications (MOSC) 1 commentAnswered
Hi,

I am trying to write external edr listener using MDB 3.0. I am trying to save CDRs in database, similar to OCSG EdrService. 

For this i am using JTA-XA transactions. But some how, database transactions are not being committed. Has anyone done this?

//MDB code

@MessageDriven(mappedName = "com.bea.wlcp.wlng.edr.EdrTopic")
public class EdrPersistenceListener implements MessageListener {
private EdrFilter edrFilter;
@PersistenceContext(name = "persistence/EdrPersistenceService")
private EntityManager em;
private MediationSink mediationSink;

public EdrPersistenceListener() throws Exception {
this.edrFilter = EdrFilterFactory.createDefaultFilterForCdr();
}

public void init() {
mediationSink = new DBSink(em);
}

public void onMessage(Message message) {
try {
if (message instanceof ObjectMessage) {
ObjectMessage messageObj = (ObjectMessage) message;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center