Generated stubs are faulty when localhost=true and JMS transport is enabled
---------------------------------------------------------------------------

                 Key: MASHUP-1050
                 URL: https://wso2.org/jira/browse/MASHUP-1050
             Project: WSO2 Mashup Server
          Issue Type: Bug
            Reporter: Keith Godwin Chapman
            Assignee: Jonathan Marsh
             Fix For: 1.5.1


When the JMS transport is enabled its endpoint address is of the form 
jms:/keith-service?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616
 

When a stub is generated in this case with localhost=true the the address drops 
the port and generates addresses of the form 
(http://localhost:7762/services/keith/service?stub&lang=e4x&localhost=true&content-type=text/plain)
"address" : 
"jms:/keith-service?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost/",

Note that the port is missing at the end. Using the stub without the localhost 
option solves the issue 
(http://localhost:7762/services/keith/service?stub&lang=e4x&content-type=text/plain)
 and generates addresses of the form
"address" : 
"jms:/keith-service?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:61616",

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Mashup-dev mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to