Hi,
I am using JBoss 4.0.4.GA with EJB3.0
when i try to look up using the below code I get ClassCastException
Code invoking the local home
try {
Context ctx = new InitialContext();
Object ref = ctx.lookup("AttributeServiceLocal");
AttributeServiceLocalHome home = (AttributeServiceLocalHome) ref;
}
I have this code properly working in JBoss 4.0.1 and EJB 2.1
Can any one help on this?
Thanks in advance.
Hi !
do you have an EJB3 app ? Sounds like this ("I am using JBoss 4.0.4.GA with EJB3.0").
EJB3 does not contain home interfaces, so I wonder how you managed to create "AttributeServiceLocalHome" ;-).
Hope this helps