jQuery in Action, 3rd edition
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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

EJB 3.0 Remote interface invocation issue!!

Mohammed Shafique

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

Joined: May 26, 2003
Posts: 32844

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
massimiliano cattaneo

Joined: Jun 30, 2011
Posts: 24

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%]
Don't get me started about those stupid light bulbs.
subject: EJB 3.0 Remote interface invocation issue!!
It's not a secret anymore!