[jboss-user] [EJB] - Local object is returned as NULL

rahulsoni do-not-reply at jboss.com
Mon Aug 24 09:51:56 EDT 2009


The problem is  "LocalHome object is getting created but when Local object is being created, the local object is returned as NULL"

Sample Code is as follows

SubFleetAlignmentEntityLocalHome objSubFleetAlignmentEntityLocalHome = SubFleetAlignmentEntityLocalHome)getEntityLocalEJBRef(BMSApplicationConstants.FLEET_ALIGNMENT_ENTITY_JNDI);

SubFleetAlignmentEntityLocal objSubFleetAlignmentEntityLocal= (SubFleetAlignmentEntityLocal)objSubFleetAlignmentEntityLocalHome.create();

objSubFleetAlignmentEntityLocal.align(objSubFleetAlignmentDTO,con); // this line throws null pointer as objSubFleetAlignmentEntityLocal is null.

Thanks
Rahul Soni

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

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



More information about the jboss-user mailing list