Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need a help regarding .....

 
Venkata Sirish
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
 
Nicholas Jordan
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.
 
Joe Ess
Bartender
Pie
Posts: 9259
10
Linux Mac OS X 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).
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic