JBoss.orgCommunity Documentation

Part VI. eXo JCR with GateIn

Table of Contents

77. How to extend my GateIn instance?
77.1. Introduction
77.1.1. Overview
77.1.2. Motivations
77.2. Prerequisites
77.2.1. Removing all the hard coded portal container name (i.e. "portal")
77.2.2. Removing all the hard coded rest context name (i.e. "rest")
77.2.3. Removing all the hard coded realm name (i.e. "exo-domain")
77.2.4. Making your Http Filters compatible
77.2.5. Making your HttpServlets compatible
77.2.6. Making your HttpSessionListeners compatible
77.2.7. Use init tasks if you need a PortalContainer to initialize an Http Filter or an HttpServlet
77.2.8. Making your LoginModules compatible
77.2.9. Avoiding static modifier on component dependency
77.2.10. Avoid component initialization based on component dependency in the constructor
77.3. FAQ
77.3.1. What has changed since the previous versions?
77.3.2. What is the main purpose of a portal extension?
77.3.3. What is the main purpose of the starter?
77.3.4. How a portal and a portal container are related?
77.3.5. How to define and register a PortalContainerDefinition?
77.3.6. How the platform interprets the dependency order defined into the PortalContainerDefinition?
77.3.7. How to change the ServletContext name, the realm name and/or the rest context name of my portal without using a PortalContainerDefinition?
77.3.8. How to add new configuration file to a given portal from a war file?
77.3.9. How to create/define a portal extension?
77.3.10. How to deploy a portal extension?
77.3.11. How to create/define a new portal?
77.3.12. How to deploy a new portal?
77.3.13. How to import properly a configuration file using the prefix "war:"?
77.3.14. How to avoid duplicating configuration files just to rename a simple value?
77.3.15. How to add or change a Repository and/or a Workspace?
77.3.16. How to add new ResourceBundles to my portal?
77.3.17. How to overwrite existing ResourceBundles in my portal?
77.3.18. How to replace a groovy template of my portal?
77.3.19. How to add new Portal Configurations, Navigations, Pages or Portlet Preferences to my portal?
77.3.20. How to add new Http Filters to my portal without modifying the portal binary?
77.3.21. How to add new HttpSessionListeners and/or ServletContextListeners to my portal without modifying the portal binary?
77.3.22. How to add new HttpServlet to my portal without modifying the portal binary?
77.3.23. How to override or add a Context Parameter to my portal without modifying the portal binary?
77.3.24. Where can I found an example of how to extend my portal?
77.3.25. How to deploy the sample extension?
77.3.26. Where can I find an example of how to create a new portal?
77.3.27. How to deploy the sample portal?
77.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?
77.4. Recommendations
77.4.1. Don't ship your configuration files with your jar files?
77.4.2. Using a dedicated workspace/repository for your extension?
78. How to use AS Managed DataSource under JBoss AS
78.1. Configurations Steps
78.1.1. Declaring the datasources in the AS
78.1.2. Do not let eXo bind datasources explicitly