Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

output Oracle JServ version dynamically

 
John Bonifas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, All
I'd like to display the current version of the installed JServ container
in a JSP.
I've gotten this far:
Object objJServ = new org.apache.jserv.JServ();

...but when I try this:
objJServ.version();
I get a No Method Found error.
I looked in the JServ javadocs for my version, and it says that the version method is implemented as a method in the JServ() class.
How can I call the version() method so that it works?
Thanx in advance for all who reply,
deck

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One thing to check is to be sure that you are running against the same version of the class as the one you compiled against.
On a different track, you may also be able to get the info you are looking for in a container-generic manner with a call to servletContext.getServerInfo().
bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic