[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-05 Thread lameguy
Thanks Red, I got that part working now. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854040#3854040 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854040 --- Thi

[JBoss-user] [EJB/JBoss] - Re: hardcoded JNDI names on clientside...

2004-11-05 Thread lameguy
Hi Raist, thanks for the tip. I'm in the middle of managing a few things at the same time (including a new job the coming Monday). So, havent been able to get back to you on this any sooner. I've bookmarked this thread, and will certainly take time to digest your every word you wrote as soon as

[JBoss-user] [EJB/JBoss] - HELP! CMR -- generated SQL doesn't look right...

2004-11-04 Thread lameguy
Hi, really frustating... been trying to get my CMR setup for last three days but without much success (shame). My setup is simple. I have three beans: 1. UserBean 2. GroupBean 3. GroupMembershipBean Each User (UserBean) can belong to multiple Group(s) (GroupBean). 1. UserBean maps to table USE

[JBoss-user] [EJB/JBoss] - EJB Reference - what's it?

2004-11-04 Thread lameguy
I've seen in many articles and books: * @ejb.ejb-ref view-type = "local" ejb-name = "Client" ref-name = "ejb/Client" But many times I got my bean working WITHOUT declaring EJB references... What's it for? Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&

[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-03 Thread lameguy
Thanks, I'm stiill reading up on one article: http://www-106.ibm.com/developerworks/library/j-santa1/ Anyway, yes, i did put @ejb.pk-field method level tags on getters. But do we need @ejb.bean primkey-field still? I guess we do - but we specify "field name" - NOT "column name". so... here's w

[JBoss-user] [EJB/JBoss] - CMR - with composite key

2004-11-02 Thread lameguy
I'm going over this article on CMR http://technology.amis.nl/blog/index.php?p=90&page=3. The following code demonstrates how XDoclet is used to establish relationship between two entity beans: | ... other stuff ... | /** | * | * | * @ejb.interface-method |

[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-01 Thread lameguy
So, I've implemented a primary key class "GroupMembershipKey" -- I still need to know what I should specify for @ejb.bean primkey-field attribute. My understanding is that @ejb.bean primkey-field is not mandatory. Will it suffice if I just specify @ejb.pk-field on primary key getters? Example:

[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-01 Thread lameguy
Think I found part of the answer (Still need to know what XDoclet tags I need to specify) - Quoting J2EE Tutorial from Sun: Chapter: "Primary Keys for Container-Managed Persistence" If the primary key class does not belong to the J2SE or J2EE standard libraries, then you must implement the clas

[JBoss-user] [EJB/JBoss] - CMP - composite primary key - @ejb.primkey spec

2004-11-01 Thread lameguy
Hi, I have this GroupMembershipBean which has a composite primary key: 1. database field: GROUPUIN (Integer) getter: Integer getGroupUIN() setter: void setGroupUIN(Integer) 2. database field: USERUIN (Integer) getter: Integer getUserUIN() setter: void setUserUIN(Integer) My que

[JBoss-user] [EJB/JBoss] - Re: hardcoded JNDI names on clientside...

2004-10-31 Thread lameguy
anonymous wrote : This tag is optional, and lets you define whether or not a util class should be generated, and whether to use the logical component name (java:comp/env) or the physical JNDI name to do the lookup. If this tag is not specified, the util class will be generated using logical loo

[JBoss-user] [Beginners Corner] - EAR deployment and ScannerThread's

2004-10-31 Thread lameguy
How come everytime I deploy my EAR modules JBoss seems to spend a lot of time before awaking from: | ... | 15:54:44,442 INFO [STDOUT] 394248 [ScannerThread] DEBUG org.jboss.mx.loading.ClassLoaderUtils jboss.web.deployment:id=831432746,war=UserManagementWeb.war WebModule - Multiple class

[JBoss-user] [EJB/JBoss] - hardcoded JNDI names on clientside...

2004-10-31 Thread lameguy
Hi, I have some hardcoded JNDI names on clientside, wish to know if I have alternatives to that. Before going any further: Bean itself | /** | * @ejb.bean | * name="GroupEJB" | * local-jndi-name="ejb/UserGroup" | * display

[JBoss-user] [EJB/JBoss] - Re: CMP - failed to retrieve data from database - but NO exc

2004-10-28 Thread lameguy
It worked!!! Did you hear me guys?!! It worked: p6spy capture: | 1098971495056|-1||resultset|SELECT t0_g.UIN FROM GROUPS t0_g|UIN = 1 | 1098971495057|-1||resultset|SELECT t0_g.UIN FROM GROUPS t0_g|UIN = 2 | 1098971495070|11|0|commit|| | 1098971586031|25|0|statement|SELECT t0_g.UIN FROM GR

[JBoss-user] [EJB/JBoss] - Re: CMP - failed to retrieve data from database - but NO exc

2004-10-28 Thread lameguy
1. TO Raist: I just made the modification, no and much to my dismay, it's not working unfortunately. | /** | * @author [EMAIL PROTECTED] | * | * @ejb.bean | * name="GroupEJB" | * local-jndi-name="ejb/UserGroup" | * d

[JBoss-user] [EJB/JBoss] - Re: CMP - failed to retrieve data from database - but NO exc

2004-10-28 Thread lameguy
1. TO Raist: I just made the modification, no and much to my dismay, it's not working unfortunately. | /** | * @author [EMAIL PROTECTED] | * | * @ejb.bean | * name="GroupEJB" | * local-jndi-name="ejb/UserGroup" | * d