Index: CallEjbPanel.java =================================================================== RCS file: /cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ui/logicalview/entres/CallEjbPanel.java,v retrieving revision 1.14 diff -u -r1.14 CallEjbPanel.java --- CallEjbPanel.java 7 Apr 2005 12:55:15 -0000 1.14 +++ CallEjbPanel.java 12 Apr 2005 20:37:15 -0000 @@ -383,20 +383,10 @@ String errorMessage = " "; //NOI18N boolean shouldEnableLocal = true; boolean shouldEnableRemote = true; - if (ejbReference.supportsLocalInvocation()) { - if (referenceExists(ejbReference.createLocalRef().getLocalHome())) { - shouldEnableLocal = false; - errorMessage = NbBundle.getMessage(CallEjbPanel.class, "LBL_LocalRefExists"); //NOI18N - } - } else { + if (!ejbReference.supportsLocalInvocation()) { shouldEnableLocal = false; } - if (ejbReference.supportsRemoteInvocation()) { - if (referenceExists(ejbReference.createRef().getHome())) { - shouldEnableRemote = false; - errorMessage = NbBundle.getMessage(CallEjbPanel.class, "LBL_RemoteRefExists"); //NOI18N - } - } else { + if (!ejbReference.supportsRemoteInvocation()) { shouldEnableRemote = false; } localRadioButton.setEnabled(shouldEnableLocal);