B
bahamuto
I have a question when it comes to java web applications and the use
of jar files. If I have several web applications that will be using
either the same or similar javabeans or just regular java classes in
the application, should I put these java classes in a jar file so that
they both get the class definition from that? The only other
alternative I can see is to create a copy of the class files for each
web application that needs that class, and that doesn't seem like good
OO to me.
Assuming that the best way to go on would be to put them in the jar
files, should I make the class object in the jar file javabeans, or
should I make them regular classes and make the javabeans more specific
to the application that they are needed for?
For instance lets say I have an object person who has the attributes:
name
ssn
eyecolor
If one application only needs name and eyecolor, and the other needs
name and ssn should I make this whole object a javabean, or should I
make two seperate javabeans in the the individual applications that
would only use the attributes it would use.
Thanks for any help in advance.
- Nathan
of jar files. If I have several web applications that will be using
either the same or similar javabeans or just regular java classes in
the application, should I put these java classes in a jar file so that
they both get the class definition from that? The only other
alternative I can see is to create a copy of the class files for each
web application that needs that class, and that doesn't seem like good
OO to me.
Assuming that the best way to go on would be to put them in the jar
files, should I make the class object in the jar file javabeans, or
should I make them regular classes and make the javabeans more specific
to the application that they are needed for?
For instance lets say I have an object person who has the attributes:
name
ssn
eyecolor
If one application only needs name and eyecolor, and the other needs
name and ssn should I make this whole object a javabean, or should I
make two seperate javabeans in the the individual applications that
would only use the attributes it would use.
Thanks for any help in advance.
- Nathan