private void throwCannotInstanciateUnsupported ( EJBBinding binding , JavaColonNamespace jndiType , String lookupName , String messageId ) throws NameNotFoundException { J2EEName j2eeName = getJ2EEName ( binding ) ; String jndiName = jndiType . toString ( ) + "/" + lookupName ; String msgTxt = Tr . formatMessage ( tc , messageId , binding . interfaceName , j2eeName . getComponent ( ) , j2eeName . getModule ( ) , j2eeName . getApplication ( ) , jndiName ) ; throw ( new NameNotFoundException ( msgTxt ) ) ; }
Internal method to throw a NameNotFoundException for unsupported Home and Remote interfaces .