File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes How to get the achieve Version of deployed webservices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to get the achieve Version of deployed webservices" Watch "How to get the achieve Version of deployed webservices" New topic
Author

How to get the achieve Version of deployed webservices

Bharath Muthuraman
Greenhorn

Joined: Dec 04, 2009
Posts: 2
Hello,

I'm deploying the webservices in Weblogic 10g3 using the WLST scripts. I need to confirm whether I have deployed the right version of webservice.
So I need to print the achieve version in the console of WLST while deploying.

How I can get the archive version using WLST script from Manifest file or WEB.xml file.

Any way to do that???

Thanks in Advance
Bharath
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

How are you saving this version ? Inside the manifest / web.xml / a properties file ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Bharath Muthuraman
Greenhorn

Joined: Dec 04, 2009
Posts: 2
Hi Deepak,

I'm having the archive version in Manifest file and also I am having it in WEB.XML under

<context-param>
<description>Application Version</description>
<param-name>AppVersion</param-name>
<param-value>02_00_02</param-value>
</context-param>

Please let me know how I can access it.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

How about using an XML ant task that will read the XML and print out the value ? Something similar to what is done here

http://marc.info/?l=ant-user&m=121750028216204&w=2

I am not sure if WLST can call ant build.xml. Or you could write a small python script to do this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get the achieve Version of deployed webservices
 
Similar Threads
How to specify “Copy this application onto every target of me” option while using WLST deploy cmd
Checking active sessions connected to weblogic
create ALSB 3 domain with WLST - alsb system user authentication failed
Trouble running a WLST snippet
Getting war and ear files to work on Weblogic 10.3