- Category: Liferay
- Published: Friday, 24 March 2017 08:00
- Hits: 1336
Liferay DXP (and its free counterpart Liferay 7) introduced many new features, first of all the OSGi integration. Among the many new tools provided there is a shell to interact with the OSGi container; I'm talking about Gogo shell (a subproject of Apache Felix) accessible with the command
telnet localhost 11311.
Once accessed to the shell, we can see the list of all available commands simply by typing
help; each command is formed by a scope (a kind of grouping) and a name.
So let's see how to create a custom command to be executed inside the Gogo shell.