Since EJB 2.0 does not support ejb-ql with MAX function, I was wondering how the primary keys are being created. The only way I could think of is to have a seperate table which could keep track of the next increment id for a table. any suggestions. - Walk rustin
thanks. Jboss documentation is so poor that it's hard to find instructions on getting anything done. Same is the case with 'enity commands'. I paid $10.00 and bought the online documentation on CMP. It doesn't even mention 'entity commands'. Does anyone have any working example of how to use 'entity commands'? thanks. - walker rustin
What's the idea of using 'entity-command'. I suppose it is used so that the database doesn't have to generate the primary key for a record. By using this feature, the developer is asking jboss to generate a primary key and pass that key to the database. It means the primary key on the database should NOT be marked at auto-increment. Is that assumption correct? Or Do I need to mark both at the jboss level and at the database level as auto-increment. Do they work in conjunction? thanks. - Walker
Hi All, Now i have a problem in Multi- Threaded Environment. I have multiple threads running at the same time to collect the data from different source and store it the table using ejb create method. When i use Primary key generation through entity commands , i am getting duplicate keys generated. How to synchronize the way the keys are generated?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop