• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Weblogic CMP Beans

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic