[jboss-user] [EJB/JBoss] - Look up Problem using JBoss 4.0.4.GA with EJB3.0

levonsh do-not-reply at jboss.com
Tue Sep 12 08:22:56 EDT 2006


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970987#3970987

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970987



More information about the jboss-user mailing list