This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Websphere using JDBC

 
Author
Posts: 144
5
jQuery Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We develop using Eclipse and Tomcat and then deploy to Websphere. We are trying to use JDBC from Websphere. To do this we have to edit the ibm-web-bnd.xmi and add

<?xml version="1.0" encoding="UTF-8"?>
<com.ibm.ejs.models.base.bindings.webappbnd:WebAppBinding xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.ibm.ejs.models.base.bindings.webappbnd="webappbnd.xmi" xmi:id="WebAppBinding_1204038443298" jndiName="jdbc/medtrn" virtualHostName="default_host">
<webapp href="WEB-INF/web.xml#WebApp_1204038443298"/>
</com.ibm.ejs.models.base.bindings.webappbnd:WebAppBinding>

Is there a way for Eclipse to generate this file of something we can add to web.xml to avoid this?

I have seen some things that add resource-ref to the web.xml.

Thanks in advance,
Tom
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The binding files in WebSphere Application Server V6.1 can be pretty cryptic( cross referencing between standard J2EE DD and the IBM .xmi files ).

I would suggest not trying to manually edit those files.

You can bind your resources in your J2EE DD to WebSphere's physical resources at application installation time which will automatically generate this binding file for you.

or

You can download "WebSphere Application Server Toolkit" which is a stripped down version of Rational Application Developer which you can use to develop
your application and create the bindings at development time. If you have a
license for WebSphere Application Server V6.1 then you should have access to the toolkit.

If I missed the intent of your question please let me know as I am not 100% sure I understood the question.
 
You've gotta fight it! Don't give in! Read this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic