A tool to generate an uml2 model based on repository.xml
Hi OJB cummunity, here a link to a tool wich generates a model based on a OJB repository: http://www.claude-glauser.ch/j2ee/ojb/repository2uml2/index.html http://www.claude-glauser.ch/j2ee/ojb/repository2uml2/index.html here a link to an article about object-serialization (ojb): http://www.claude-glauser.ch/mambo/content/view/49/50/ http://www.claude-glauser.ch/mambo/content/view/49/50/ Please send inaccuracies to [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Best regards, Claude
Emitted SQL statement für primarykey-value 0?
Hi, When I do an insert operation on a simple persistent class (Adress: int id, String name, String firstname), then the following sql statements will be emitted by ojb: 1119851348515|0|1|statement||SELECT ID FROM ADRESSE WHERE ID = '1' 1119851348515|0|1|statement||INSERT INTO ADRESSE (ID,NAME,VORNAME) VALUES ('1','a1','b1') 1119851348515|0|1|statement||SELECT ID FROM ADRESSE WHERE ID = '2' 1119851348515|0|1|statement||INSERT INTO ADRESSE (ID,NAME,VORNAME) VALUES ('2','a2','b') But when the primarykey (int type) has the value 0, then only this will be emitted, without a preceding select statement: 1119853301733|0|1|statement||INSERT INTO ADRESSE (ID,NAME,VORNAME) VALUES ('0','B0','M0') Why? OJB 1.0.3, Broker-API, no autoincrement primarykey. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: CMT and OJB
Thanks a lot for your answer! Yes, I will appreciate a feature to turn on or off checkForTx in OJB.properties :) With best regards, Claude -Ursprüngliche Nachricht- Von: Armin Waibel [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 10. Juni 2005 20:57 An: OJB Users List Betreff: Re: CMT and OJB Hi, [EMAIL PROTECTED] wrote: Hi, I have an application server WebSphere 5.1 and I must do Container Managed Transactions (CMT) with OJB. There is only PB-API involved. Unfortunately, there is very little documentation on this topic. Maybe someone is willing to write a howto ;-) Now my question: If I don't call the method PersistenceBroker.beginTransaction() and PersistenceBroker.commitTransaction() everything seems to work. Rollbacks work. But there is a warning message similar to: WARN: No tx found. Please use tx to avoid side effects What are those sideeffects? Is there some cleanup OJB does while committing? I've seen some hashtable activity stuff in the OJB-sourcode. We don't use OJB-Cache. This warning was introduced to prevent user in non-managed environments storing objects without a running tx. Without PB-tx the autocommit state of the used connection is on (by default), thus when storing an object with references or a bunch of objects a rollback of all objects is not possible. Why has OJB to be transaction aware at all, since I don't use OJB-Cache. In managed environments without using a cache it's completely different and the warning is needless and confusing. Should introduce a property 'checkForTx' in OJB.properties to en-/disable this behavior, instead always check for tx? regards, Armin Thx for your replies! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CMT and OJB
Hi, I have an application server WebSphere 5.1 and I must do Container Managed Transactions (CMT) with OJB. There is only PB-API involved. Unfortunately, there is very little documentation on this topic. Now my question: If I don't call the method PersistenceBroker.beginTransaction() and PersistenceBroker.commitTransaction() everything seems to work. Rollbacks work. But there is a warning message similar to: WARN: No tx found. Please use tx to avoid side effects What are those sideeffects? Is there some cleanup OJB does while committing? I've seen some hashtable activity stuff in the OJB-sourcode. We don't use OJB-Cache. Why has OJB to be transaction aware at all, since I don't use OJB-Cache. Thx for your replies!
Newby deployment question, placement of common libraries (struts, ojb) ?
Hi, we have a J2EE application which uses ejb's, ojb and struts. OJB and Jakarta-Struts depend (among others) on some common libraries, i.e. commons-beanutil.jar. Which of the the two following solutions do you recommend ? 1. The common (=common to both, ojb and struts) libraries are placed in the ear only once. 2. The libraries are placed in the ear file two times, once in the WEB-INF/lib of the webapp, and once in the root directory of the archive. Is there a possibility that ojb and struts will depend on two different versions of the commons-libraries ? Thanks for your advice in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]