title: Ejb return CustomClass from jar
body: <p>I read this answer (<a href="https://stackoverflow.com/questions/23725196/remote-ejb-return-type">stack answer read</a>)  but, If you could help me, explain if my situation described and drawn, as it should be solved.</p>
  
  <p>I have a class in the war, that is Customclass(POJO) is of other project and it is loaded to the war project via maven (jar loaded into the war), but I want to my @remote ejb return a object of that class to my war project. (using EAP 7,ejb facade ->ejb )</p>
  
  <p><img src="https://i.stack.imgur.com/UWuaV.jpg" alt="image of code" title="code">
  thanks in advance,whatever comment.</p>
  
  <p><a href="https://stackoverflow.com/questions/23725196/remote-ejb-return-type/56225309#56225309">Remote EJB return type</a></p>
  
  <h2>------------------------------------------------------------------------------</h2>
  
  <p><strong>Updated</strong> 
  ok, I add to my project-lib and my project-impl  the dependency  like this on each pom </p>
  
  <pre><code>&lt;dependencyManagement&gt;
  &lt;dependencies&gt;
  &lt;dependency&gt;
          &lt;groupId&gt;com.groupid&lt;/groupId&gt;
          &lt;artifactId&gt;artifacname&lt;/artifactId&gt;
          &lt;version&gt;${project.version}&lt;/version&gt;
          &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
              &lt;groupId&gt;com.groupid&lt;/groupId&gt;
              &lt;artifactId&gt;artifacname&lt;/artifactId&gt;
              &lt;type&gt;jar&lt;/type&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  </code></pre>