Package org.omg.IOP

Examples of org.omg.IOP.Encoding


        config = orb.getConfiguration();
        logger = config.getLogger("jacorb.SAS.IOR");

        try
        {
            Encoding encoding =
                new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 0);

            CodecFactory codec_factory =
                (CodecFactory)orb.resolve_initial_references("CodecFactory");

            codec = codec_factory.create_codec(encoding);
View Full Code Here


            Logger logger =
              ((org.jacorb.orb.ORB)orb).getConfiguration()
                                       .getLogger("jacorb.tx_service");
            slot_id = info.allocate_slot_id();
           
            Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
                                             (byte) 1, (byte) 0);
            Codec codec = info.codec_factory().create_codec(encoding);
           
            TransactionCurrentImpl ts_current = new TransactionCurrentImpl(orb, slot_id);
            info.register_initial_reference("TransactionCurrent", ts_current);
View Full Code Here

    public SASClientInterceptor(ORBInitInfo info)
        throws UnknownEncoding, ConfigurationException
    {
        name = DEFAULT_NAME;
        Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 0);
        codec = info.codec_factory().create_codec(encoding);

        org.jacorb.orb.ORB orb =
            ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl)info).getORB ();
        configure( orb.getConfiguration());
View Full Code Here

    public SASTargetInterceptor(ORBInitInfo info)
        throws UnknownEncoding, ConfigurationException
    {
        sasReplySlotID = info.allocate_slot_id();
        sasContextsCubby = org.jacorb.orb.giop.GIOPConnection.allocate_cubby_id();
        Encoding encoding =
            new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 0);
        codec =
            info.codec_factory().create_codec(encoding);

        orb = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl)info).getORB ();
        configure( orb.getConfiguration());
View Full Code Here

            {
                System.err.println("No Tracing Service, cannot register tracer interceptor!");
                return;
            }

            Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
                                             (byte) 1, (byte) 0);
            Codec codec = info.codec_factory().create_codec(encoding);

            ClientTraceInterceptor interceptor =
                new ClientTraceInterceptor(codec, slot_id , tracer);
View Full Code Here

        Codec codec = null;
        try {
            codec = info.codec_factory()
                    .create_codec(
                            new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1,
                                         (byte) 2));
        }
        catch (UnknownEncoding ex) {
            log.error("Could not get codec: ", ex);
            return;
View Full Code Here

    public static void setORB(ORB orb) throws UserException {
        if (Util.orb == null) {
            Util.orb = orb;
            CodecFactory factory = (CodecFactory) Util.orb.resolve_initial_references("CodecFactory");
            codec = factory.create_codec(new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 2));
        }
    }
View Full Code Here

    public static void setORB(ORB orb) throws UserException {
        if (Util.orb == null) {
            Util.orb = orb;
            CodecFactory factory = (CodecFactory) Util.orb.resolve_initial_references("CodecFactory");
            codec = factory.create_codec(new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 2));
        }
    }
View Full Code Here

public class RMIInitializer extends LocalObject implements ORBInitializer {
    static final Logger logger = Logger.getLogger(RMIInitializer.class
            .getName());

    public void pre_init(ORBInitInfo info) {
        Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte)1,(byte) 0);
        CodecFactory codecFactory = info.codec_factory();
        try {
            Codec codec = codecFactory.create_codec(encoding);
            RMIInterceptor rmiInterceptor = new RMIInterceptor(codec);
            info.add_ior_interceptor(rmiInterceptor);
View Full Code Here

    @Override
    public void post_init(ORBInitInfo info) {
        try {
            // use CDR encapsulations with GIOP 1.0 encoding.
            Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
                    (byte) 1, /* GIOP version */
                    (byte) /* GIOP revision*/);
            Codec codec = info.codec_factory().create_codec(encoding);

            // create and register client interceptor.
View Full Code Here

TOP

Related Classes of org.omg.IOP.Encoding

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.