6 Replies Latest reply on Aug 21, 2009 7:32 AM by sivaram

    Adding bean reference in FID 1.2.1

    sivaram

       

      Hi,

       

       

        1. I created a POJO, added 2 methods to it.

        2. Created Spring Bean Definition xml file and referenced the pojo in it

            <bean id="id1" class="<<com..>>"

        3. Opened the EIP diagram, added the Spring bean definition xml using "Add Beans" functionality

       

      Now when I add a "Bean" camel processor in the EIP diagram, the "reference" property drop down list I don't see "id1". What could be the error?

       

      I greatly appreciate your help in this regard.

                   

       

       

        • 1. Re: Adding bean reference in FID 1.2.1
          ckonda

          Hi,

           

          Can you check if your bean file has spring bean nature? If you have copy pasted or moved your spring bean file , it loses its spring nature. If so, you can try by adding your bean xml file Spring Bean nature by going to the Properties-> Spring->Beans Support->Config Files->Add (Add your spring bean file).

           

          Or, if you attach your EIP project we can look into the issue.

           

          Thanks,

          Lavanya.

          • 2. Re: Adding bean reference in FID 1.2.1
            sivanaresh

            Hi Sivaram,

             

            Please see the attached image

             

            Regards,

            Siva Naresh.

            • 3. Re: Adding bean reference in FID 1.2.1
              sivaram

              Thanks Lavanya and Siva Naresh for the response.

               

              I checked the file, it has spring nature. But still I'm not able to see the id's in the reference drop down.

               

              Attached is the project.

               

              Also, when I add a "Bean" processor and click on it, I get an error from the IDE. Error screenshot attached.

               

              Edited by: sivaram on Aug 21, 2009 3:20 PM

              • 4. Re: Adding bean reference in FID 1.2.1
                spindipr

                Hi sivaram,

                 

                I have imported the attached project into my workspace and I am able to view the reference "id1" in bean properties. (Attached the screen shot)

                 

                Can you provide the steps you followed for creating the project.

                 

                Thanks,

                Sailaja.

                • 5. Re: Adding bean reference in FID 1.2.1
                  ckonda

                  Hi Sivaram,

                   

                  There is a problem with identifying spring beans when the workspace and the project sources are not at the same location.

                   

                  I think you have created a project, by not using the default location (Use default location option in the project creation wizard) and using an existing location than the workspace location. This is causing the issue. I am able to reproduce your problem by doing so. I logged a JIRA for this :

                  http://fusesource.com/issues/browse/UI-1562

                   

                  Can you try creating the project in the workspace location or importing an existing one checking the "Copy projects into workspace" checkbox.

                   

                  Thanks,

                  Lavanya.

                  • 6. Re: Adding bean reference in FID 1.2.1
                    sivaram

                    Thanks Lavanya. Creating a project in the default location has solved the issue.