Hi all,
I want to define additional attributes for my seam authenticator component.
I tried both the components.xml and the fine grained descriptor. But it seems that seam always wants to create an additional component.
According to Seam in Action
when I omit the name or class, it should not define a new component but configure the existing one.
My authenticator:
package com.weba.seam; @Name("authenticator") public class AuthenticatorJboss { @Logger private Log log;
fine grained AuthenticatorJboss.component.xml:
<component name="authenticator"> <property name="environment">@environment@</property> </component>
this is the log result
two components with same name, higher precedence wins: authenticator Two components with the same name and precedence - component name: authenticator, component classes: com.weba.seam.AuthenticatorJboss, com.weba.seam.AuthenticatorJboss
when I remove the file everything loads fine.
My final goal is to have 2 Authenticators, one for Websphere one for Jboss and configure the installation with something like:
<component class="com.weba.seam.AuthenticatorJboss" installed=@installJbossAuthenticator@> <property name="environment">@environment@</property> </component>
Thanks for your help,
Wolfgang