This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Weblogic CMP Beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Weblogic CMP Beans" Watch "Weblogic CMP Beans" New topic
Author

Weblogic CMP Beans

John Rainey
Greenhorn

Joined: Dec 05, 2002
Posts: 17
Hi - I'm not looking for a discussion on whether or not to use EJBs, I'm looking for some guidance/opinions on the following questions. The environment is weblogic 8.1, oracle 9x. I would like to hear from people that have used CMP beans in this environment.

1) How well did they scale? What was the number of records that were in the table?

2) It's been hard to find documentation about how to configure the beans. Do you have any good documentation that suggests to settings to use?

Any help would be greatly appreciated.
Olexiy Prokhorenko
Ranch Hand

Joined: Jul 11, 2004
Posts: 97
Originally posted by John Rainey:
Hi - I'm not looking for a discussion on whether or not to use EJBs, I'm looking for some guidance/opinions on the following questions. The environment is weblogic 8.1, oracle 9x. I would like to hear from people that have used CMP beans in this environment.

1) How well did they scale? What was the number of records that were in the table?


I am working with BEA WebLogic 8.1, but using MySQL as database. Probably can't help you with question of scalability - I had about 10K records, and everything works pretty good.

Originally posted by John Rainey:

2) It's been hard to find documentation about how to configure the beans. Do you have any good documentation that suggests to settings to use?


I can help you, everything is pretty easy.
Just tell what problems exaclty do you have, and I will definately help you :-) I hope soon my article about creating and deploying CMP/CMR application with WebLogic 8.1 and MySQL will be published soon, but for now - I can just help you personally.

You can contact me by e-mail, if you want.


<a href="http://www.BossTalks.com" target="_blank" rel="nofollow">http://www.BossTalks.com</a><br />Free advices and help for entrepreneurs: from Idea to IPO<br />Software and IT Project Management forum
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
I'm using CMP/CMR/CMT in WebLogic 7.0sp4 and Oracle 9.2 on Windows XP and Solaris in a production environment. I am, however, not in the systems group -- I wrote the code.

First, a suggestion: use XDoclet or some other tool to generate home and component interfaces, deployment descriptors and value objects. You will save countless hours and avoid frustration this way. Writing deployment descriptors by hand is torture, even with a good XML editor. Keeping them up-to-date is even worse.

The application seems to perform well enough in production. Our development box (for smoke testing) is a two-node cluster, and it seems to sag every so often. Keep in mind though that it gets thrashed, being deployed to constantly, so often the slowness is due to compiling JSPs and empty caches.

Our tables include several tiny ones (1-1000 records) used for lookup and system data and a few more large ones (100,000-1,000,000 records) for user-related data. Unfortunately, I cannot say that the entity caches have been tuned as we don't have anyone with that level of systems experience here (or perhaps no one has made the time?). So I made semi-educated guesses and hoped for the best.

What I can definitely say is that the database continues to be the bottleneck. We're not using entity beans across the board, and the concensus is that it's the uncached JDBC code that is pounding it. One thing that helped a lot is moving to Oracle RAC where the database itself is clustered.

Having said all that -- and not to convince you to do the same -- we are moving away from EJBs entirely. I'm currently prototyping a Spring/Hibernate solution that will use Tangosol Coherence for caching of domain objects. The main reason is that WebLogic is much too expensive given that we're not making use of the other features.

Hibernate will cover persistence very well. We've used this on other projects here with success. Spring will handle the application context and manage business objects. We aren't using any distributed features (web and EJB tiers are co-located), and our minimal usage of JMS could easily be replaced with something simpler. Finally, Tomcat will provide the servlet engine.

It's going to be an interesting jouney, that's for sure!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Weblogic CMP Beans