Skip to Content
author's profile photo Former Member
Former Member

Best practices: ext. database access

I've been tasked with using WebDynpro to create a sample report that extracts data from an external database (Oracle). Note that this external data source has absolutely nothing to do with SAP.

I currently have no idea how large the dataset it, but I'm curious how best to develop this with WebDynpro and the table view. I therefore have some (probably pretty basic) questions:

I suspect that I should use entity beans to implement the data layer - is this correct, or is there another way? note that I'm thinking long term, so I'm not looking for a quick-win (JDBC code embedded in the Dynpro component). For the reporting piece, access would obviously be read-only.

How do you handle large data sets? Say I have a table of a million rows - is there a 'built-in' way of scrolling over this dataset with a window of say 50 records? I could pre-load the context with all the data, but for large data sets this would not be possible.

Instead of using an EJB as the direct data-layer interface, how about exposing the EJB via a web service. Then I could query the web service, and restrict the number of rows fetched that way.

Any suggestions folks have would be most welcome. I'm a newbie to WebDynpro and J2EE development, and as such I'm kind of floundering in the large pool of documentation. Any sort of direction would certainly be helpful.

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 11, 2005 at 10:34 PM

    Hi ken

    You could display all the records using a Table UI element of WebDynpro. Pagination is automatic if you use this.

    Regarding your database access you should write it as a separate entity bean or expose EJB as a webservice.These are known as models in WebDynpro.

    A model enables the user to access business data that is outside the Web Dynpro application from within the application.

    You have some predfined models and one of them is a WebService model.You could use this.

    If there is anything else let me know.

    regards

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.