File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Need a help regarding ..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need a help regarding ....." Watch "Need a help regarding ....." New topic

Need a help regarding .....

Venkata Sirish
Ranch Hand

Joined: Apr 09, 2007
Posts: 112
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.

Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
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

Joined: Oct 29, 2001
Posts: 9188

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).

[How To Ask Questions On JavaRanch]
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

That requirement, not including the Weblogic part, sounds exactly like part of the SCJD Project.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Need a help regarding .....
It's not a secret anymore!