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

Database connection from EJB

Hello!

With the NW developrt Studio from Web AS Preview Installation I have created a little application. With the installed sapdb it works fine. The EJBs access the database and get/set there the data properly. Now I want to use another database like Mysql or Oracle. Will I have to add the new database to the JDBC Connector in Visual Administrator or can I change to a not with the sap system installed database only by changing the data-source-aliases.xml? What do I all have to do to get this application work with other databases?

Thanks for help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 20, 2004 at 03:15 PM

    I think you will have to add the Datasource in the Visual Admin since this new DB will have a different driver class (and possibly different URL, uname, password). Link the data-source alias to this new Datasource.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2004 at 03:31 PM

    Well, I have created a new data source for a MySQL database in the JDBC Connector Service. When initial connections are set to 0, it seems to work. Now I wanted to try if the database can be accesed by setting initial connections to 1. With this settings, I get an error:

    ResourceObjectFactory.setSecurityContext(), Exception: com.sap.engine.services.connector.exceptions.BaseResourceException: ConnectionFactory "Domains" does not exist

    "Domains" is the name of the data source that I have created. If I change the users password, I get an unauthorized access error. So I'm certain that the Driver Settings, User Settings and the database URL are correct. Could somebody tell me, what there is possibly still wrong?

    Thanks for help.

    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.