JBoss.orgCommunity Documentation

Part VI. eXo JCR with GateIn

Table of Contents

83. How to extend my GateIn instance?
83.1. Introduction
83.1.1. Overview
83.1.2. Motivations
83.2. Prerequisites
83.2.1. Removing all the hard coded portal container name (i.e. "portal")
83.2.2. Removing all the hard coded rest context name (i.e. "rest")
83.2.3. Removing all the hard coded realm name (i.e. "exo-domain")
83.2.4. Making your Http Filters compatible
83.2.5. Making your HttpServlets compatible
83.2.6. Making your HttpSessionListeners compatible
83.2.7. Use init tasks if you need a PortalContainer to initialize an Http Filter or an HttpServlet
83.2.8. Making your LoginModules compatible
83.2.9. Avoiding static modifier on component dependency
83.2.10. Avoid component initialization based on component dependency in the constructor
83.3. FAQ
83.3.1. What has changed since the previous versions?
83.3.2. What is the main purpose of a portal extension?
83.3.3. What is the main purpose of the starter?
83.3.4. How a portal and a portal container are related?
83.3.5. How to define and register a PortalContainerDefinition?
83.3.6. How the platform interprets the dependency order defined into the PortalContainerDefinition?
83.3.7. How to change the ServletContext name, the realm name and/or the rest context name of my portal without using a PortalContainerDefinition?
83.3.8. How to add new configuration file to a given portal from a war file?
83.3.9. How to create/define a portal extension?
83.3.10. How to deploy a portal extension?
83.3.11. How to create/define a new portal?
83.3.12. How to deploy a new portal?
83.3.13. How to import properly a configuration file using the prefix "war:"?
83.3.14. How to avoid duplicating configuration files just to rename a simple value?
83.3.15. How to add or change a Repository and/or a Workspace?
83.3.16. How to add new ResourceBundles to my portal?
83.3.17. How to overwrite existing ResourceBundles in my portal?
83.3.18. How to replace a groovy template of my portal?
83.3.19. How to add new Portal Configurations, Navigations, Pages or Portlet Preferences to my portal?
83.3.20. How to add new Http Filters to my portal without modifying the portal binary?
83.3.21. How to add new HttpSessionListeners and/or ServletContextListeners to my portal without modifying the portal binary?
83.3.22. How to add new HttpServlet to my portal without modifying the portal binary?
83.3.23. How to override or add a Context Parameter to my portal without modifying the portal binary?
83.3.24. Where can I found an example of how to extend my portal?
83.3.25. How to deploy the sample extension?
83.3.26. Where can I find an example of how to create a new portal?
83.3.27. How to deploy the sample portal?
83.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?
83.4. Recommendations
83.4.1. Don't ship your configuration files with your jar files?
83.4.2. Using a dedicated workspace/repository for your extension?
84. How to use AS Managed DataSource under JBoss AS
84.1. Configurations Steps
84.1.1. Declaring the datasources in the AS
84.1.2. Do not let eXo bind datasources explicitly