This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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.
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).