1 2 3 Previous Next 32 Replies Latest reply on Aug 23, 2011 3:34 AM by llwang0455 Go to original post
      • 30. Re: Problem attaching CXF interceptors to the Bus via configuration
        ffang

        Hi,

         

        Sorry,didn't get chance to take a look at your testcase yet, dead busy these days.

         

        Btw, if you have fuse subscription,  you can use that channel and you can get help more quickly.

         

        Freeman

        • 31. Re: Problem attaching CXF interceptors to the Bus via configuration
          niyyel

          Hello Freeman,

           

          We have keep working on the topic and we have some updates.. We checked your blog post to configure the cxf bus

           

                http://freemanfang.blogspot.com/2010/09/how-to-configure-cxf-bus-for-smx-cxf-bc.html

           

          Also, in this post you talked about two jira tickets which are necessary:

           

               http://fusesource.com/issues/browse/ESB-1245

               https://issues.apache.org/activemq/browse/SMXCOMP-688

           

          Finally, we tried to modify the attached project "working-test-case.tar.gz" from ESB-1245 ticket. Which does configure the cxf bus via providedBus (and it seems to work, at least, we don't receive any error from servicemix.log)

           

          But, we don't receive any message or println that we had wrote to test the interceptors. We think that it is interesting to continue with this issue, we thint that if we can fix this last problem this project should run.

           

          The project is the cxf-wsdl-first-osgi project.. In the bundle cxbc (i have to be sincere, i don't know why there are a cxfbc bundle without any service and a cxfse with the typical service helloworld).

           

          The cxfbc includes:

           

           

          my bus.xml is

           

          {

           

               public MyInInterceptor() {

                    super(Phase.RECEIVE);

                    System.out.println("----


          ");

                    System.out.println("Starting... My In Interceptor");

               }

           

               public void handleMessage(Message message) {

           

                    System.out.println("----


          ");

                    System.out.println("                     IN MESSAGE                        ");

                    System.out.println("###########################################################");

           

                    String contentType = (String) message.get(Message.CONTENT_TYPE);

                    if (contentType != null && contentType.toLowerCase().indexOf("multipart/related") != -1) {

                         AttachmentDeserializer ad = new AttachmentDeserializer(message);

                         try {

                              ad.initializeAttachments();

                         } catch (IOException e) {

                              throw new Fault(e);

                         }

                    }

               }

           

          }

           

          We would be very grateful for any help,

          • 32. Re: Problem attaching CXF interceptors to the Bus via configuration
            llwang0455

            Hello.

            I'd like to know that if your  issue is resolved ?

            If so,could you share your result please?I encounted the same problem...

            Thanks!

            1 2 3 Previous Next