After configuring the initial Diameter service, you are ready to create a Diameter resource. This section provides instructions for creating a resource for Diameter by using the Communications Server Admin Console.
If you want to work from the command line, you can use the create-admin-object(1) command. Be sure to set the required properties as described in this procedure. For an example command, see Example 2–1.
The Diameter service, a Diameter application, and a Diameter peer must be created before a Diameter resource can be created.
Open the Admin Console.
Navigate to Resources->Connectors->Admin Object Resource.
Click New.
Select the sundiameter resource adapter.
Select one of the following connection definitions:
For Sh Application
com.sun.diameter.application.sh.api.UserProfileServer
For Online Charging Application
com.sun.diameter.application.credit.ro.api.RoChargingFactory
For Offline Charging Application
com.sun.diameter.application.credit.rf.api.RfChargingFactory
Enter a JNDI name of your choice and click Next.
The Additional Properties section displays the following Diameter peer properties:
PeerId — The ID of the peer
Host — Host name or IP address of the peer
Port — Port number of the peer
Realm — Peer realm
SecondaryPeerId — ID of peer to be used when the primary peer is not available
Set PeerId or Host-Port-Realm (others are optional).
The Host-Port-Realm combination is used to identify unknown peers that are accepted by the Diameter stack.
Configure the PeerId property.
Specify the peer ID used when creating the peer, such as PeerId: peer_1
Click Finish.
This example creates a Diameter administered object with JNDI name rf_so.
asadmin> create-admin-object --raname sundiameter --target server --property PeerId=charging-peer --restype com.sun.diameter.application.credit. rf.api.RfChargingFactory diameter/rf_ao Command create-admin-object executed successfully. |