• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

ant script to create a JDBC ds on WAS6

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to automate the creation of JDBC datasource need by my webapp before I can use wsdeploy to deploy the app on a WAS6 server.
All I can find about JDBC DS creation on redbooks and otherwise are samples about Jython scripts and manual config.

Could you please help me find out some sample code on how can we create JDBC datasources using ant and then subsequently deploy the webapp to WAS6.
Links to any tutorials even touching the topic of JDBC DS on WAS with ant would be very helpful.
 
author & internet detective
Posts: 40747
827
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Manzar,
Normally, you would create a datasource with jacl/wsadmin. You can still do this and have Ant use <exec> to call a shell script that calls the jacl/wsadmin.

The datasource is one time setup though. So you could set it up separately from your Ant script.
 
Manzar Zaidi
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the guidance Jeanne.
I had ant in mind to help datasource creation from the installer I need to make. I saw the jacl/jython scripts but hoped that ant would be a simpler solution.
Could you please point me to a location where there are more samples of these scripts ? The redbooks datasource example doesnt separate the logic clearly and left me very confused.
 
Jeanne Boyarsky
author & internet detective
Posts: 40747
827
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IBM has some sample scripts.
 
reply
    Bookmark Topic Watch Topic
  • New Topic