• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Need a help regarding .....

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

This is venkat.

Currently iam in need of developing a swing widget kind of interface through which i need to copy a file from one location to another location(app server location) and restart the weblogic server. can i achieve this using java ?.

Also i need to run initial db scripts.

The file to be transfered and script files are packed in a jar file. upon clicking the jar file i need to open a swing interface which prompts the user to select the path of DB server and finally i need to run the db scripts onto that server.

Can any one please help me to automate the above two manual functionalities.

Thanks for your time.

Regards,
Venkat
 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is something called a file dialog: java.awt.Dialog extended by java.awt.FileDialog with which the needed path(s) may be obtained. To do the db stuff I imagine posting in one of the database fora will be effective.
 
Bartender
Posts: 9615
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be nice to know what version of Weblogic you are using.
There are a number of services that Weblogic makes available for controlling a server. Consult your server version documentation here.
If those API's don't provide the functionality you require, you can always use the java.lang.ProcessBuilder to execute the Weblogic startup and shutdown scripts (as well as your database scripts).
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That requirement, not including the Weblogic part, sounds exactly like part of the SCJD Project.

Mark
 
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic