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

Deployment on Server + Automation + Servlet

 
Ranch Hand
Posts: 42
Android Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a requirement where I have to automate a process by Java. Steps in that process are:

1. Compilation of database script,
2. Generating an xml file,
3. Deploying that xml file on a remote IBM WAS server - This include copying xml file on remote server and then stopping and starting server.

I have created process-definition.xml file (for managing the above workflow) as below


process-definition.xml and a CronServlet is in cronWeb application deployed on an IBM server.

I'm parsing process-definition.xml in CronServlet and executing task as given in process xml file. Servlet is loaded on startup and using java TimerTask, I have set its execution interval.

Could anyone please suggest is it possible/ok to do the XML deployment task by java code. What could be the best way to execute task 3 (deployment task): by java, batch/shell script or by any other means?


P.S. Application server where my cronweb app is deployed and remote server (where I 'm pushing the xml content) are in same network.

'N'
 
nazzy khan
Ranch Hand
Posts: 42
Android Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did anyone get the chance to look into this?

Let me rephrase the problem statement

Deployment of an xml file on a was server by java code
(copying xml file and server restart)

Any suggestion will be highly appreciated

thanks

-N
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can't you just do this with Ant (or similar build tool)? Why are you writing a bespoke program for this?
 
Not so fast naughty spawn! I want you to know about
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic