[jboss-user] [JBoss Seam] - Re: Seam 1.1.0 - Injecting EJB's - Not Working
bsmithjj
do-not-reply at jboss.com
Tue Jan 9 08:29:47 EST 2007
Kukeltje - you must have ESP
anonymous wrote : 15.2. Annotations for bijection
|
| The next two annotations control bijection. These attributes occur on component instance variables or property accessor methods.
|
| @In
|
| @In
|
| Specifies that a component attribute is to be injected from a context variable at the beginning of each component invocation. If the context variable is null, an exception will be thrown.
|
| @In(required=false)
|
| Specifies that a component attribute is to be injected from a context variable at the beginning of each component invocation. The context variable may be null.
|
| @In(create=true)
|
| Specifies that a component attribute is to be injected from a context variable at the beginning of each component invocation. If the context variable is null, an instance of the component is instantiated by Seam.
|
| @In(value="contextVariableName")
|
| Specifies the name of the context variable explicitly, instead of using the annotated instance variable name.
|
| @In(value="#{customer.addresses['shipping']}")
|
| Specifies that a component attribute is to be injected by evaluating a JSF EL expression at the beginning of each component invocation.
|
| *
|
| value ? specifies the name of the context variable. Default to the name of the component attribute. Alternatively, specifies a JSF EL expression, surrounded by #{...}.
| *
|
| create ? specifies that Seam should instantiate the component with the same name as the context variable if the context variable is undefined (null) in all contexts. Default to false.
| *
|
| required ? specifies Seam should throw an exception if the context variable is undefined in all contexts.
Where in this documentation is it stated that @In(create=true) results in looking up a reference to an EJB from JNDI? Maybe when create=true, and no instance of the named component (EJB) is available is any scope, then Seam takes that as a cue to look up the component (EJB) from JNDI - that's fine with me, I think that behavior should be explicitly added to the documentation; and add an example of this. I looked carefully through the documentation before posting this question ... so how do your responses help with understanding my initial issue or answer the questions subsequently posed?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999443#3999443
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999443
More information about the jboss-user
mailing list