File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Duke's Bank app

 
Jose Alvarez de Lara
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have some problems when calling some local-home interfaces from the ejbCreate method of a Session Bean. My code is as followes:



where the ACCOUNT_CONTROLLER_EJBHOME, CUSTOMER_CONTROLLER_EJBHOME and TX_CONTROLLER_EJBHOME are the session bean that access to my ACCOUNT_EJBHOME, ACCOUNT_EJBHOME and TX_EJBHOME on their respectively ejbCreate method.

The way to call the diferents EJBs is as followes,



but when I try it, the first call to the session bean works ok, but from the ejbCreate of this session bean I cannot call the entities beans. The system throws an exception,



This is in case I name the entities "java:comp/env/ejb/myEJB" because if I just name the ejb something like myEJB, the exception should be



The question is that the entities interfaces are locals so I do not know the way to call them.

Any help, please?

Thank you,
Jose Alvarez de Lara
 
Jose Alvarez de Lara
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have solved my problems with the JNDI and the desktop client works ok.
But I have no idea of how the web client works. I have been googling and I have discovered a new class ContextListener that I do not know what is its function in the web app.

Please, help.
Jose Alvarez de Lara
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jose Alvarez de Lara:


I have solved my problems with the JNDI and the desktop client works ok.
But I have no idea of how the web client works. I have been googling and I have discovered a new class ContextListener that I do not know what is its function in the web app.



Can you please provide more details about what exception you are running into? I believe you fixed your earlier JNDI exception, didn't you? If not, let us know - it's just a case of incorrect JNDI name being used for the lookup.
 
Jose Alvarez de Lara
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your interesting.

I have got the problem. It is in the class DefinitionTag that extends SimpleTagSupport. In the method,



the line ArrayList params = (ArrayList) screens.get(this.screenId); returns null, so the rest of the code



returns on the console the message: "DefinitionTag: params are not defined."

And it is because the value of this.screenId is,

"${requestScope['javax.servlet.forward.servlet_path']}"

that belong to screendefinitions.jspf as follow,



I think the value might to be "/main", "/transferFunds", etc...
and this is my problem.

Will you help me?

Best regards,
Jose Alvarez de Lara
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic