[
https://wso2.org/jira/browse/MASHUP-1050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18468#action_18468
]
Jonathan Marsh commented on MASHUP-1050:
----------------------------------------
Check that the endpoint is http or https before localhost-ifying the endpoint
address.
> 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
>
> Attachments: localhost_stub.js, service.wsdl2, stub.js
>
>
> 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