Package org.openxdas.client

Examples of org.openxdas.client.XDasRecord


            reconnect();
            if (!isXDasEnabled())
                return;
        }

        XDasRecord xdasRecord = null;

        Object o = event.getMessage();

        if (o instanceof XDasRecord) {
            try {
                xdasRecord = (XDasRecord) o;
                if (xdasRecord.getXDasSession() == null)
                    xdasRecord.setXDasSession(m_xdasSession);
                xdasRecord.commit();
            } catch (XDasException e) {
                String errorMsg = "Error appending to OpenXDAS."
                        + "XDas Error: " + e.getStatus() + ", Minor Code: "
                        + e.getMinorStatus();
                LogLog.error(errorMsg, e);
View Full Code Here


        BasicConfigurator.configure();
        //LOGGER.setLevel(Level.DEBUG);
        XDasAppender xdasAppender = new XDasAppender();

        XDasRecord rec = null;
        try {
            xdasAppender.setXDasSession(
                    "JavaOrigLoc:JavaOrigAddr:JavaOrigService:JavaOrigAuth:JavaOrigPrincipal:JavaOrigPrincipalId");
            //Add the appender to a category
            LOGGER.addAppender(xdasAppender);
            LOGGER.debug("XDaslogging successfully initialized");
        } catch (SocketException e) {
            LOGGER.error("xdasAppender.setXDasSession Failed", e);
        } catch (IOException e) {
            LOGGER.error("xdasAppender.setXDasSession Failed", e);
        } catch (XDasException e) {
            LOGGER.error("xdasAppender.setXDasSession Failed" + "XDas Error: " + e.getStatus() + ", Minor Code: "
                    + e.getMinorStatus(), e);
        }

        try {
            rec = new XDasRecord(
                    27,
                    XDasOutcomes.XDAS_OUT_ENTITY_NON_EXISTENT,
                    "JavaInitAuth:JavaDomainName:JavaDomainId",
                    "JavaTargetLocName:JavaTargetLocAddr:JavaTargetService:JavaTargetAuth:JavaTargetPrincipal:JavaTargetPrincipalId",
                    "Test=Yes,Debug=Yes,Meaningless=Yes");
View Full Code Here

TOP

Related Classes of org.openxdas.client.XDasRecord

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.