[MGNLBACKUP-40] Provide ServletContextListener to allow restore from within server env Created: 19/Jul/11 Updated: 29/Mar/22 Resolved: 22/Dec/11 |
|
| Status: | Closed |
| Project: | Backup |
| Component/s: | None |
| Affects Version/s: | 1.1.3 |
| Fix Version/s: | 1.1.4 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Jan Haderka | Assignee: | Zdenek Skodik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Date of First Response: | |||||||||||||
| Team: | |||||||||||||
| Description |
|
It is possibly to use server provided resources with Magnolia such as connections over JNDI. Since the resource is managed by server it is necessary to run from within server environment during restore in order to be able to make use of such resources. |
| Comments |
| Comment by Jan Haderka [ 19/Jul/11 ] |
|
Usage:
|
| Comment by Matt Dertinger [ 03/Aug/11 ] |
|
Hi Jan, It seems that the RestoreConfig object doesn't have visibility to the propertiesFilesProperty. However, it does have a set method (setPropertiesFilesProperty), so I decided to try that and it works. There may be a cleaner way, but I'm attaching a patch for RestoreServletContextListener implementing this approach. Let me know if you have any questions. Cheers, |
| Comment by Matt Dertinger [ 03/Aug/11 ] |
|
See above comment along with the attached patch. Thanks, |