Examples of JMSNamingPropertyType


Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

        try {
            Greeter greeter = service.getPort(portName, Greeter.class);
            Client client = ClientProxy.getClient(greeter);
            EndpointInfo ei = client.getEndpoint().getEndpointInfo();
            AddressType address = ei.getTraversedExtensor(new AddressType(), AddressType.class);
            JMSNamingPropertyType name = new JMSNamingPropertyType();
            JMSNamingPropertyType password = new JMSNamingPropertyType();
            name.setName("java.naming.security.principal");
            name.setValue("ivan");
            password.setName("java.naming.security.credentials");
            password.setValue("the-terrible");
            address.getJMSNamingProperty().add(name);
            address.getJMSNamingProperty().add(password);
            for (int idx = 0; idx < 5; idx++) {

                greeter.greetMeOneWay("test String");
View Full Code Here

Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

        System.gc();
    }   
   
    @Test
    public void testReplyToConfig() throws Exception {
        JMSNamingPropertyType p1 = new JMSNamingPropertyType();
        p1.setName("java.naming.factory.initial");
        p1.setValue("org.apache.activemq.jndi.ActiveMQInitialContextFactory");
        JMSNamingPropertyType p2 = new JMSNamingPropertyType();
        p2.setName("java.naming.provider.url");
        p2.setValue("tcp://localhost:61500");
        final AddressType address = new AddressType();
        address.setJndiConnectionFactoryName("ConnectionFactory");
        List<JMSNamingPropertyType> props = address.getJMSNamingProperty();
        props.add(p1);
        props.add(p2);
View Full Code Here

Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

            client.getEndpoint().getOutInterceptors().add(new TibcoSoapActionInterceptor());
            client.getOutInterceptors().add(new LoggingOutInterceptor());
            client.getInInterceptors().add(new LoggingInInterceptor());
            EndpointInfo ei = client.getEndpoint().getEndpointInfo();
            AddressType address = ei.getTraversedExtensor(new AddressType(), AddressType.class);
            JMSNamingPropertyType name = new JMSNamingPropertyType();
            JMSNamingPropertyType password = new JMSNamingPropertyType();
            name.setName("java.naming.security.principal");
            name.setValue("ivan");
            password.setName("java.naming.security.credentials");
            password.setValue("the-terrible");
            address.getJMSNamingProperty().add(name);
            address.getJMSNamingProperty().add(password);
            for (int idx = 0; idx < 5; idx++) {

                greeter.greetMeOneWay("test String");
View Full Code Here

Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

            Greeter greeter = service.getPort(portName, Greeter.class);
           
            Client client = ClientProxy.getClient(greeter);
            EndpointInfo ei = client.getEndpoint().getEndpointInfo();
            AddressType address = ei.getTraversedExtensor(new AddressType(), AddressType.class);
            JMSNamingPropertyType name = new JMSNamingPropertyType();
            JMSNamingPropertyType password = new JMSNamingPropertyType();
            name.setName("java.naming.security.principal");
            name.setValue("ivan");
            password.setName("java.naming.security.credentials");
            password.setValue("the-terrible");
            address.getJMSNamingProperty().add(name);
            address.getJMSNamingProperty().add(password);
            for (int idx = 0; idx < 5; idx++) {

                greeter.greetMeOneWay("test String");
View Full Code Here

Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

        System.gc();
    }   
   
    @Test
    public void testReplyToConfig() throws Exception {
        JMSNamingPropertyType p1 = new JMSNamingPropertyType();
        p1.setName("java.naming.factory.initial");
        p1.setValue("org.apache.activemq.jndi.ActiveMQInitialContextFactory");
        JMSNamingPropertyType p2 = new JMSNamingPropertyType();
        p2.setName("java.naming.provider.url");
        p2.setValue("tcp://localhost:" + JMS_PORT);
        final AddressType address = new AddressType();
        address.setJndiConnectionFactoryName("ConnectionFactory");
        List<JMSNamingPropertyType> props = address.getJMSNamingProperty();
        props.add(p1);
        props.add(p2);
View Full Code Here

Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

            destType = getOption(args, ToolConstants.JMS_ADDR_DEST_STYLE);
        }
        jmsAddress.setDestinationStyle(DestinationStyleType.fromValue(destType));

        String finitValue = "org.apache.activemq.jndi.ActiveMQInitialContextFactory";
        JMSNamingPropertyType finit = new JMSNamingPropertyType();
        finit.setName("java.naming.factory.initial");
        if (optionSet(args, ToolConstants.JMS_ADDR_INIT_CTX)) {
            finitValue = getOption(args, ToolConstants.JMS_ADDR_INIT_CTX);
        }
        finit.setValue(finitValue);

        String providerURL = "tcp://localhost:61616";
        JMSNamingPropertyType provider = new JMSNamingPropertyType();
        provider.setName("java.naming.provider.url");
        if (optionSet(args, ToolConstants.JMS_ADDR_JNDI_URL)) {
            providerURL = getOption(args, ToolConstants.JMS_ADDR_JNDI_URL);
        }
        provider.setValue(providerURL);

        String destName = "dynamicQueues/test.cxf.jmstransport.queue";
        if (optionSet(args, ToolConstants.JMS_ADDR_JNDI_DEST)) {
            destName = getOption(args, ToolConstants.JMS_ADDR_JNDI_DEST);
        }
View Full Code Here

Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

           
            Client client = ClientProxy.getClient(greeter);
            client.getEndpoint().getOutInterceptors().add(new TibcoSoapActionInterceptor());
            EndpointInfo ei = client.getEndpoint().getEndpointInfo();
            AddressType address = ei.getTraversedExtensor(new AddressType(), AddressType.class);
            JMSNamingPropertyType name = new JMSNamingPropertyType();
            JMSNamingPropertyType password = new JMSNamingPropertyType();
            name.setName("java.naming.security.principal");
            name.setValue("ivan");
            password.setName("java.naming.security.credentials");
            password.setValue("the-terrible");
            address.getJMSNamingProperty().add(name);
            address.getJMSNamingProperty().add(password);
            for (int idx = 0; idx < 5; idx++) {

                greeter.greetMeOneWay("test String");
View Full Code Here

Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

            destType = getOption(args, ToolConstants.JMS_ADDR_DEST_STYLE);
        }
        jmsAddress.setDestinationStyle(DestinationStyleType.fromValue(destType));

        String finitValue = "org.apache.activemq.jndi.ActiveMQInitialContextFactory";
        JMSNamingPropertyType finit = new JMSNamingPropertyType();
        finit.setName("java.naming.factory.initial");
        if (optionSet(args, ToolConstants.JMS_ADDR_INIT_CTX)) {
            finitValue = getOption(args, ToolConstants.JMS_ADDR_INIT_CTX);
        }
        finit.setValue(finitValue);

        String providerURL = "tcp://localhost:61616";
        JMSNamingPropertyType provider = new JMSNamingPropertyType();
        provider.setName("java.naming.provider.url");
        if (optionSet(args, ToolConstants.JMS_ADDR_JNDI_URL)) {
            providerURL = getOption(args, ToolConstants.JMS_ADDR_JNDI_URL);
        }
        provider.setValue(providerURL);

        String destName = "dynamicQueues/test.cxf.jmstransport.queue";
        if (optionSet(args, ToolConstants.JMS_ADDR_JNDI_DEST)) {
            destName = getOption(args, ToolConstants.JMS_ADDR_JNDI_DEST);
        }
View Full Code Here

Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

        try {
            Greeter greeter = service.getPort(portName, Greeter.class);
            Client client = ClientProxy.getClient(greeter);
            EndpointInfo ei = client.getEndpoint().getEndpointInfo();
            AddressType address = ei.getTraversedExtensor(new AddressType(), AddressType.class);
            JMSNamingPropertyType name = new JMSNamingPropertyType();
            JMSNamingPropertyType password = new JMSNamingPropertyType();
            name.setName("java.naming.security.principal");
            name.setValue("ivan");
            password.setName("java.naming.security.credentials");
            password.setValue("the-terrible");
            address.getJMSNamingProperty().add(name);
            address.getJMSNamingProperty().add(password);
            for (int idx = 0; idx < 5; idx++) {

                greeter.greetMeOneWay("test String");
View Full Code Here

Examples of org.apache.cxf.transport.jms.JMSNamingPropertyType

        System.gc();
    }   
   
    @Test
    public void testReplyToConfig() throws Exception {
        JMSNamingPropertyType p1 = new JMSNamingPropertyType();
        p1.setName("java.naming.factory.initial");
        p1.setValue("org.apache.activemq.jndi.ActiveMQInitialContextFactory");
        JMSNamingPropertyType p2 = new JMSNamingPropertyType();
        p2.setName("java.naming.provider.url");
        p2.setValue("tcp://localhost:61500");
        final AddressType address = new AddressType();
        address.setJndiConnectionFactoryName("ConnectionFactory");
        List<JMSNamingPropertyType> props = address.getJMSNamingProperty();
        props.add(p1);
        props.add(p2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.