To use Entity Bean or Oracle stored Package?

Currently, in my project, Weblogic8.1 and Oracle is used, but lots of business logic is implemented using Oracle stored Packages, many of these packages have a package level readonly lookup table(like index-by table or nested table), which is populated with data from database, once the package is called, and is accessed very often in subsequent calls of stored procedures.
Since, in Weblogic server, a connection pool is maintained, and those package level lookup tables would be stored as session data in oracle PGA, I'm afraid this might cause oracle database server to be overloaded.
to fully take advantage of middleware cache service that weblogic provide, should I move those business logic out of oracle and implement them using like read only entity bean?
any help appreciated!

Its very hard to say without knowing the usage patterns of the data. It sounds like you have a lot of read-only entities. These could be spread around a WLS cluster, therefore there is more scalability and performance with this option. However, I would not neccessarily rewrite business logic from SP into EJB just for middle-tier caching.
If its a DB intensive app with lots of SQL, then if the calls are within SP's, there is only 1 call from WLS and the DBA ought o be able to tune the DB usin read-ahead and other DBA semantics. If there is locality of reference in the data, again, DB can use read-ahead better than WLS, although RO cache in middle is more scalable than DBMS.
I wouldnt rewrite business logic from SP to EJB/Entity beans to take advantage of cache, especially if there is no locality of read-only reference to data. Oracle could do this better in my opinion, especially if SP's already exist
Need for information on the usage patterns of the data - how is it CRUD'd.
I would use-case the steel threads and put them under test load to see if the SP's really are an issue, since this is an architecture decision. What state is the project at? Live/Dev? Inception?

Similar Messages

  • Insert data into table from JSP page using Entity Beans(EJB 3.0)

    I want to insert data into a database table from JSP page using Entity Beans(EJB 3.0).
    1. I have a table 'FRIENDS', (in Oracle 10g database).
    2. It has two columns, 'NAME' and 'CITY'. Both have datatype strings(varchar2).
    3. Now from a JSP page, having two textfields, 'NAME' and 'CITY', I want to insert data into table 'FRIENDS'.
    4. In between JSP and database is a Entity Bean(EJB 3.0) and a stateless session bean.
    5. I am using JDev as editor.
    Please provide me code ASAP or link with similar example.
    Thank you.
    Anurag

    Hi,
    I am also trying that scenario. So u can
    Post the jsp form data to a Servlet which will act as a Controller.
    In the servlet invoke the business method.
    Similar kind of app is in www.roseindia.net
    Hope this would help u.
    Meanwhile if u get any optimal solution, pls post it.
    Thanks,
    Happy Java Coding.

  • Data Warehouse report query using Entity Beans

    I have used the EJB technology on one project, so I am not all that familiar with
    best practices.
    In my new project, I have to produce reports using a query that goes against a
    dimensional database. I am wondering what options I have to run the query and
    extract the results given that the application will run on WebLogic.
    1) Straight JDBC
    2) BMP
    3) CMP (could be a problem because the quety is a join query, but I am not sure
    if WebLogic requires that the query is against a table rather than a view)
    The query is read-only. I am more interested in ease of coding and code management
    rather than application performance at this point because I think the query will
    spend a relatively large time executing on the Oracle database.
    I would like to hear the best practices to be employed in this case. Thanks very
    much!
    Ravi.

    Don't use entity beans for this. Straight JDBC is not perfect either, but it
    is preferable to entity beans for this type of work.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    Clustering Weblogic? You're either using Coherence, or you should be!
    Download a Tangosol Coherence eval today at http://www.tangosol.com/
    "Ravi Navanee" <[email protected]> wrote in message
    news:3c92693d$[email protected]..
    >
    I have used the EJB technology on one project, so I am not all thatfamiliar with
    best practices.
    In my new project, I have to produce reports using a query that goesagainst a
    dimensional database. I am wondering what options I have to run the queryand
    extract the results given that the application will run on WebLogic.
    1) Straight JDBC
    2) BMP
    3) CMP (could be a problem because the quety is a join query, but I am notsure
    if WebLogic requires that the query is against a table rather than a view)
    The query is read-only. I am more interested in ease of coding and codemanagement
    rather than application performance at this point because I think thequery will
    spend a relatively large time executing on the Oracle database.
    I would like to hear the best practices to be employed in this case.Thanks very
    much!
    Ravi.

  • CMP Entity Beans in Oracle 9iAS

    Hi!
    I've deployed entity beans into Oracle 9iAS, but keep getting the following error each time I try to lookup the bean:
    "javax.naming.NamingException: Unknown reasons [Root exception is org.omg.CORBA.UNKNOWN: minor code: 16 completed: Maybe]"
    The JNDI name of the bean are ok and I'm calling it correctly. I'm calling my a Session Bean in a similar way and it works fine.
    I'm using JDevloper 3.2.3 to deploy the beans and OAS version is 1.0.2.2.
    Thanks for any advices,
    Sebastian

    gday -
    OC4J implements major portion of the EJB 2.0 PFD1 specification.
    It supports the new container contract and persistence model in PFD1, along with associated new XML DD tags, so yes, it does support abstract implementation EJB classes and abstract accessors definitions.
    It does not support the latest EJB 2.0 PFD2 modifications and also does not support the local/remote interface model, EJB-QL, home methods, etc.
    cheers!
    -steve-

  • Help : Unable to use Java Beans in Oracle forms 6i

    Hi ,
    I have been trying to run few sample code to understand how to use Java beans in oracle forms 6i .But have been largely unsuccessfull.
    It will be great if somebody can provide me with some simple form( and java code )which uses java beans concept to give some data to the java program and receive some data from it . Pls inform me about the settings that need to be done.
    If you guys know it then pls take the pains of writing a simple form and java code.
    i hope somebody will respond because your reply is very necesary for me to proceed.
    U can email me the code > [email protected]
    Thanks in advance.

    Thanks for your reply Francois.
    Actually i am not facing problem understanding the programming technique.
    I think the problem at my end is more of a cofiguration one.I am using forms version 6i
    on oracle 8.
    Every time i set the imlementation class property of the bean area it gives an error 13010 which translates to that "the class being mentioned is not extending the IView class".
    The class i have written extends VBean so i am not sure why this error is occuring.
    I think if oracle (correctly) finds the java class to use then i will be able to proceed.
    Pls reply.
    If you have some code that is working fine then pls send it to me.And also inform is some environment variables have to be set for its use.

  • Disadvantages of using entity beans.

    can I know the disadvantages of using entity beans.

    sigh I guess if someone puts it on a website it must be true...
    "Forces the use of a heavy component mechanism for fine grained business objects."
    Heaviness is not some arbitrary side-effect. It is directly due to the services provided by the EntityBeans (transactions, etc). If you need those services, you pay the price. If you don't then you shouldn't be using EJB to begin with. Also with the advent of LocalInterfaces, fine-grainedness is no longer a liability.
    "More complex than JDO limiting developer productivity."
    Perhaps it has less to do with limited productivity, and more to do with limited developers.
    "More difficult to achieve good performance."
    Compared to a simple data storage mechanism, sure.
    "Inheritance not supported."
    Really? Wow, I guess all the EJB code I've written for the last 3 years doesn't really work.
    "Cannot be used for persistence in non-application server environments."
    Uhh, yeah, but seeing as how the decision to use EJBs is not limited to the persistance scheme, the non-use of an application server is moot.
    "There is no dynamic query mechanism to lookup entity beans (finders are specified at compile time)."
    And what compiled business process (i.e SessionBeans) requires dynamic lookup of arbitrary data? Humans performing search functions can be done via entity beans, but probably should not be done since a large searches do not (or very rarely) need to be transactional.
    "It is not easy to write unit tests for beans as it is not possible to use them outside of the application server."
    For a long time this was true, but there are now many unit test suites designed for J2EE.
    "No support for automatic primary key generation."
    In the spec, no. But it's fairly trivial to implement on your own.
    "Only relational databases are supported."
    If you use CMP, yes. If you use BMP, you can do whatever you want inside your ejbLoad()/ejbStore() methods. Another reason to not use CMP.

  • Can anyone describe using entity beans for persitance in Software Architect

    Can anyone describe using entity beans for persitance in Software Architecture you built for a product?

    Although this forum is supposed to help you gain knowledge on entity beans, its not a free rider that's supposed regurgitate everyone's knowledge to you.
    Read something first and then clarify your thoughts with this forum.

  • WLS 8.1 - Entity Beans CMP - Oracle 10g Audit Tool

    Hi,
    We are defining the architecture of a new application on WebLogic Server 8.1 and Oracle 10g.
    We are thinking in using CMP Entity Beans and we need to integrate our system with Oracle Audit Tool.
    Can anybody give us some information about this issue ?
    Thanks,
    Javier Cano

    I really don't see the point of using CMP with an expensive, fully featured database like Oracle. MySQL or a flat file maybe. Otherwise it is just a waste of purchased resources.

  • Entity Beans in Oracle 8.1.6

    Does the Oracle 8.1.6 version support the Entity Beans?
    I have tried to create an EntityBean thru JDeveloper3.1 and it posts a message that they are not supported.
    Any info?
    Thanks in advance
    [email protected]

    Version 8.1.7 will support them.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Ramana:
    Does the Oracle 8.1.6 version support the Entity Beans?
    I have tried to create an EntityBean thru JDeveloper3.1 and it posts a message that they are not supported.
    Any info?
    Thanks in advance
    [email protected] <HR></BLOCKQUOTE>
    null

  • Generate entity bean from Oracle view fails

    Hello,
    is it possible to create an Entity Bean (v3) from an Oracle View in jDev (Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407)?
    In the wizard I can see my view, select it, specify all the info/details about it, but when clicking 'Finish' I see the "EJB Log" window appearing empty and the entity bean is not created. Already tried it in two different PCs without success.
    thanks!

    You can rename EJB and EJB classes (refactor) by right-clicking on the EJB node in
    project navigagor and selecting "Rename EJB and EJB Classes"
    In the dialog box you would get an option to refactor classes.
    raghu
    JDev Team

  • Database access using Entity Beans

    How does it work? In the examples I've seen, there is no SQL statement
    being generated, and I no code establishing the JDBC bridge...
    What am I missing? How do I look up a record in a database using an
    entity bean?
    Thanks!!!
    -Dan

    The Entity Bean remote interface methods access the database.
    InitialContext ic=new InitialContext();
    EntityBHome eh = (EntityBHome)ic.lookup("com.ejb.EntityBHome");
    EntityB entityB=eh.findByPrimaryKey(primarykey pk);
    [email protected] (Dan M) wrote:
    How does it work? In the examples I've seen, there is no SQL statement
    being generated, and I no code establishing the JDBC bridge...
    What am I missing? How do I look up a record in a database using an
    entity bean?
    Thanks!!!
    -Dan

  • Multiple Database Pooling using Entity Bean

    Hi,
    Can anyone come across this problem? I have an entity bean (BMP). I want to connect to multiple databases(Oracle, My-SQL, MS-SQL Server). The application is like this. if a request come from the client i have to identify the client request and connect to the database. How to do this. How to connect to get the pool from the connection pooling. Please reply its urgent.
    thanks
    Prem

    Thanks for ur reply.
    what the point is i want to identify the client request and send this request to that bean. i have developed 30 cmp beans, if i have to identify i have to change all cmp to bmp, is there any solution to this.

  • How to use Java Beans in Oracle Forms 11g at 64 bit windows7

    Hello Experts,
                  I am using Oracle forms 11.1.2.2.0 with weblogic 10.3.6 generic at windows 7 64 bit.
    My java version is jdk1.7.0_51.
    Now I have a htmlbutton.jar (which is for bean item in oracle form and this jar file works well for oracle forms 11g 32 bit windows 7 environment).
    I have takken steps:
    1:-Put jar file in home\java folder.
    2:-add this jar file into archive in formsweb.cfg.
    3:-Add this this jar file(which is in my home- java folder) in form_class path in registry.
    Now when I try to locate this jar file in my oracle form.There is no such jar file.what are the steps to use this jar file in oracle forms bean item.
    Please told me what is wrong here.
    thank you
    regards
    aaditya.

    It is unclear where you are having a problem.  Is your issue at runtime (when the form runs in the browser) or when working in the Builder on the form?
    Also be aware that you will need to sign your jar and include some new manifest entries.  Refer to the Java 7u51 documentation and blogs that discuss the changes.
    https://blogs.oracle.com/java-platform-group/entry/new_security_requirements_for_rias
    http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/manifest.html

  • Got error when use case statement in oracle stored procedure

    Hi,
    I have a query like:
    select merchant_id,
    case
    when product_type='K' then 'Production'
    when product_carrier='UC' THEN 'Shipping'
    end the_type
    from product_tbl
    where merchant_id=10114
    It works fine. But as soon as I put it into a stored procedure, I got error like:
    Encountered the symbol "CASE" when expecting one of the following:
    ( - + mod null <an identifier>
    Please help!

    Oracle 8i doesn't support CASE into PL/SQL, so as Kamal said, create a view with the CASE, and use this view into your PL/SQL.
    Nicolas.
    And an example here :
    Re: Execute Immediate doesnot work in 8i (8.1.7) and Ref Cursor not exec qu
    Sorry Kamal.
    Message was edited by:
    N. Gasparotto

  • Getting Error while trying to create table using entity beans

    This is the output on console.
    javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; neste
    d exception is: javax.ejb.EJBException: nested exception is: java.sql.SQLExcepti
    on: [Oracle][ODBC][Ora]ORA-00942: table or view does not exist
    javax.ejb.EJBException: nested exception is: java.sql.SQLException: [Oracle][ODB
    C][Ora]ORA-00942: table or view does not exist
    java.sql.SQLException: [Oracle][ODBC][Ora]ORA-00942: table or view does not exis
    t
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6879)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7036)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3104)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedState
    ment.java:214)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQuery(JdbcOdbcPrepared
    Statement.java:89)
    at com.sun.ejb.persistence.PersistenceManagerImpl.primaryKeyExists(Persi
    stenceManagerImpl.java:289)
    at com.sun.ejb.persistence.PartitionImpl.afterEjbCreate(PartitionImpl.ja
    va:640)
    at CallerBean_PM.ejbCreate(CallerBean_PM.java:96)

    This is the output on console.
    javax.ejb.TransactionRolledbackLocalException:
    Exception thrown from bean; neste
    d exception is: javax.ejb.EJBException: nested
    exception is: java.sql.SQLExcepti
    on: [Oracle][ODBC][Ora]ORA-00942: table or view does
    not exist
    javax.ejb.EJBException: nested exception is:Look at what the bolded text is telling you. This could be because:
    1. The table/view actually does not exist in the oracle instance that you've connected to
    2. OR, the user id that you used to connect to the db does not have the right permissions granted to it.

Maybe you are looking for