My Oracle Support Banner

How to Call EM Java Implementation From C Opcode (Doc ID 2162065.1)

Last updated on JUNE 23, 2022

Applies to:

Oracle Communications Billing and Revenue Management - Version and later
Information in this document applies to any platform.


On : version, Rating

There were BAD_OPCODE error when the java opcode (BIL_OP_EM_CALL) was invoked by the C opcode (BIL_OP_RATE_SAMPLE_OPA_TEST).

Here are the steps:

1) Create opcode java opcode using js.jar and by extending API JSOpcodeIntf as below and then build BILBillingEmController.jar

    public class BILBillingEmController implements JSOpcodeIntf { Override
    public FList opcode(JSServerContext arg0, int arg1, int arg2, FList arg3) throws EBufException {
2) Include the custom java opcode (name-number mapping) in class, jar

   public static final int BIL_OP_EM_CALL = 120000; in public class

3) Include opcode name-number mapping in custom_opcodes.h header file

4) Make entry of em_pointer and em_group in cm/pin.conf for this custom opcode

    - cm em_group opa_em BIL_OP_EM_CALL
    - cm em_pointer opa_em ip machine1 12345

5) map the custom opcode as in

    provided 12000=com.bil.BILBillingEmController

6) Write script for start and stop of this EM java server

    CLASSPATH  set like this,
    # jar files are located




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.