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 7.5.0.0.0 and later
Information in this document applies to any platform.

Goal

On : 7.5.0.14.0 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 PortalOp.java class, jar

   public static final int BIL_OP_EM_CALL = 120000; in public class PortalOp.java

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 Infranet.properties

    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
    JAR_DIR=${PINDIR}/jars
    CLASSPATH=.$JAR_DIR/PortalOp.jar:$JAR_DIR/BIL_EM_Processor.jar:$JAR_DIR/js.jar:$JAR_DIR/pcm.jar:$JAR_DIR/pcmext.jar:$JAR_DIR/eai.jar:$JAR_DIR/xercesImpl.jar:$JAR_DIR/xmlParserAPIs.jar:$JAR_DIR/xml4j.jar:$JAR_DIR/oraclepki.jar:$JAR_DIR/osdt_cert.jar:$JAR_DIR/osdt_core.jar


ERROR:
----------

 

Solution

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
Goal
Solution
References


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