You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "James Strachan (JIRA)" <ji...@apache.org> on 2009/12/10 15:41:52 UTC
[jira] Created: (CAMEL-2280) xml returned by camel-web should avoid
using a namespace prefix
xml returned by camel-web should avoid using a namespace prefix
---------------------------------------------------------------
Key: CAMEL-2280
URL: https://issues.apache.org/activemq/browse/CAMEL-2280
Project: Apache Camel
Issue Type: Improvement
Components: camel-web
Reporter: James Strachan
Fix For: 2.2.0
we need to tweak the JAXBContext a little in the default jaxrs config for camel-web to avoid using a namespace prefix to make the XML a little easier to read.
e.g. in FireFox if you view this
http://localhost:8080/endpoints.xml
it tends to look like this
{code}
<ns2:endpoints>
<ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.A" uri="activemq://example.A"/>
<ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.B" uri="activemq://example.B"/>
<ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.C" uri="activemq://example.C"/>
<ns2:endpoint href="/endpoints/mock:%2F%2FsomeName" uri="mock://someName"/>
<ns2:endpoint href="/endpoints/spring-event:%2F%2Fdefault" uri="spring-event://default"/>
</ns2:endpoints>
{code}
with the ns2 prefix making things less easy to read
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2280) xml returned by camel-web should
avoid using a namespace prefix
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56492#action_56492 ]
Claus Ibsen commented on CAMEL-2280:
------------------------------------
Would be cool to get tweaked as others have requested this as well.
I think in CXF there is some manual code that kinda fixes this but not in a nice way. Willem Jiang knows a bit about that.
> xml returned by camel-web should avoid using a namespace prefix
> ---------------------------------------------------------------
>
> Key: CAMEL-2280
> URL: https://issues.apache.org/activemq/browse/CAMEL-2280
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-web
> Reporter: James Strachan
> Fix For: 2.2.0
>
>
> we need to tweak the JAXBContext a little in the default jaxrs config for camel-web to avoid using a namespace prefix to make the XML a little easier to read.
> e.g. in FireFox if you view this
> http://localhost:8080/endpoints.xml
> it tends to look like this
> {code}
> <ns2:endpoints>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.A" uri="activemq://example.A"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.B" uri="activemq://example.B"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.C" uri="activemq://example.C"/>
> <ns2:endpoint href="/endpoints/mock:%2F%2FsomeName" uri="mock://someName"/>
> <ns2:endpoint href="/endpoints/spring-event:%2F%2Fdefault" uri="spring-event://default"/>
> </ns2:endpoints>
> {code}
> with the ns2 prefix making things less easy to read
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2280) xml returned by camel-web should
avoid using a namespace prefix
Posted by "James Strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56495#action_56495 ]
James Strachan commented on CAMEL-2280:
---------------------------------------
FWIW my main aim was to ditch the ugly "ns2" stuff :)
> xml returned by camel-web should avoid using a namespace prefix
> ---------------------------------------------------------------
>
> Key: CAMEL-2280
> URL: https://issues.apache.org/activemq/browse/CAMEL-2280
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-web
> Reporter: James Strachan
> Fix For: 2.2.0
>
>
> we need to tweak the JAXBContext a little in the default jaxrs config for camel-web to avoid using a namespace prefix to make the XML a little easier to read.
> e.g. in FireFox if you view this
> http://localhost:8080/endpoints.xml
> it tends to look like this
> {code}
> <ns2:endpoints>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.A" uri="activemq://example.A"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.B" uri="activemq://example.B"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.C" uri="activemq://example.C"/>
> <ns2:endpoint href="/endpoints/mock:%2F%2FsomeName" uri="mock://someName"/>
> <ns2:endpoint href="/endpoints/spring-event:%2F%2Fdefault" uri="spring-event://default"/>
> </ns2:endpoints>
> {code}
> with the ns2 prefix making things less easy to read
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2280) xml returned by camel-web should
avoid using a namespace prefix
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56493#action_56493 ]
Sergey Beryozkin commented on CAMEL-2280:
-----------------------------------------
In CXF you can do in a number of ways. The easiest is to configure a jaxrs jaxb provider to drop the namespaces from a given element(s).
Camel-web does not depend on CXF though AFAIK.
> xml returned by camel-web should avoid using a namespace prefix
> ---------------------------------------------------------------
>
> Key: CAMEL-2280
> URL: https://issues.apache.org/activemq/browse/CAMEL-2280
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-web
> Reporter: James Strachan
> Fix For: 2.2.0
>
>
> we need to tweak the JAXBContext a little in the default jaxrs config for camel-web to avoid using a namespace prefix to make the XML a little easier to read.
> e.g. in FireFox if you view this
> http://localhost:8080/endpoints.xml
> it tends to look like this
> {code}
> <ns2:endpoints>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.A" uri="activemq://example.A"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.B" uri="activemq://example.B"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.C" uri="activemq://example.C"/>
> <ns2:endpoint href="/endpoints/mock:%2F%2FsomeName" uri="mock://someName"/>
> <ns2:endpoint href="/endpoints/spring-event:%2F%2Fdefault" uri="spring-event://default"/>
> </ns2:endpoints>
> {code}
> with the ns2 prefix making things less easy to read
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-2280) xml returned by camel-web should
avoid using a namespace prefix
Posted by "James Strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56494#action_56494 ]
James Strachan commented on CAMEL-2280:
---------------------------------------
I've a fix i'm about to apply shortly. One of the complications is the various XML rest URIs in Camel web return a mixture of the regular spring namespace and the web namespace (such as for endpoints as shown above) and sometimes a mixture of the 2.
For now I've gone with better default namespace prefixes - and using no namespace prefix for the default spring namespace (so when looking at a route, there's no namespaces at all). Its mostly just the endpoints which will have a small, single character namespace prefix now.
I guess we could try figure out how to extend the web xsd/namespace from the spring one, so there's a single universal namespace but thats maybe going a step too far - or hand crafting a JAXB configuration for a few special resources maybe
> xml returned by camel-web should avoid using a namespace prefix
> ---------------------------------------------------------------
>
> Key: CAMEL-2280
> URL: https://issues.apache.org/activemq/browse/CAMEL-2280
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-web
> Reporter: James Strachan
> Fix For: 2.2.0
>
>
> we need to tweak the JAXBContext a little in the default jaxrs config for camel-web to avoid using a namespace prefix to make the XML a little easier to read.
> e.g. in FireFox if you view this
> http://localhost:8080/endpoints.xml
> it tends to look like this
> {code}
> <ns2:endpoints>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.A" uri="activemq://example.A"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.B" uri="activemq://example.B"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.C" uri="activemq://example.C"/>
> <ns2:endpoint href="/endpoints/mock:%2F%2FsomeName" uri="mock://someName"/>
> <ns2:endpoint href="/endpoints/spring-event:%2F%2Fdefault" uri="spring-event://default"/>
> </ns2:endpoints>
> {code}
> with the ns2 prefix making things less easy to read
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-2280) xml returned by camel-web should
avoid using a namespace prefix
Posted by "James Strachan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Strachan resolved CAMEL-2280.
-----------------------------------
Resolution: Fixed
patch applied; now using no namespace prefix for routes as XML; though we use a simple "w" prefix for endpoints as XML
> xml returned by camel-web should avoid using a namespace prefix
> ---------------------------------------------------------------
>
> Key: CAMEL-2280
> URL: https://issues.apache.org/activemq/browse/CAMEL-2280
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-web
> Reporter: James Strachan
> Fix For: 2.2.0
>
>
> we need to tweak the JAXBContext a little in the default jaxrs config for camel-web to avoid using a namespace prefix to make the XML a little easier to read.
> e.g. in FireFox if you view this
> http://localhost:8080/endpoints.xml
> it tends to look like this
> {code}
> <ns2:endpoints>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.A" uri="activemq://example.A"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.B" uri="activemq://example.B"/>
> <ns2:endpoint href="/endpoints/activemq:%2F%2Fexample.C" uri="activemq://example.C"/>
> <ns2:endpoint href="/endpoints/mock:%2F%2FsomeName" uri="mock://someName"/>
> <ns2:endpoint href="/endpoints/spring-event:%2F%2Fdefault" uri="spring-event://default"/>
> </ns2:endpoints>
> {code}
> with the ns2 prefix making things less easy to read
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.