Reusability between applications

Hi Guys,

This is probably a very elementary question, but here goes anyway:

We are developing a company intranet which consists of the main intranet pages and various other applications all running together on a server.

Obviously there is a common look-and-feel which consists of many images, styles and menus etc. There are also common objects that do small db lookups to display universal intranet info across the applications.

Currently we have had to duplicate all these common things because we couldn't find a way of sharing them from one central place. But this is now inevitably becoming a huge problem.

So could anyone perhaps point me in the right direction on how to share all common objects across applications. Any ideas or suggestions would be greatly appreciated.

Thanks you very much

[843 byte] By [lordfeia] at [2007-10-3 9:41:46]
# 1
Maybe putting the resources in jar file and all applications to use it?
amitteva at 2007-7-15 4:57:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks for your reply but I don't think that would work because I've been told that you cannot put the webcontent stuff in a jar.

You can put classes in there but for a jsf page the pagecode and jsp is split so it's a little different.

I need to find a way of putting the common jsf pages in an archive of some sort or somehow reference it from a central application.

Any other ideas?

lordfeia at 2007-7-15 4:57:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Just a thought:

You can bundle them in an archive (in a jar) and have a filter which would extract the resources. And this new filter has to be configured in each of the application.

If you want an example of this technique please have a look at MyFaces extention filter for resources.

HTH.

Sachin

sachin_sachina at 2007-7-15 4:57:54 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...