Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reusing code in different applications?

 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Say, for instance, I have an account system in 1 application, and I want to implement an exact same account system in another application.

I'd have to copy my .jsps, but do I really have to copy my .java's?

Isn't there a way to share code between applications without packing it into jars and putting it into common/lib ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web applications are intentionally kept separate for security reasons - thats why you have to take extra steps to share compiled .class (not .java source) files between applications.
Bill
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Makes sense... Thanks..

Ant it is
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic