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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to