on 08-04-2005 2:00 PM
Hello,
i want to get all results from my table. Therefore i created an entity bean with a new finder method ejbFindAll which returns a Collection.
In my stateless session bean i am instantiating the entity bean in this way:
+CustomerLocalHome myCustomerLocalHome = null;
Context myContext = new InitialContext();
myCustomerLocalHome =(CustomerLocalHome) myContext.lookup("/bsp_ear/CustomerBean");+
When i now call the method in this way:
+ myCustomerLocalHome.findAll();+
i get a ClassCastExcetpion.
Does anybody know what this causes?
I tried for hours an could not find a solutions
Thanks for help,
André
Hi Andre,
Just a suggestion.
In your deployment descriptor what class you have written against EJBNAME ?Is tht CustomerLocalHome??
Rdgs,
Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.