Package org.eclipse.persistence.sessions.serializers

Examples of org.eclipse.persistence.sessions.serializers.Serializer


            logDebugMessage(message);
        }

        Object object = null;
        try {
            Serializer serializer = this.rcm.getSerializer();
            if (serializer != null) {
                object = serializer.deserialize(message.getBuffer(), (AbstractSession)this.rcm.getCommandProcessor());
            } else {
                object = message.getObject();           
            }
        } catch (Exception exception) {
            failDeserializeMessage(null, exception);
View Full Code Here


            this.discoveryManager.startDiscovery();
        } else {
            this.transportManager.createConnections();
        }

        Serializer serializer = getSerializer();
        if (serializer != null) {
            serializer.initialize(UnitOfWorkChangeSet.class, null, (AbstractSession)getCommandProcessor());
        }
    }
View Full Code Here

   
            // Set our service id on the command to indicate that it came from us
            newCommand.setServiceId(getServiceId());
   
            // PERF: Support plugable serialization.
            Serializer serializer = getSerializer();
            byte[] commandBytes = null;
            if (serializer != null) {
                this.commandProcessor.startOperationProfile(SessionProfiler.CacheCoordinationSerialize);
                try {
                    commandBytes = (byte[])serializer.serialize(command, (AbstractSession)getCommandProcessor());
                } finally {
                    this.commandProcessor.endOperationProfile(SessionProfiler.CacheCoordinationSerialize);           
                }
            }
   
View Full Code Here

     */
    public void processCommandFromRemoteConnection(byte[] commandBytes) {
        this.commandProcessor.startOperationProfile(SessionProfiler.CacheCoordinationSerialize);
        Command command = null;
        try {
            Serializer serializer = getSerializer();
            if (serializer == null) {
                serializer = JavaSerializer.instance;
            }
            command = (Command)serializer.deserialize(commandBytes, (AbstractSession)getCommandProcessor());
        } finally {
            this.commandProcessor.endOperationProfile(SessionProfiler.CacheCoordinationSerialize);           
        }
        processCommandFromRemoteConnection(command);
    }
View Full Code Here

                object = ((ObjectMessage)message).getObject();
            } else if (message instanceof BytesMessage) {
                BytesMessage byteMessage = (BytesMessage)message;
                byte[] bytes = new byte[(int)byteMessage.getBodyLength()];
                byteMessage.readBytes(bytes);
                Serializer serializer = this.rcm.getSerializer();
                if (serializer == null) {
                    serializer = JavaSerializer.instance;
                }
                object = serializer.deserialize(bytes, (AbstractSession)this.rcm.getCommandProcessor());
            } else {
                if (this.rcm.shouldLogWarningMessage() && (topic == null)) {
                    try {
                        topic = ((Topic)message.getJMSDestination()).getTopicName();
                    } catch (JMSException ex) {
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.sessions.serializers.Serializer

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.