• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Seam components.properties (Ant vs Maven style tokens)

 
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

I am a bit confused at the moment regarding Seam's components.properties file. The documentation says that it's intended for replacement of ant-style tokens in components.xml (so @token@ vs ${token}) but the part that is really confusing me is that in the seam-booking example they use ${jndiPattern} in components.xml and then enable filtering when copying resources during the maven build... I really don't see what part Seam plays in this if Maven is simply replacing the value...

Can someone shed some light on this?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Duran Harris wrote: The documentation says that it's intended for replacement of ant-style tokens in components.xml (so @token@ vs ${token})



Can you point us to that doc?
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I am actually reading Seam in Action, pg 62 says :

resources/components.properties Replacement properties for Ant-style tokens

Although I am aware that the book was written when Seam 2.0 was out. Another source of my confusion is that if I try the same approach that the seam booking example does (ie simply use a filter when copying resources during the maven build, I can see that the Maven filter replaced the value of ${jndiPattern} in components.xml with the value specified in the pom.xml of the web project but at runtime the application still tells me :

Caused by: java.lang.IllegalArgumentException: You must specify org.jboss.seam.core.init.jndiPattern or use @JndiName:

My main issue is that I have a single web-project and multiple seam-ejb projects, so I need to figure out a way for the jndi-pattern to correctly reflect the name of each ejb module...
reply
    Bookmark Topic Watch Topic
  • New Topic