How can I make orion stop caching my EBs?
Hello, I have an application that uses some EBs. The underlying data on which the EBs are mapped is modified by an external application. Orion caches the entity beans, so I don't see the DB modifications immediately in the beans. How can I make orion stop caching my EBs? Thanks, Cristian
Re: AutoGen Primary Key for Entity Beans
integer - Original Message - From: Michael Shoemaker [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Saturday, March 16, 2002 4:57 PM Subject: AutoGen Primary Key for Entity Beans I see on the orion support page the use of com.evermind.ejb.CounterUtils.getNextID(). Anyone use this? What does this method return? String? Long? Integer? http://www.orionsupport.com/articles/ejbuniquecounter.html _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Showing Error Messages
Yes, that's normal. - Original Message - From: Deniz Bocek [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 1:57 PM Subject: Showing Error Messages Hi all, I have Following problem: If my jsp files or servlets has a error -sytax error or any java error- it shows only The page Could not be displayed. HTTP 500 Internal Server Error. No more than this. normally it should say for example syntax error onlie XX in aaa.jsp some think like this.. What could be the problem? or Is this normal for orion? Thanxx..
Re: How does passivation work?
Taking your advice, I did some forther investigation in this matter. Indeed, there are several DELETE - INSERT statements in the Oracle Logs. I am using some iterators to go through table-mapped lists. I saw that operations on those lists are done through SELECT statements in the DB. Is it possible that one of those iterators may trigger a DELETE - INSERT statement? Thanks, Cristi - Original Message - From: Scott Farquhar [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, March 08, 2002 12:46 AM Subject: Re: How does passivation work? Probably the easiest way to solve this would be to turn database logging on, and then see what SQL statements are being run on your db when Orion runs. Cheers, Scott Cristian Donciulescu wrote: I am interested to know how does Orion Container treat the ejbPassivate method of an CMP entity-bean. Does it by any chance Deletes a record in the DB and then recreates it? The problem I'm facing is the following: I have a one-to-many relationship in the DB. I have one entity bean (A) that has a List member. The list member contains objects of class B. If I reinforce the FK constraint between the tables entity A and class B are stored in, I get an Oracle error stating the there was a FK violation, there were child records found. If I create the child table with the ON DELETE CASCADE directive, the error dissapears, but in the DB the child record is deleted and only the parent remains. The error is thrown immediately after the ejbPassivate is called. This suggests that during passivation the parent record is deleted and recreated. When the tables are created with ON DELETE CASCADE this works, although the child is permanently deleted. Otherwise, when trying to delete the parent Oracle reacts with an error that is caught by me. Is all this true? If yes, is there any way around it? Thanks, Cristi -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
How does passivation work?
I am interested to know how does Orion Container treat the ejbPassivatemethod of an CMP entity-bean. Does it by any chance Deletes a record in theDB and then recreates it?The problem I'm facing is the following: I have a one-to-many relationshipin the DB. I have one entity bean (A) that has a List member. The listmember contains objects of class B. If I reinforce the FK constraint betweenthe tables entity A and class B are stored in, I get an Oracle error statingthe there was a FK violation, there were child records found. If I createthe child table with the ON DELETE CASCADE directive, the error dissapears,but in the DB the child record is deleted and only the parent remains. Theerror is thrown immediately after the ejbPassivate is called. This suggeststhat during passivation the parent record is deleted and recreated. When thetables are created with ON DELETE CASCADE this works, although the child ispermanently deleted. Otherwise, when trying to delete the parent Oraclereacts with an error that is caught by me.Is all this true? If yes, is there any way around it?Thanks,Cristi
Stored procedures and J2EE
Is it possible (and recommended) to use stored procedures with the J2EE architecture? We would be interested in creating objects directly into the database, bypassing the create method of the enterprise bean. Is this possible when using CMP (Container Managed Persistence)? If not, in your opinion, which is best: using BMP and stored procedures or using CMP? Example: We have an Oracle DB that uses packages associated to the business objects of the system. These packages contain the PL/SQL methods of the corresponding business objects. Additionally every business objects fields are stored as columns of a specific table. The constructor of a business object is also a method in the associated package. The inheritance relation between two objects is modeled by making the primary key of the child objects table reference the primary key field of the parent objects table. This reference means that the child inherits the fields of the parent. Thus, the constructor of a child object, which is passed all the parameters required for itself and its parents initialization, will call the constructor of its parent passing the appropriate parameters. The question is: How could such constructors be used without conflicting with the create methods of the CMP entity beans?Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: Stored procedures and J2EE
Thanks for your help. The reasonI want to use stored procedures it that we want to make use of a datamodel that we already have. This data-model uses stored procedures intensively. What would you suggest? Keep the data model as is and adapt the J2EE code to it or change the data-model so that we don't use the storedprocedures that much?Christian From: "The elephantwalker" <[EMAIL PROTECTED]> Reply-To: Orion-Interest <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Subject: RE: Stored procedures and J2EE Date: Thu, 6 Sep 2001 02:23:29 -0700 A bean is just a representation of data in a datastore with a collection of finder and business methods. You can use cmp's to access data which is already in a datastore. A stateless session bean can be used to fire off your create procedures, and this slsb can be in your cmp create (or not, for that matter). As for distributing your business logic between the datastore and middle tier...aren't you making your life more complex than it needs to be? There is absolutely no hit on performance if you pull out all of your business logic into a slsb or cmp...there's just no need to use store procedures any more. If you are doing this to filter your output or because you need custom joins, etc. there are much easier ways to do this...such as using a custom finder method in orion (its a five minute job in the orion-ejb-jar.xml file) or a slsb. regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cristian Donciulescu Sent: Thursday, September 06, 2001 1:41 AM To: Orion-Interest Subject: Stored procedures and J2EE Is it possible (and recommended) to use stored procedures with the J2EE architecture? We would be interested in creating objects directly into the database, bypassing the create method of the enterprise bean. Is this possible when using CMP (Container Managed Persistence)? If not, in your opinion, which is best: using BMP and stored procedures or using CMP? Example: We have an Oracle DB that uses packages associated to the business objects of the system. These packages contain the PL/SQL methods of the corresponding business objects. Additionally every business objects fields are stored as columns of a specific table. The constructor of a business object is also a method in the associated package. The inheritance relation between two objects is modeled by making the primary key of the child objects table reference the primary key field of the parent objects table. This reference means that the child inherits the fields of the parent. Thus, the constructor of a child object, which is passed all the parameters required for itself and its parents initialization, will call the constructor of its parent passing the appropriate parameters. The question is: How could such constructors be used without conflicting with the create methods of the CMP entity beans? -- Get your FREE download of MSN Explorer at http://explorer.msn.com Get your FREE download of MSN Explorer at http://explorer.msn.com
Orion and Toghether or JBuilder
Is there a way to integrate Orion Application Server with Together 5.2 or JBuilder 5? We would be interested to know whether we can use the debugger included with Together (JBuilder) for debugging applications deployed on Orion Application Server. Thanks!Get your FREE download of MSN Explorer at http://explorer.msn.com
Oracle and Toghether or JBuilder
Is there a way to integrate Orion Application Server with Together 5.2 or JBuilder 5?I would be interested to know whether we can use the debugger included with Together (JBuilder) for debugging applications deployed on Orion Application Server. ThanksGet your FREE download of MSN Explorer at http://explorer.msn.com