Parameter « ejb « Java Enterprise Q&A

1. Configure EJB3 with web.xml like parameters

I'd like to pass some parameters to a stateless session bean. I'd like to do something like I do when I configure a Servlet initial parameters in the web.xml file. Thanks ...

2. Is it wrong to pass EJBs as parameters to helper classes?

I'm in the situation where I need to create a cache to store certains values which need to be updated from the database. Since this cache needs to be singular, some ...

3. Dynamically Get Properties Filename in EJB Jar (deployed in ear)

When creating/deploying war files, I use a in my web.xml to define which property file to use:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="" xmlns:xsi=""

4. Could not locate named parameter

I' ve two applciations developed using AndroMDA - struts, ejb, hibernate When i deploy them in jboss 4.2.3, one gives following error: Caused by: org.hibernate.HibernateException: could not locate named parameter [password] at org.hibernate.engine.query.ParameterMetadata.getNa medParameterDescriptor( at org.hibernate.engine.query.ParameterMetadata.getNa medParameterExpectedType( ) at org.hibernate.impl.AbstractQueryImpl.determineType ( at org.hibernate.impl.AbstractQueryImpl.setParameter( at com.tcs.lms.entity.lmsUserInfoFactory.validateUser ( at mpl.handleValidateUser(LoyaltyManagementServiceBea Hibernate cfg file generated by AndroMDA is : property name="connection.datasource">java:/jdbc/LMS ...