File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB 3.0 Remote interface invocation issue!! 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 "EJB 3.0 Remote interface invocation issue!!" Watch "EJB 3.0 Remote interface invocation issue!!" New topic
Author

EJB 3.0 Remote interface invocation issue!!

Mohammed Shafique
Greenhorn

Joined: Jan 03, 2012
Posts: 1

Hi i am trying to develope simple EJB Application after a long time & facing a strange problem,
i have developed a simple Enterprise Application , having a Web module & an EJB module,
and using JSP page as a client, in jsp page i have written code like this given below


when i am running application i can see this System.out.println(hel.hello("hi")+ " Returned this") line output on console , but when
i am trying to show this output on my web page using this code

in the same JSP page i am getting null, in fact i tried to debug it, & found that control is not reaching to this
result = result + hel.hello(name); in the above mentioned, later fragment of code.
why it is happening, i have checked all dependencies of EAR file, & WER file, even i m facing this problem, what is my mistake,

Can any one please help me out,
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30751
    
156

What exception is happening here:

You'll need to add code to find out. Right now, the code hides the exception so you can't know what is wrong.

Also, note it is bad practice to put Java code in new JSPs.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
massimiliano cattaneo
Greenhorn

Joined: Jun 30, 2011
Posts: 24

Hello,
Who sets the parameter named "name" ?
if this "name = request.getParameter("name");" return null, all the code is skipped so the behaviour is right.

What is printed by the two lines of code ?

Please use the "code" to post the code in the forum


[SCJP 6.0 88%] [OCPJBCD 6.0 96%] [OCPJWCD 6.0 87%]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 3.0 Remote interface invocation issue!!