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 <entity-deployment> 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


Reply via email to