File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Duke's Bank app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Duke Watch "Duke New topic
Author

Duke's Bank app

Jose Alvarez de Lara
Ranch Hand

Joined: May 10, 2008
Posts: 92
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

Joined: May 10, 2008
Posts: 92
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

Joined: Jul 20, 2005
Posts: 9912
    
158

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.


[My Blog] [JavaRanch Journal]
Jose Alvarez de Lara
Ranch Hand

Joined: May 10, 2008
Posts: 92
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
 
Consider Paul's rocket mass heater.
 
subject: Duke's Bank app
 
Similar Threads
session.save(Object myPojo) is not working
DeploymentException: Error cant find datasource:
Error creating the dlq connection
JBoss - multiple vagueness
ERROR [DLQHandler] Initialization failed DLQHandler: javax.jms.JMSException: Error creating the dlq