Re: Too much caching? - the database has changed
Danut, please reread my posting. I wrote that it is not meant as a flame and I was dead serious about that. you are discussing with people on this list about why something has to go where in the deployment files, so you obviously have to know. if you don'zt trake the time to learn those concepts IMHO you will run against the wall head first with whatever ejb server you use. just take a day of reading the javasoft tutorials, some spec material etc. and it will save you lots of time (much more than a day) of helplessly poking around in deployment files no matter what servers they are for. understanding those concepts means that you know what to expect to be the same with each server and what will be different. that is all I am saying and I still think I'm actually helping you with those statements ;-) and yes this is a free discussion list without rules and nobody is restricting you. peace, robert (not born as and not yet become a guru either ;) At 15:04 06.02.2001 , you wrote: >Thank you for your advise but I am afraid I do not have time. I have to >deal with new things especially working with Orion, WebLogic, WebSphere >(and each of them has many things different than the others) and also >learn how to administer and program under Oracle (plus learn Java!) and >finish everything by ... yesterday. > >I just came up withy an idea that makes sense for my level of >understanding and I didn't think it will offend someone. I thought it is a >free discussion list that doesn't have restriction rules and anyone who >needs help can ask for it. > >Danut who was not born a guru (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: Too much caching? - the database has changed
Thank you again for your very helpful advices! It saves me a lot of time. Danut At 12:55 PM 2/6/2001 -0500, Tim Endres wrote: >You should not be changing the deployment folder files directly, except to >check >to see if something works. You should create your own orion-ejb-jar.xml >file in >your own EAR (or build directory if you deploy directly). Orion will then >pickup >your version of orion-ejb-jar.xml and add anything else that it needs, and >place >the result into application-deployments. > >tim. > > > Thanks for the help Tim. > > I am not sure I like this solution. Why do I have to go and change this in > > the application-deployments folder? The same question applies to the table > > name for the CMP Beans. How do I choose a table name different than the > > default one without touvhign the application-deployments folder? > > > > Wouldn't make more sense if I can change these things in the "ejb-jar.xml" > > that is part of the EJB package? > > > > Danut > > > > At 08:55 PM 2/5/2001 -0500, Tim Endres wrote: > > >Check the docs. There is a flag that you need to set to tell Orion > > >that is does not have "exclusive" access to the database, and that > > >it needs to recognize when a record is updated by a program other > > >than Orion. > > > > > >I believe you need to look at the "exclusive-write-access" attribute > > >of the element in orion-ejb-jar.xml. > > > > > >tim. > > > > > > > Two more things. > > > > > > > > 1. On the server side I get the following > > > > > > > > CMPSelectTestEJB() > > > > setEntityContext > > > > ejbCreate( 10, Name 10, Address 10 ) > > > > Entity 10 passivated > > > > java.lang.Throwable > > > > at com.evermind.server.ejb.EntityEJBHome.ail(JAX) > > > > at com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) > > > > at > > > > CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity > > > > HomeWrapper19.java:377) > > > > at java.lang.reflect.Method.invoke(Native Method) > > > > at com.evermind.server.rmi.bc.do(JAX) > > > > at com.evermind.util.f.run(JAX) > > > > ejbPassivate( 10, Name 10, Address 10 ) > > > > > > > > There is no record with ID = 10, name = "Name 10" and address = > > > "Address 10". > > > > > > > > 2. The exactly same code for EJB, client and the same database work > > > fine on > > > > WebLogic. > > > > > > > > I am using Orion 1.4.5. > > > > > > > > Danut > > > > > > > > > > > > I am having a problem. > > > > I am creating some records using some BMP and CMP EJBs. While Orion is > > > > still running I am deleting the records using a simple JDBC client. > > > > > > > > When I try to ccreate the same records again I get an exception > that says > > > > javax.ejb.DuplicateKeyException: Entity already exists > > > > at com.evermind.server.rmi.ba.invokeMethod(JAX) > > > > at com.evermind.server.rmi.a1.invoke(JAX) > > > > at com.evermind.server.rmi.a2.invoke(JAX) > > > > at __Proxy1.create(Unknown Source) > > > > at SelectTestClient.CreateRecords(SelectTestClient.java:102) > > > > at SelectTestClient.TestOrion(SelectTestClient.java:264) > > > > at SelectTestClient.main(SelectTestClient.java:319) > > > > > > > > How can I make Orion aware that the database has changed? > > > > > > > > Thank you, > > > > Danut > > > > > > > > > > > > _ > > > > Do You Yahoo!? > > > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > > > > > > > > > _ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Too much caching? - the database has changed
Thank you for your advise but I am afraid I do not have time. I have to deal with new things especially working with Orion, WebLogic, WebSphere (and each of them has many things different than the others) and also learn how to administer and program under Oracle (plus learn Java!) and finish everything by ... yesterday. I just came up withy an idea that makes sense for my level of understanding and I didn't think it will offend someone. I thought it is a free discussion list that doesn't have restriction rules and anyone who needs help can ask for it. Danut who was not born a guru At 06:15 PM 2/6/2001 +0100, Robert Krueger wrote: >At 10:29 06.02.2001 , you wrote: >>Thanks for the help Tim. >>I am not sure I like this solution. Why do I have to go and change this >>in the application-deployments folder? The same question applies to the >>table name for the CMP Beans. How do I choose a table name different than >>the default one without touvhign the application-deployments folder? >> >>Wouldn't make more sense if I can change these things in the >>"ejb-jar.xml" that is part of the EJB package? > >please do some spec reading and find out about separation of >responsibilities and roles and the general ejb/j2ee deployment concept. >that will answer your questions. it doesn't make much sense to work with a >product like orion not having understood those fundamental concepts. this >not meant as a flame but advice (as many of orion oldtimers will confirm I >hope). > >regards, > >robert > >>Danut >> >>At 08:55 PM 2/5/2001 -0500, Tim Endres wrote: >>>Check the docs. There is a flag that you need to set to tell Orion >>>that is does not have "exclusive" access to the database, and that >>>it needs to recognize when a record is updated by a program other >>>than Orion. >>> >>>I believe you need to look at the "exclusive-write-access" attribute >>>of the element in orion-ejb-jar.xml. >>> >>>tim. >>> >>> > Two more things. >>> > >>> > 1. On the server side I get the following >>> > >>> > CMPSelectTestEJB() >>> > setEntityContext >>> > ejbCreate( 10, Name 10, Address 10 ) >>> > Entity 10 passivated >>> > java.lang.Throwable >>> > at com.evermind.server.ejb.EntityEJBHome.ail(JAX) >>> > at com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) >>> > at >>> > CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity >>> > HomeWrapper19.java:377) >>> > at java.lang.reflect.Method.invoke(Native Method) >>> > at com.evermind.server.rmi.bc.do(JAX) >>> > at com.evermind.util.f.run(JAX) >>> > ejbPassivate( 10, Name 10, Address 10 ) >>> > >>> > There is no record with ID = 10, name = "Name 10" and address = >>> "Address 10". >>> > >>> > 2. The exactly same code for EJB, client and the same database work >>> fine on >>> > WebLogic. >>> > >>> > I am using Orion 1.4.5. >>> > >>> > Danut >>> > >>> > >>> > I am having a problem. >>> > I am creating some records using some BMP and CMP EJBs. While Orion is >>> > still running I am deleting the records using a simple JDBC client. >>> > >>> > When I try to ccreate the same records again I get an exception that says >>> > javax.ejb.DuplicateKeyException: Entity already exists >>> > at com.evermind.server.rmi.ba.invokeMethod(JAX) >>> > at com.evermind.server.rmi.a1.invoke(JAX) >>> > at com.evermind.server.rmi.a2.invoke(JAX) >>> > at __Proxy1.create(Unknown Source) >>> > at SelectTestClient.CreateRecords(SelectTestClient.java:102) >>> > at SelectTestClient.TestOrion(SelectTestClient.java:264) >>> > at SelectTestClient.main(SelectTestClient.java:319) >>> > >>> > How can I make Orion aware that the database has changed? >>> > >>> > Thank you, >>> > Danut >>> > >>> > >>> > _ >>> > Do You Yahoo!? >>> > Get your free @yahoo.com address at http://mail.yahoo.com >>> > >>> > >> >> >>_ >>Do You Yahoo!? >>Get your free @yahoo.com address at http://mail.yahoo.com >> > >(-) Robert Krüger >(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH >(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, >(-) Tel: 06151 665401, Fax: 06151 665373 >(-) [EMAIL PROTECTED], www.signal7.de _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
RE: Too much caching? - the database has changed
I think I have explained this for Eric Hodges here or in EJB-INTEREST Danut, can you check the archives, please? Also, on the same line in my previous responses to Eric, I agree with Robert. read the spec (no offense intended) JP > -Original Message- > From: Robert Krueger [mailto:[EMAIL PROTECTED]] > Sent: Martes, 06 de Febrero de 2001 14:16 > To: Orion-Interest > Subject: Re: Too much caching? - the database has changed > > > At 10:29 06.02.2001 , you wrote: > >Thanks for the help Tim. > >I am not sure I like this solution. Why do I have to go and > change this in > >the application-deployments folder? The same question > applies to the table > >name for the CMP Beans. How do I choose a table name > different than the > >default one without touvhign the application-deployments folder? > > > >Wouldn't make more sense if I can change these things in the > "ejb-jar.xml" > >that is part of the EJB package? > > please do some spec reading and find out about separation of > responsibilities and roles and the general ejb/j2ee > deployment concept. > that will answer your questions. it doesn't make much sense > to work with a > product like orion not having understood those fundamental > concepts. this > not meant as a flame but advice (as many of orion oldtimers > will confirm I > hope). > > regards, > > robert > > >Danut > > > >At 08:55 PM 2/5/2001 -0500, Tim Endres wrote: > >>Check the docs. There is a flag that you need to set to tell Orion > >>that is does not have "exclusive" access to the database, and that > >>it needs to recognize when a record is updated by a program other > >>than Orion. > >> > >>I believe you need to look at the "exclusive-write-access" attribute > >>of the element in orion-ejb-jar.xml. > >> > >>tim. > >> > >> > Two more things. > >> > > >> > 1. On the server side I get the following > >> > > >> > CMPSelectTestEJB() > >> > setEntityContext > >> > ejbCreate( 10, Name 10, Address 10 ) > >> > Entity 10 passivated > >> > java.lang.Throwable > >> > at com.evermind.server.ejb.EntityEJBHome.ail(JAX) > >> > at > com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) > >> > at > >> > > CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity > >> > HomeWrapper19.java:377) > >> > at java.lang.reflect.Method.invoke(Native Method) > >> > at com.evermind.server.rmi.bc.do(JAX) > >> > at com.evermind.util.f.run(JAX) > >> > ejbPassivate( 10, Name 10, Address 10 ) > >> > > >> > There is no record with ID = 10, name = "Name 10" and address = > >> "Address 10". > >> > > >> > 2. The exactly same code for EJB, client and the same > database work > >> fine on > >> > WebLogic. > >> > > >> > I am using Orion 1.4.5. > >> > > >> > Danut > >> > > >> > ===> >> > I am having a problem. > >> > I am creating some records using some BMP and CMP EJBs. > While Orion is > >> > still running I am deleting the records using a simple > JDBC client. > >> > > >> > When I try to ccreate the same records again I get an > exception that says > >> > javax.ejb.DuplicateKeyException: Entity already exists > >> > at com.evermind.server.rmi.ba.invokeMethod(JAX) > >> > at com.evermind.server.rmi.a1.invoke(JAX) > >> > at com.evermind.server.rmi.a2.invoke(JAX) > >> > at __Proxy1.create(Unknown Source) > >> > at > SelectTestClient.CreateRecords(SelectTestClient.java:102) > >> > at SelectTestClient.TestOrion(SelectTestClient.java:264) > >> > at SelectTestClient.main(SelectTestClient.java:319) > >> > > >> > How can I make Orion aware that the database has changed? > >> > > >> > Thank you, > >> > Danut > >> > > >> > > >> > _ > >> > Do You Yahoo!? > >> > Get your free @yahoo.com address at http://mail.yahoo.com > >> > > >> > > > > > > >_ > >Do You Yahoo!? > >Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > (-) Robert Krüger > (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH > (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, > (-) Tel: 06151 665401, Fax: 06151 665373 > (-) [EMAIL PROTECTED], www.signal7.de > >
Re: Too much caching? - the database has changed
You should not be changing the deployment folder files directly, except to check to see if something works. You should create your own orion-ejb-jar.xml file in your own EAR (or build directory if you deploy directly). Orion will then pickup your version of orion-ejb-jar.xml and add anything else that it needs, and place the result into application-deployments. tim. > Thanks for the help Tim. > I am not sure I like this solution. Why do I have to go and change this in > the application-deployments folder? The same question applies to the table > name for the CMP Beans. How do I choose a table name different than the > default one without touvhign the application-deployments folder? > > Wouldn't make more sense if I can change these things in the "ejb-jar.xml" > that is part of the EJB package? > > Danut > > At 08:55 PM 2/5/2001 -0500, Tim Endres wrote: > >Check the docs. There is a flag that you need to set to tell Orion > >that is does not have "exclusive" access to the database, and that > >it needs to recognize when a record is updated by a program other > >than Orion. > > > >I believe you need to look at the "exclusive-write-access" attribute > >of the element in orion-ejb-jar.xml. > > > >tim. > > > > > Two more things. > > > > > > 1. On the server side I get the following > > > > > > CMPSelectTestEJB() > > > setEntityContext > > > ejbCreate( 10, Name 10, Address 10 ) > > > Entity 10 passivated > > > java.lang.Throwable > > > at com.evermind.server.ejb.EntityEJBHome.ail(JAX) > > > at com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) > > > at > > > CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity > > > HomeWrapper19.java:377) > > > at java.lang.reflect.Method.invoke(Native Method) > > > at com.evermind.server.rmi.bc.do(JAX) > > > at com.evermind.util.f.run(JAX) > > > ejbPassivate( 10, Name 10, Address 10 ) > > > > > > There is no record with ID = 10, name = "Name 10" and address = > > "Address 10". > > > > > > 2. The exactly same code for EJB, client and the same database work > > fine on > > > WebLogic. > > > > > > I am using Orion 1.4.5. > > > > > > Danut > > > > > > > > > I am having a problem. > > > I am creating some records using some BMP and CMP EJBs. While Orion is > > > still running I am deleting the records using a simple JDBC client. > > > > > > When I try to ccreate the same records again I get an exception that says > > > javax.ejb.DuplicateKeyException: Entity already exists > > > at com.evermind.server.rmi.ba.invokeMethod(JAX) > > > at com.evermind.server.rmi.a1.invoke(JAX) > > > at com.evermind.server.rmi.a2.invoke(JAX) > > > at __Proxy1.create(Unknown Source) > > > at SelectTestClient.CreateRecords(SelectTestClient.java:102) > > > at SelectTestClient.TestOrion(SelectTestClient.java:264) > > > at SelectTestClient.main(SelectTestClient.java:319) > > > > > > How can I make Orion aware that the database has changed? > > > > > > Thank you, > > > Danut > > > > > > > > > _ > > > Do You Yahoo!? > > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com >
Re: Too much caching? - the database has changed
At 10:29 06.02.2001 , you wrote: >Thanks for the help Tim. >I am not sure I like this solution. Why do I have to go and change this in >the application-deployments folder? The same question applies to the table >name for the CMP Beans. How do I choose a table name different than the >default one without touvhign the application-deployments folder? > >Wouldn't make more sense if I can change these things in the "ejb-jar.xml" >that is part of the EJB package? please do some spec reading and find out about separation of responsibilities and roles and the general ejb/j2ee deployment concept. that will answer your questions. it doesn't make much sense to work with a product like orion not having understood those fundamental concepts. this not meant as a flame but advice (as many of orion oldtimers will confirm I hope). regards, robert >Danut > >At 08:55 PM 2/5/2001 -0500, Tim Endres wrote: >>Check the docs. There is a flag that you need to set to tell Orion >>that is does not have "exclusive" access to the database, and that >>it needs to recognize when a record is updated by a program other >>than Orion. >> >>I believe you need to look at the "exclusive-write-access" attribute >>of the element in orion-ejb-jar.xml. >> >>tim. >> >> > Two more things. >> > >> > 1. On the server side I get the following >> > >> > CMPSelectTestEJB() >> > setEntityContext >> > ejbCreate( 10, Name 10, Address 10 ) >> > Entity 10 passivated >> > java.lang.Throwable >> > at com.evermind.server.ejb.EntityEJBHome.ail(JAX) >> > at com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) >> > at >> > CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity >> > HomeWrapper19.java:377) >> > at java.lang.reflect.Method.invoke(Native Method) >> > at com.evermind.server.rmi.bc.do(JAX) >> > at com.evermind.util.f.run(JAX) >> > ejbPassivate( 10, Name 10, Address 10 ) >> > >> > There is no record with ID = 10, name = "Name 10" and address = >> "Address 10". >> > >> > 2. The exactly same code for EJB, client and the same database work >> fine on >> > WebLogic. >> > >> > I am using Orion 1.4.5. >> > >> > Danut >> > >> > >> > I am having a problem. >> > I am creating some records using some BMP and CMP EJBs. While Orion is >> > still running I am deleting the records using a simple JDBC client. >> > >> > When I try to ccreate the same records again I get an exception that says >> > javax.ejb.DuplicateKeyException: Entity already exists >> > at com.evermind.server.rmi.ba.invokeMethod(JAX) >> > at com.evermind.server.rmi.a1.invoke(JAX) >> > at com.evermind.server.rmi.a2.invoke(JAX) >> > at __Proxy1.create(Unknown Source) >> > at SelectTestClient.CreateRecords(SelectTestClient.java:102) >> > at SelectTestClient.TestOrion(SelectTestClient.java:264) >> > at SelectTestClient.main(SelectTestClient.java:319) >> > >> > How can I make Orion aware that the database has changed? >> > >> > Thank you, >> > Danut >> > >> > >> > _ >> > Do You Yahoo!? >> > Get your free @yahoo.com address at http://mail.yahoo.com >> > >> > > > >_ >Do You Yahoo!? >Get your free @yahoo.com address at http://mail.yahoo.com > > (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: Too much caching? - the database has changed
Thanks for the help Tim. I am not sure I like this solution. Why do I have to go and change this in the application-deployments folder? The same question applies to the table name for the CMP Beans. How do I choose a table name different than the default one without touvhign the application-deployments folder? Wouldn't make more sense if I can change these things in the "ejb-jar.xml" that is part of the EJB package? Danut At 08:55 PM 2/5/2001 -0500, Tim Endres wrote: >Check the docs. There is a flag that you need to set to tell Orion >that is does not have "exclusive" access to the database, and that >it needs to recognize when a record is updated by a program other >than Orion. > >I believe you need to look at the "exclusive-write-access" attribute >of the element in orion-ejb-jar.xml. > >tim. > > > Two more things. > > > > 1. On the server side I get the following > > > > CMPSelectTestEJB() > > setEntityContext > > ejbCreate( 10, Name 10, Address 10 ) > > Entity 10 passivated > > java.lang.Throwable > > at com.evermind.server.ejb.EntityEJBHome.ail(JAX) > > at com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) > > at > > CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity > > HomeWrapper19.java:377) > > at java.lang.reflect.Method.invoke(Native Method) > > at com.evermind.server.rmi.bc.do(JAX) > > at com.evermind.util.f.run(JAX) > > ejbPassivate( 10, Name 10, Address 10 ) > > > > There is no record with ID = 10, name = "Name 10" and address = > "Address 10". > > > > 2. The exactly same code for EJB, client and the same database work > fine on > > WebLogic. > > > > I am using Orion 1.4.5. > > > > Danut > > > > > > I am having a problem. > > I am creating some records using some BMP and CMP EJBs. While Orion is > > still running I am deleting the records using a simple JDBC client. > > > > When I try to ccreate the same records again I get an exception that says > > javax.ejb.DuplicateKeyException: Entity already exists > > at com.evermind.server.rmi.ba.invokeMethod(JAX) > > at com.evermind.server.rmi.a1.invoke(JAX) > > at com.evermind.server.rmi.a2.invoke(JAX) > > at __Proxy1.create(Unknown Source) > > at SelectTestClient.CreateRecords(SelectTestClient.java:102) > > at SelectTestClient.TestOrion(SelectTestClient.java:264) > > at SelectTestClient.main(SelectTestClient.java:319) > > > > How can I make Orion aware that the database has changed? > > > > Thank you, > > Danut > > > > > > _ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Too much caching? - the database has changed
Check the docs. There is a flag that you need to set to tell Orion that is does not have "exclusive" access to the database, and that it needs to recognize when a record is updated by a program other than Orion. I believe you need to look at the "exclusive-write-access" attribute of the element in orion-ejb-jar.xml. tim. > Two more things. > > 1. On the server side I get the following > > CMPSelectTestEJB() > setEntityContext > ejbCreate( 10, Name 10, Address 10 ) > Entity 10 passivated > java.lang.Throwable > at com.evermind.server.ejb.EntityEJBHome.ail(JAX) > at com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) > at > CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity > HomeWrapper19.java:377) > at java.lang.reflect.Method.invoke(Native Method) > at com.evermind.server.rmi.bc.do(JAX) > at com.evermind.util.f.run(JAX) > ejbPassivate( 10, Name 10, Address 10 ) > > There is no record with ID = 10, name = "Name 10" and address = "Address 10". > > 2. The exactly same code for EJB, client and the same database work fine on > WebLogic. > > I am using Orion 1.4.5. > > Danut > > > I am having a problem. > I am creating some records using some BMP and CMP EJBs. While Orion is > still running I am deleting the records using a simple JDBC client. > > When I try to ccreate the same records again I get an exception that says > javax.ejb.DuplicateKeyException: Entity already exists > at com.evermind.server.rmi.ba.invokeMethod(JAX) > at com.evermind.server.rmi.a1.invoke(JAX) > at com.evermind.server.rmi.a2.invoke(JAX) > at __Proxy1.create(Unknown Source) > at SelectTestClient.CreateRecords(SelectTestClient.java:102) > at SelectTestClient.TestOrion(SelectTestClient.java:264) > at SelectTestClient.main(SelectTestClient.java:319) > > How can I make Orion aware that the database has changed? > > Thank you, > Danut > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > >
Too much caching? - the database has changed
Two more things. 1. On the server side I get the following CMPSelectTestEJB() setEntityContext ejbCreate( 10, Name 10, Address 10 ) Entity 10 passivated java.lang.Throwable at com.evermind.server.ejb.EntityEJBHome.ail(JAX) at com.evermind.server.ejb.EntityEJBObject.releaseContext(JAX) at CMPSelectTestHome_EntityHomeWrapper19.create(CMPSelectTestHome_Entity HomeWrapper19.java:377) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bc.do(JAX) at com.evermind.util.f.run(JAX) ejbPassivate( 10, Name 10, Address 10 ) There is no record with ID = 10, name = "Name 10" and address = "Address 10". 2. The exactly same code for EJB, client and the same database work fine on WebLogic. I am using Orion 1.4.5. Danut I am having a problem. I am creating some records using some BMP and CMP EJBs. While Orion is still running I am deleting the records using a simple JDBC client. When I try to ccreate the same records again I get an exception that says javax.ejb.DuplicateKeyException: Entity already exists at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) at SelectTestClient.CreateRecords(SelectTestClient.java:102) at SelectTestClient.TestOrion(SelectTestClient.java:264) at SelectTestClient.main(SelectTestClient.java:319) How can I make Orion aware that the database has changed? Thank you, Danut _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Too much caching? - the database has changed
I am having a problem. I am creating some records using some BMP and CMP EJBs. While Orion is still running I am deleting the records using a simple JDBC client. When I try to ccreate the same records again I get an exception that says javax.ejb.DuplicateKeyException: Entity already exists at com.evermind.server.rmi.ba.invokeMethod(JAX) at com.evermind.server.rmi.a1.invoke(JAX) at com.evermind.server.rmi.a2.invoke(JAX) at __Proxy1.create(Unknown Source) at SelectTestClient.CreateRecords(SelectTestClient.java:102) at SelectTestClient.TestOrion(SelectTestClient.java:264) at SelectTestClient.main(SelectTestClient.java:319) How can I make Orion aware that the database has changed? Thank you, Danut _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com