3 Replies Latest reply on Oct 29, 2008 5:06 PM by matt.nirgue

    components.xml and @jndiPattern@

    nimo22

      In every example of the seam-bundle, in components.xmls there is the line:



      <core:init jndi-pattern="@jndiPattern@" debug="false"/>




      and I am wondering, if we should leave the String @jndiPattern@ or replace it with something like


      #{ejbName}/local




      Whats the difference?


        • 1. Re: components.xml and @jndiPattern@
          pisce.gabriel.goic.gmail.com

          @jndiPattern@ is just a markup for a filterset, your build will replace it by the appropriate jndi pattern

          • 2. Re: components.xml and @jndiPattern@
            nimo22

            filterset?


            so


            @jndiPattern@



            is the same as


            #{ejbName} 



            ??


            Where can I find more information about filtersets?

            • 3. Re: components.xml and @jndiPattern@
              matt.nirgue

              @jndiPattern@ is mostly use -I think- to run tests... with this annotation, your components.xml gets changed at runtime without having to change your components.xml each time


              For example, if you run your integration tests on Embedded JBoss, it'd use the jndiPattern defined in the components.properties that is in your classpath (for tests) but once you run your application on the application server, it'd use another jndiPattern:


              your-application-name/{#ejbName}/local




              I'm no expert but that's the only thing that I can think of...