File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes how to get server name and version from an EAR 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 » Websphere
Bookmark "how to get server name and version from an EAR" Watch "how to get server name and version from an EAR" New topic
Author

how to get server name and version from an EAR

Suresh Kumar Baddipudi
Greenhorn

Joined: Mar 09, 2009
Posts: 15
hi
i am using websphere application server v6.0 and RAD v6 for developing EJB's
after deploying the EAR in to WAS.. i want to know the server name and version information from the EAR.
but i am unable to find this information from deployment descriptors.
can anyone help me regarding this issue. This is high on priority for me..
thank you
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The EAR can be deployed in any Java EE-compliant server, so you wouldn't expect to find the name of a server in an EAR file. Are you sure you are asking the right question?
Suresh Kumar Baddipudi
Greenhorn

Joined: Mar 09, 2009
Posts: 15
hi paul,
i am asking the right question..
i want to get the answers as server name is "Websphere Application Server" and version is "6.0.2.11" from a deployed EAR
deployed in Webspehere Application Server v6.0.2.11

you can get the answere for Weblogic deployed EAR..
but i want to get from EAR deployed on Websphere Application Server
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Okay. So when you deploy the EAR into Weblogic, where in the EAR do you look for that information?
Suresh Kumar Baddipudi
Greenhorn

Joined: Mar 09, 2009
Posts: 15
by default it will be in either weblogic.xml or weblogic-ejb-jar.xml
i am not sure, in which xml this information present.
Suresh Kumar Baddipudi
Greenhorn

Joined: Mar 09, 2009
Posts: 15
hi paul,
are you there?
please help me in solving this problem.. this is high on priority for me..
thank you
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Suresh Kumar Baddipudi wrote:by default it will be in either weblogic.xml or weblogic-ejb-jar.xml.
And those XML files are in the EAR you deploy, are they?
Suresh Kumar Baddipudi
Greenhorn

Joined: Mar 09, 2009
Posts: 15
yes..

i am using RAD v6 for developing EJB applications,
i think RAD should write this server name and version information in either ejb-jar.xml or ibm-ejb-jar-bnd.xmi
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

So... RAD already puts the weblogic.xml file into your EAR for you?
Suresh Kumar Baddipudi
Greenhorn

Joined: Mar 09, 2009
Posts: 15
RAD by default works with Websphere Application Server
i.e., It creates Deployment Descriptors compatible for WAS only..

I don't know how the Deployment Descriptors created for weblogic, But I knew that the server information presents in EAR
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Suresh Kumar Baddipudi wrote:RAD by default works with Websphere Application Server
i.e., It creates Deployment Descriptors compatible for WAS only..

I don't know how the Deployment Descriptors created for weblogic, But I knew that the server information presents in EAR

Yes, I know how RAD works. That's why I was surprised when you said your weblogic.xml file was in your EAR. But now apparently you aren't saying that. You are only saying it "presents in EAR". I don't know what that means, but at any rate you were asking how you could get some information from your EAR. Now it appears that the information you could formerly get isn't in the EAR after all. So perhaps your question about how to get that information from the EAR wasn't the right one, since the information isn't in the EAR?
 
 
subject: how to get server name and version from an EAR
 
Similar Threads
How to write Build script for the web project with Portal and Data Project.
using hibernate in J2EE app
Problem with entity bean
deploying EAR with wsadmin
use a specific jvm with ant