Corporation Server User Manual

Diameter Application Example
Oracle Diameter Java APIs A-21
Figure A–9 ACR Reception
10.
Create a client diameter session, an instance of DiameterSession, by using the
method: createClientDiameterAcctSession().
11. Send the created Accounting-Request (ACR) myACR to the server side by using
the method: sendMessage().
12. Process an incoming Accounting-Request (ACR) message contained in the
received event by using the following method: accountingRequestReceived(event).
Create a server session from the received request. This session, on server side, can
be deleted just after sending the answer.
Accounting-Answer (ACA) The Accounting Answer is created as follows:
Figure A–10 Creating the Corresponding ACA
13.
Get an instance of the DiameterRfMessageFactory class
myDiameterRfMessageFactory by using the method:
getDiameterRfMessageFactory() on the server side.
14. Create an Accounting Answer for the server side, an instance of the
DiameterMessage class, by using the method: createAccountingAnswer().
All incoming messages are delivered to the user accounting application through
the DiameterRfListener interface.