Package com.volantis.synergetics.reporting.config

Examples of com.volantis.synergetics.reporting.config.JNDIDatasource


     * @throws JiBXException if unmarshalling failed
     */
    private DatasourceConfiguration unmarshalJNDIDatasource(
            UnmarshallingContext ctx) throws JiBXException {
       
        JNDIDatasource source = new JNDIDatasource();

        ctx.parsePastStartTag(ctx.getNamespace(),
                JNDI_DATASOURCE_TAG_NAME);

        source.setJndiName(getTagsTextContent(ctx, JNDI_NAME_TAG_NAME));

        unmarshalName(ctx, source);
       
        ctx.toEnd();
        ctx.parsePastEndTag(ctx.getNamespace(),
View Full Code Here


            marshalName(index, ctx, internalPoolDatasource.getName());
           
            ctx.endTag(index, INTERNAL_POOL_DATASOURCE_TAG_NAME);           
        } else if (type == DataSourceType.JNDI_DATASOURCE) {
            JNDIDatasource jndiDatasource = (JNDIDatasource) dataSource;
            ctx.startTag(index, JNDI_DATASOURCE_TAG_NAME);
           
            writeTagsTextContent(ctx, JNDI_NAME_TAG_NAME,
                    jndiDatasource.getJndiName());

            marshalName(index, ctx, jndiDatasource.getName());
           
            ctx.endTag(index, JNDI_DATASOURCE_TAG_NAME);           
        } else {
            throw new JiBXException(EXCEPTION_LOCALIZER
                    .format("invalid-datasource-type"));
View Full Code Here

        DatasourceConfiguration datasource = parseDatasource(
                new ByteArrayInputStream(ANONYMOUS_JNDI_DATASOURCE.getBytes()));

        assertEquals(DataSourceType.JNDI_DATASOURCE, datasource.getType());
       
        JNDIDatasource jndiDatasource =
            (JNDIDatasource) datasource;
    
        assertEquals("jdbc/TestDB", jndiDatasource.getJndiName());
    }   
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.reporting.config.JNDIDatasource

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.