Oracle Server E10293-02 ユーザーズマニュアル
Programming Oracle Diameter Applications
B-1
B
Programming Oracle Diameter Applications
This appendix describes programming Oracle Diameter applications in the following
sections:
sections:
■
■
■
■
IP and Routes Configuration
Before a Java Diameter application is able to process messages exchanged with a
distant peer, the IP configuration and Diameter protocol-specific configuration have to
be done by the application as follows:
distant peer, the IP configuration and Diameter protocol-specific configuration have to
be done by the application as follows:
1.
Create a DiameterStack instance.
2.
Register the Diameter application to the Diameter stack.
3.
Create listening points to bind to local transport addresses.
4.
Configure routes and connect to Diameter peers.
Creating a Diameter Stack
An instance of the Diameter stack can be created as follows:
import oracle.sdp.diameter.*;
DiameterFactory myFactory;
DiameterStack myStack;
myFactory = DiameterFactory.getInstance();
myStack = myFactory.createDiameterStack(
"
realm.domain.com
"
,
"
server.realm.domain.com
"
,
null);
This code creates a Diameter stack for use by the local Diameter node in which Fully
Qualified Domain Name (FQDN) is server.realm.domain.com and Origin Realm
is realm.domain.net.
Qualified Domain Name (FQDN) is server.realm.domain.com and Origin Realm
is realm.domain.net.
Binding to Local Transport Addresses
When a Diameter application needs to listen for incoming connections on one or
several transport addresses, it has to create one or several instances of the
DiameterListeningPoint
several transport addresses, it has to create one or several instances of the
DiameterListeningPoint
interface: