How does the batch file detect if a given project has EJB3 interfaces?
<p>I will like to create a JAR file with the stubs for a project because I will access the service through an external Java Client.</p>

<p>createEJBStubs serves me well in that regard </p>

<blockquote>
  <p>For many client-side scenarios, the WebSphere® Application Server
  Just-In-Time (JIT) deployment feature dynamically generates the
  RMI-IIOP stub classes that are required for invocation of remote EJB
  3.x business interfaces. However, there are some scenarios where the JIT deploy environment is not available to dynamically generate these
  classes. In these scenarios, the createEJBStubs command must be used
  instead to generate and embed the client-side stub class files in your
  client application. If your client environment is one of the
  following, use the createEJBStubs command: "Bare" Java Standard
  Edition (SE) clients, where a Java SE Java Virtual Machine (JVM) is
  the client environment. A WebSphere Application Server container (web
  container, EJB container, or application client container) from a
  version earlier than version 7, or without the Feature Pack for EJB
  3.0 applied. Non-WebSphere Application Server environments.</p>
</blockquote>

<p>I know that one of the issues one might face when executing this command is -</p>

<blockquote>
  <p>The createEJBStubs command is not supported for use with a 2.x or 1.x
  EJB module packaged inside a stand-alone JAR file. The stubs for a 2.x
  or 1.x EJB module packaged inside a stand-alone JAR file must be
  generated using the EJBDeploy tool instead. If the createEJBStubs
  command is run against a 2.x or 1.x EJB module packaged inside a
  stand-alone JAR file, then the command issues a CNTR9241I message, and
  does not generate any stubs.</p>
</blockquote>

<p><strong>How will the script determine if the arg provided(JAR) to the script contains interfaces which are of Type EJB3?</strong></p>

<p>The batch file is available at <em>%WAS_HOME%\bin\</em></p>