File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes wrong value being returned Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "wrong value being returned" Watch "wrong value being returned" New topic

wrong value being returned

Sean Rhone

Joined: Dec 13, 2004
Posts: 12
I think this is the correct place for this, if not please excuse me. I have a jsp page that calls a ejb method that is supposed to return version of the package. The code in the bean file is "Package.getPackage(APP_EJB_PACKAGE).getImplementationVersion();" (APP_EJB_PACKAGE = com.estylesoft.cms.ejb).
This method is not erroring out but is not returning any value. From what I can tell the the Manifest.MF file is supposed to contain this value and the file has the following entry

Name: com/estylesoft/cms/ejb/
Specification-Title: Java Utility Classes
Specification-Version: 1.3
Specification-Vendor: Sun Microsystems Inc.
Implementation-Title: com.estylesoft.cms.ejb
Implementation-Vendor: E-Style Soft Case Magagement System

Can anyone here tell me what is wrong; because the jsp is testing for the value of but the method returns a blank string.

Thanks for your help.
anupa oru
Ranch Hand

Joined: Jan 15, 2005
Posts: 118
I am not sure but I guess you have to use getimplementationVersion()than getImplementationVersion().Please excuse me if I am wrong and correct me if possible.
Sean Rhone

Joined: Dec 13, 2004
Posts: 12
Well, there is no option to use getimplementationVersion(). The only option is getImplementationVersion().

But thanks for the idea.
I agree. Here's the link:
subject: wrong value being returned
It's not a secret anymore!