if I do as below : the context can route to index.jsp,but the url on browser
the url is not change.so the context in index.jsp can not use.
 public void configure() {
        
          
        from("jetty:http://192.168.0.154:8181/?matchOnUriPrefix=true";)
       .process(new Processor() {
            public void process(Exchange exchange) throws Exception {
                sessionId =
exchange.getIn(HttpMessage.class).getRequest().getRequestedSessionId();
                        if (null==sessionId)
                        {
                                exchange.getIn().setHeader("sessionId", 0);;
                                
                                
exchange.getIn().setHeader(Exchange.HTTP_BASE_URI,
constant("http://192.168.0.154:8181/uiserver/index.jsp";));
                                exchange.getIn().setHeader(Exchange.HTTP_PATH, 
constant(""));
                                
exchange.getIn().setHeader(Exchange.HTTP_SERVLET_REQUEST,
constant(""));
                                exchange.getIn().setHeader(Exchange.HTTP_URI, 
constant("http://192.168.0.154:8181/uiserver/index.jsp";));
                        }
                        else
                        {
                                exchange.getIn().setHeader("sessionId", 
sessionId);;
                                exchange.getIn().setHeader(Exchange.HTTP_URI,
constant("http://192.168.0.154:8181/uiserver/index.jsp";));
                        }
            }
        })
       
          /* .process(new Processor() {
            public void process(Exchange exchange) throws Exception {
                exchange.getOut().setHeader(Exchange.HTTP_URI,
constant("http://www.google.com";));
            }
        })*/
           .to("ahc:http://127.0.0.1:8181/uiserver/thinknet/index.jsp";);
           



--
View this message in context: 
http://camel.465427.n5.nabble.com/can-camel-used-for-Single-Sign-On-tp5744926p5744928.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to