You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by David Just <da...@visionsolutions.com> on 2009/10/06 23:56:10 UTC
Override xml file in a jar
For overriding or adding configuration to Jetspeed 2.2 your supposed to
put an XML file in the assemblies/override/ folder. Instead of doing
this, would it be possible to tell Jetspeed to also search the classpath
for files that end in say *-jetspeed-config.xml ?
David Just l Software Engineer l Vision Solutions l +1 (507) 529-5939 l david.just@visionsolutions.com
The contents of this e-mail (and any attachments) are privileged and confidential. Unauthorized use is strictly prohibited.
Re: Override xml file in a jar
Posted by Woonsan Ko <wo...@yahoo.com>.
Hi David,
Though Jetspeed does not support classpath resources to override bean definitions directly, I think you can accomplish that by using importing feature of spring framework itself.
For example, you can put one spring configuration xml file under /WEB-INF/assembly/overrides/ folder to import other resources from the classpath like the following:
<beans ...>
<import resource="classpath:/com/examples/app1/CustomConfiguration1.xml" />
<import resource="classpath:/META-INF/assembly/CustomConfiguration2.xml" />
<import resource="classpath:/com/examples/app2/CustomConfiguration*.xml" />
</beans>
Regards,
Woonsan
--- On Tue, 10/6/09, David Just <da...@visionsolutions.com> wrote:
> From: David Just <da...@visionsolutions.com>
> Subject: Override xml file in a jar
> To: "Jetspeed Users List" <je...@portals.apache.org>
> Date: Tuesday, October 6, 2009, 11:56 PM
> For overriding or adding
> configuration to Jetspeed 2.2 your supposed to
> put an XML file in the assemblies/override/ folder.
> Instead of doing
> this, would it be possible to tell Jetspeed to also search
> the classpath
> for files that end in say *-jetspeed-config.xml ?
>
>
>
>
>
>
>
> David Just l Software Engineer l Vision Solutions l +1
> (507) 529-5939 l david.just@visionsolutions.com
> The contents of this e-mail (and any attachments) are
> privileged and confidential. Unauthorized use is strictly
> prohibited.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org