[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread c_eric_ray
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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread petemuir
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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread petemuir
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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread c_eric_ray
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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread petemuir
@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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
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:/

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread modoc
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 __

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread modoc
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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread tonylmai
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

[jboss-user] [JBoss Seam] - Re: Requirements for using @Startup annotation?

2007-05-10 Thread modoc
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