facebook

[Closed] How to configure WAR with Weblogic data source?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #243435 Reply

    FDLE
    Member

    WSAD IDE provides a graphic interface where you can link the JNDI name of your application to the application server data source in web.xml file.

    In MyEclipse, when I try to use the same tag for web.xml, it gives me an error.

    I am using Weblogic Application Server 9.0 integrated with MyEclipse IDE. I have created a war project in the IDE and trying to connect it to the the datasource of the application server.

    Is there anybody, who has done this configuration and can give me a sample?

    -SK

    #243445

    Scott Anderson
    Participant

    SK,

    In MyEclipse, when I try to use the same tag for web.xml, it gives me an error.

    Can you give us some specific details about what you’re doing and what error you’re seeing? And, are you really using Weblogic with WSAD? Since WSAD is typically for WebSphere development I just want to be sure we’re talking about the same thing.

    I also checked Google and here are some good links on configuring JDBC connections in WebLogic:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/weblogicdeploy.html
    http://e-docs.bea.com/wls/docs81/jdbc/programming.html

    #243466

    FDLE
    Member

    Scott,
    I am not using WSAD and Weblogic, I know WSAD is for WebSphere. I was trying to say that when I was working on WSAD and WebSphere combination, it was pretty easy to configure the database part because they have a GUI available for web.xml file and I did nothing but mentioned the JNDI name and the reference name, WSAD did the rest for me. As WSAD creates a “ibm-web-bnd.xmi” file which relates the JNDI name and the resource name mentioned in web.xml by means of the tag mentioned below .

    <resource-ref>
    <res-ref-name>jdbc/somethingds</res-ref-name>
    <res-type>java.lang.Object</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>

    My question is how we are going to achieve the same with MyEclipse and Weblogic Application Server 9.0?

    -SK

    #243480

    FDLE
    Member

    Scott,
    My problem is solved. I added the below mentioned tag in web.xml file and re-installed the war, it works.

    <resource-ref>
    <res-ref-name>jdbc/somethingds</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>

    Thanks,
    -SK

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] How to configure WAR with Weblogic data source?

You must be logged in to post in the forum log in