Ooppps Sorry, mistyped. It was:
@Logger
| Log logger
This was what I had and it was null.
Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044843#4044843
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40448
yes, the FQN appears to work just fine. btw, this is a very nice feature of
seam. thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044841#4044841
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044841
Dude, that isn't how you inject a Log in seam. RTM.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044830#4044830
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044830
___
jb
anonymous wrote : What exception do you get?
No exception. Just that my injection for Seam's Log did not work.
@In
| private Log logger
I got logger == null in my member method. This was with and without (create =
true). I have no problem with this kind of injection in other components.
V
A string specifying the Seam component name
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044809#4044809
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044809
___
jboss-user
What's the syntax to make a bean annotated with @Startup depend on a second
bean. For example, I have two beans:
| 1. StartupValidationBean
| 2. ReleaseLocksBean
|
|
| I want to do something like this:
|
| | @Startup(depends={my.package.ReleaseLockBean})
| | public class St
@Logger is a special annotation, and cannot be depended on as such (it's not
backed by a Seam component).
What exception do you get?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044803#4044803
Reply to the post :
http://www.jboss.com/index.html?module=bb
What the syntax for specifying a dependency on Seam's Logger for my component
with a @Startup annotation?
I tried @Startup(depends={"org.jboss.seam.log.Log"}) but that did not work. The
logger specified as @In private Log logger is still null.
Any idea?
Thanks
View the original post :
http:/
No problem. Let me know if you have any other questions.
Devon
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044756#4044756
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044756
__
Got it. Thanks Devon.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044752#4044752
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044752
___
jboss-user mailing list
jboss-use
Tony,
you are right. You need to put the @Startup annotation at the class level.
This will create the object at the time the app is loaded/deployed, without
user interaction.
If when the object is created, at that time, you ALSO want to run the init
method, you need to annotate that method
Hi Devon,
I am under the assumption that @Create is called when the component is first
referenced by a client (aka the component will not be instantiated until first
usage).
What I'd like to do is to initiate the connection as soon as the application is
brought online.
Am I wrong?
Thanks
Vi
Tony,
you may be mixing up @Startup and @Create.
@Startup is a class level/component level annotation which tells Seam to start
the component when the ear/war is started. @Create is a method level
annotation which tells Seam to execute the method once the component is started.
So if you want
13 matches
Mail list logo