White labeling and shared Services

Avatar

Avatar
Validate 1
Level 3
Eric_Stricker
Level 3

Likes

12 likes

Total Posts

73 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
Level 3
Eric_Stricker
Level 3

Likes

12 likes

Total Posts

73 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 1
Give Back 5
View profile
Eric_Stricker
Level 3

25-06-2020

We have the following:

 

Site ==> Invoke Servlets ==> Use Services (Through @reference annotation) ==> many internal services use a common configuration service ( @Designate(ocd) incorporated in a dedicate implementation service itself)

 

Now we are asked to white label the site. (ie. change the logo, address, footer ...) but keep the functionality the same. The configuration OCD has references to file location of email templates, database connection parameters, templates, ... All these need to be review and probably need to change too, but the actual services itself will be the same. (ie. email service, pickup the email template from disk format and send this to the client. The template for each white label site will be different OR database connection will point to a different schema, but the db will have the same structure.) 

 

In this scenario we will create a separate site using the same body components, and customize the header and footer for each page template. Question is how  we can reuse the same services without copying the whole maven project form com.company.project1 to com.comopany.project2 with the only difference to be in the configuration setup. 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

01-07-2020

@kautuk_sahni  Can you please help with this?