Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Duke's Bank app

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic