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

Database operation with web dynpro java

Hi,

Our portal installed on MaxDB database.We need to develop web dynpro java application has some database opeartions (insert,update, delete, select) on MaxDB database.

1- Is there a blog or sample how can it be done over MaxDB?

2- Is there exploring tool for MaxDB to create tables?

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 05:45 AM

    Hi,

    To access MAXdb you have to use JDBC connectivity.

    Here is the blog written by Karthikeyan Rammohan which describes JDBC Connectivity with Webdynpro and Max DB

    [BLOG|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7979%3Fpage%3Dlast%26x-showcontent%3Doff%26x-maxdepth%3D0] [original link is broken] [original link is broken] [original link is broken];

    Regards,

    srikanth

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 13, 2009 at 03:21 AM

    hi,

    point 1, it is just pure java programing

    you can go with this:

    ResultSet result = null;

    try

    {

    InitialContext initialcontext = new InitialContext();

    DataSource datasource = (DataSource)initialcontext.lookup("jdbc/<DataSourceName>");

    Connection connection = datasource.getConnection();

    Statement statement = connection.createStatement();

    result = statement.executeQuery( <Query>);

    connection.close();

    } catch (NamingException e) {

    // TODO Auto-generated catch block

    e.printStackTrace();

    } catch (SQLException e) {

    // TODO Auto-generated catch block

    e.printStackTrace();

    }

    2. maxdb has standard client you can use to manage the database

    Best regards,

    john

    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.