"Lucia Giraldo" wrote in message
news:3f14ffa4$1@newsgroups.bea.com...
>
> Hello!
> I have a servlet in a web application that is deployed in two application

servers
> of different version, one is WebLogic Server 5.1 and the other is WebLogic

Server
> 7; at run time the servlet need to know which is the version of the

application
> server where it's running.
> Can anyone help me?
> Thank you!

You can directly use the static method in weblogic.version called

getReleaseBuildVersion()

A call to weblogic.version.getReleaseBuildVersion(); would do the trick

--

Nagesh