jack lista [
http://community.jboss.org/people/jackalista] replied to the discussion
"httprouter issues with GET/POST WADL Services and Web Routing"
To view the discussion, visit:
http://community.jboss.org/message/552426#552426
--------------------------------------------------------------
Hi, Dave, so it looks like there is some stuff missing, processWADLDocRequest(),
processWADLRequest(), processXSDRequest(), do I need this stuff? Or should I chop out
those branches of code and make them throw exceptions or something? I'm not totally
sure of your context as haven't done much work with JBossESB yet, but what I did was
to tale your (I'm assuming this is for an Action class, right?) "process(Message
msg)" method and slap it in another custom class, from simple_cbr quiclkstart. So
I'm guessing that the action that you chopped this out of does more stuff (like WADL
stuff, or XSD stuff... true?) than make REST requests, so you only sent me part of it, is
that right? So, for ex., here:
if (requestInfo.getQueryParams().containsKey("doc"))
return processWADLDocRequest(message, null);
Does it need to handle these cases? I think there are 3 of them... or can I make them
throw exceptions instead and I won't hit them?
THe other thing I wanted to ask you about was configuration of this. I put the method
fragment in one of the quickstart MyFooAction classes and renamed it WADLAction.java and
slapped your process method in there (please fill me in about the missing methods above,
I'm not at all familiar with Jersey). I also put the JerseyClientSingleton class in
the same package as the rest of the simple_cbr quickstart. Do I need any configuration in
jboss-esb.xml? I think I see what your code is doing for the most part, now let's see
if I can get it to work. Thanks too, BTW!
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/552426#552426]
Start a new discussion in JBoss ESB Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]