Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Adding bundle to dm server to extend tomcat
Adding bundle to dm server to extend tomcat [message #633525] Mon, 18 October 2010 10:30 Go to next message
Dan Carter is currently offline Dan CarterFriend
Messages: 7
Registered: October 2010
Junior Member
Hello,

We have a custom tomcat realm which we need to install to tomcat.

This realm extends the standard JNDI relam, utilitising a custom SSL Socket factory so that we can choose which keystore to use, as the standard JNDI realm cannot control which keys in a keystore are picked when connecting to LDAP over SSL.

What is the correct approach to take to extend tomcat under Virgo/DM Server?

We are thinking:
1) package classes in an OSGi bundle
2) add bundle to repository/ext
3) add bundle to com.springsource.server.web-2.0.2.RELEASE.plan (or equivalent under virgo)

Is this a reasonable approach?

Regards,
Dan.
Re: Adding bundle to dm server to extend tomcat [message #633530 is a reply to message #633525] Mon, 18 October 2010 10:42 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
That approach sounds reasonable in general.

Please note that Virgo has solved a problem which was present in dm Server 2.0.x which prevented clustering from working, so you would be well-advised to move to Virgo.

The fix was to make the ha and tribes bundles fragments of the main catalina bundle.

It may also be necessary to make your bundle a fragment of the main catalina bundle, in which case it would not be necessary to include the bundle in the plan as it would be installed automatically from the repository when the main catalina bundle is installed.
Re: Adding bundle to dm server to extend tomcat [message #633539 is a reply to message #633525] Mon, 18 October 2010 11:09 Go to previous messageGo to next message
Dan Carter is currently offline Dan CarterFriend
Messages: 7
Registered: October 2010
Junior Member
Thanks Glyn,

Will give the fragment bundle approach a try. Not having to edit the plan will simplify our sripts to generate a clean build of the server.
Re: Adding bundle to dm server to extend tomcat [message #636064 is a reply to message #633525] Fri, 29 October 2010 08:45 Go to previous messageGo to next message
Dan Carter is currently offline Dan CarterFriend
Messages: 7
Registered: October 2010
Junior Member
I shall note for posterity that the bundle fragment approached worked.
Re: Adding bundle to dm server to extend tomcat [message #636524 is a reply to message #636064] Mon, 01 November 2010 17:03 Go to previous message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Much appreciated.
Previous Topic:"external" directive in Bundle-ClassPath for config resources
Next Topic:Sudden failure of dependency resolution
Goto Forum:
  


Current Time: Sat Apr 20 04:48:08 GMT 2024

Powered by FUDForum. Page generated in 0.03939 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top