JBoss.orgCommunity Documentation

Part VI. eXo JCR with GateIn

Table of Contents

87. How to extend my GateIn instance?
87.1. Introduction
87.1.1. Overview
87.1.2. Motivations
87.2. Prerequisites
87.2.1. Removing all the hard coded portal container name (i.e. "portal")
87.2.2. Removing all the hard coded rest context name (i.e. "rest")
87.2.3. Removing all the hard coded realm name (i.e. "exo-domain")
87.2.4. Making your Http Filters compatible
87.2.5. Making your HttpServlets compatible
87.2.6. Making your HttpSessionListeners compatible
87.2.7. Use init tasks if you need a PortalContainer to initialize an Http Filter or an HttpServlet
87.2.8. Making your LoginModules compatible
87.2.9. Avoiding static modifier on component dependency
87.2.10. Avoid component initialization based on component dependency in the constructor
87.3. FAQ
87.3.1. What has changed since the previous versions?
87.3.2. What is the main purpose of a portal extension?
87.3.3. What is the main purpose of the starter?
87.3.4. How a portal and a portal container are related?
87.3.5. How to define and register a PortalContainerDefinition?
87.3.6. How the platform interprets the dependency order defined into the PortalContainerDefinition?
87.3.7. How to change the ServletContext name, the realm name and/or the rest context name of my portal without using a PortalContainerDefinition?
87.3.8. How to add new configuration file to a given portal from a war file?
87.3.9. How to create/define a portal extension?
87.3.10. How to deploy a portal extension?
87.3.11. How to create/define a new portal?
87.3.12. How to deploy a new portal?
87.3.13. How to import properly a configuration file using the prefix "war:"?
87.3.14. How to avoid duplicating configuration files just to rename a simple value?
87.3.15. How to add or change a Repository and/or a Workspace?
87.3.16. How to add new ResourceBundles to my portal?
87.3.17. How to overwrite existing ResourceBundles in my portal?
87.3.18. How to replace a groovy template of my portal?
87.3.19. How to add new Portal Configurations, Navigations, Pages or Portlet Preferences to my portal?
87.3.20. How to add new Http Filters to my portal without modifying the portal binary?
87.3.21. How to add new HttpSessionListeners and/or ServletContextListeners to my portal without modifying the portal binary?
87.3.22. How to add new HttpServlet to my portal without modifying the portal binary?
87.3.23. How to override or add a Context Parameter to my portal without modifying the portal binary?
87.3.24. Where can I found an example of how to extend my portal?
87.3.25. How to deploy the sample extension?
87.3.26. Where can I find an example of how to create a new portal?
87.3.27. How to deploy the sample portal?
87.3.28. I get "java.lang.IllegalStateException: No pre init tasks can be added to the portal container 'portal', because it has already been initialized." what can I do to fix it?
87.4. Recommendations
87.4.1. Don't ship your configuration files with your jar files?
87.4.2. Using a dedicated workspace/repository for your extension?
88. How to use AS Managed DataSource under JBoss AS
88.1. Configurations Steps
88.1.1. Declaring the datasources in the AS
88.1.2. Do not let eXo bind datasources explicitly