This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Websphere and the fly likes using xml to configure an application server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "using xml to configure an application server" Watch "using xml to configure an application server" New topic
Author

using xml to configure an application server

Jun Hong
Ranch Hand

Joined: Sep 05, 2001
Posts: 181
I have an application running on WAS 4.0 on Solaris. I wrote a Makefile to build the .ear file. The goal is to deploy this .ear on a new application server automatically. WSCP takes time to learn. So, I am trying to avoid it.
Hopefully, I can export the configuration of my current machine to an XML file. On the new machine, the XML file will be imported to configure the application server.
Did somebody do this before? I don't know what will happen to .ear file. Should I put it in installedApps, and the new application server will pick it up? I image things, such as Data Source, Database Driver will work fine.
Am I in the right track?
Jun Hong

Jun Hong<br />SCJP, SCJD, SCWCD, SCEA<br />IBM Certified Systems Expert(V4.0)
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
If you are talking about using XMLConfig -- yes, it will work but only so far. It can create datasources, etc. as you describe, but there are other things it can't do. The whole answer is that no, you are not on the right track. You need to buckle down and learn WSCP. It's not that hard, really! WSCP has capabilities that XMLConfig doesn't.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Jun Hong
Ranch Hand

Joined: Sep 05, 2001
Posts: 181
Hi Kyle,
Thank you for your reply and it is very helpful. I will spend some time on learning WSCP.
Jun Hong
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
No problem Jun. One of the things that some people don't realize is that WSCP is really nothing more that TCL (tool control language) with some additional WebSphere libraries. So go get a good book or intenet tutorial on TCL (personally, I like O'Reilly's book: http://www.oreilly.com/catalog/tclnut/) and then gain the WebSphere specifics from the documentation and online help.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
Vijay Bala
Greenhorn

Joined: Oct 25, 2001
Posts: 25
Hi,
Could soembody give some examples of things that WSCL can do that xmlconfig can't do ?
Thanx,
Vijay
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: using xml to configure an application server