This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes Can  two ear files have the same classes and packages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Can  two ear files have the same classes and packages" Watch "Can  two ear files have the same classes and packages" New topic
Author

Can two ear files have the same classes and packages

Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Hi All,

I want to make copy of one enterprise application but with a different name though.
What will be the best way of doing that? Anybody please tell me.
I have another doubt
Can two ear files with different names have the same classes and packages names ?

Thanks And Regards,


Khushwinder
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

You can have 2 EARs containing the same classes. But you have to ensure that you have classloader isolation for those 2 EARs as mentioned here


[My Blog] [JavaRanch Journal]
Khushwinder Chahal
Ranch Hand

Joined: Oct 03, 2007
Posts: 128
Thanks a lot Jaikiran,

I will study that...
But what about my second question?
do you have some knowledge about that?
What is the best way of creating copy of an already existing EJB application
in netbeans IDE? So that there should not be any jboss err..
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Originally posted by Khushwinder Chahal:

What is the best way of creating copy of an already existing EJB application
in netbeans IDE?


I don't use any IDE while working with JBoss, hence i won't be able to answer that.
[ April 25, 2008: Message edited by: Jaikiran Pai ]
 
 
subject: Can two ear files have the same classes and packages