Java Mailing List Archive

http://www.junlu.com/

Home » JBoss User »

[jboss-user] [JBoss Seam] - Re: about component Name convention

manik.surtani@jboss.com

2007-12-30


Author LoginPost Reply
When I use name like this:

| @Name("app.userService")
| @AutoCreate
| class UserService extends BaseService {
| ....
|

I must use the component like this:

|  @In("app.userService") UserService userService
|

But when I use name in Entity class like this:

| @Entity
| @Name("app.user")
| @Scope(SESSION)
| @Table(name="App_User")
| class User implements Serializable
| {
|

I can still use the User component like this:

| @In(required = false)
| @Out(required = false, scope = SESSION)
| User user;
|

Why JBoss Seam don't matter about the name 'app.user'?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116093#4116093

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116093
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.