[jboss-user] [Beginner's Corner] - Re: Communication of Two EAR (or WAR) Files

Burkay Gur do-not-reply at jboss.com
Tue Sep 18 14:07:45 EDT 2012


Burkay Gur [https://community.jboss.org/people/burkaygur] created the discussion

"Re: Communication of Two EAR (or WAR) Files"

To view the discussion, visit: https://community.jboss.org/message/760231#760231

--------------------------------------------------------------
How can I add a jar that is already in a deployment? Let me explain how I tried to do it. I have:

one-ear.ear
     one-ejb.jar

two-ear.ear
     two-ejb.jar

I placed a jboss-deployment-structure.xml into the top level of one-ear.ear META-INF and it is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
  <deployment>
    <dependencies>
      <module name="deployment.two-ear.ear.two-ejb-0.0.1-SNAPSHOT.jar" />
    </dependencies>
  </deployment>
</jboss-deployment-structure>


However I am not sure it is actually importing classes from that jar, because when I try to import a class it does not work. Not sure what I am doing wrong.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/760231#760231]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120918/3b93aa86/attachment.html 


More information about the jboss-user mailing list