As you might be aware now, non of the portlets, services, etc.. are getting deployed under webapps.
So how do I manage my deployed artefacts on Liferay 7!!!
For this we need to use TelNet commands or you can say GOGO Shell commands.
So how do I manage my deployed artefacts on Liferay 7!!!
For this we need to use TelNet commands or you can say GOGO Shell commands.
Prerequisite
- Open up "Command Prompt"
- Click on "Program & Features"
- Click on "Turn Windows features on or off"
- Check "Telnet Client", if not already checked, click ok
This would install Telnet components-1
- Open Command Prompt
- Execute the following command
telnet localhost 11311
____________________________
Welcome to Apache Felix Gogo - Get help on any command like: lb (lists all of the bundles installed in Liferay’s module framework)
g! help lb
lb - list all installed bundles
scope: felix
flags:
-l, --location show location
-s, --symbolicname show symbolic name
-u, --updatelocation show update location
lb - list installed bundles matching a substring
scope: felix
flags:
-l, --location show location
-s, --symbolicname show symbolic name
-u, --updatelocation show update location
parameters:
String subtring matched against name or symbolic name - Lists all of the bundles installed in Liferay’s module framework.
g! lb
......................................................................
<<<<< List only the required ones I created >>>>>
......................................................................
513|Active | 10|lfg-portlet (1.0.0)
514|Active | 10|lfg-service-api (1.0.0)
515|Active | 10|lfg-service-service (1.0.0)
523|Active | 10|lfg-theme-1.0.0-SNAPSHOT (1.0.0) - Looking at the OSGi Lifecycle:
Seeing our bundles installed on Liferay. All are in Active state.
- Now Lets stop the "lfg-portlet", the Bundle ID is 513
g! stop 513
Note:
- If you have added the portlet on any page, the portlet would display a message that it has been undeployed.
- A Stopped status would also be printed on Liferay console about the portlet.
We can check our bundles again.
g! lb
......................................................................
<<<<< List only the required ones I created >>>>>
......................................................................
513|Resolved | 10|lfg-portlet (1.0.0)
514|Active | 10|lfg-service-api (1.0.0)
515|Active | 10|lfg-service-service (1.0.0)
523|Active | 10|lfg-theme-1.0.0-SNAPSHOT (1.0.0) - Let Start the "lfg-portlet", the Bundle ID is 513
g! start 513
We will check our bundles again.
g! lb
......................................................................
<<<<< List only the required ones I created >>>>>
......................................................................
513|Active | 10|lfg-portlet (1.0.0)\\\\t\\\\t
514|Active | 10|lfg-service-api (1.0.0)
515|Active | 10|lfg-service-service (1.0.0)
523|Active | 10|lfg-theme-1.0.0-SNAPSHOT (1.0.0 - To remove or undeploy the portlet.
g! uninstall 513 - To end the console connection
g! disconnect
Disconnect from console? (y/n; default=y) y
Connection to host lost.
Warning: Commands shutdown, close, and exit stop the OSGi framework.(Would stop the Liferay instance)
So make sure to use the disconnect command to end the telnet Gogo Shell session.
Some Useful Commands
- help: lists all the available Gogo shell commands. Notice that each command has two parts to its name, separated by a colon. For example, the full name of the help command is felix:help. The first part is the command scope while the second part is the command function. The scope allows commands with the same name to be disambiguated. E.g., scope allows the felix:refresh command to be distinguished from the equinox:refresh command.
- help : lists information about a specific command including a description of the command, the scope of the command, and information about any flags or parameters that can be supplied when invoking the command.
- lb: lists all of the bundles installed in Liferay’s module framework. Use the -s flag to list the bundles using the bundles’ symbolic names.
-b: lists information about a specific bundle including the bundle’s symbolic name, bundle ID, data root, registered (provided) and used services, imported and exported packages, and more
So make sure to use the disconnect command to end the telnet Gogo Shell session.
Some Useful Commands
- help: lists all the available Gogo shell commands. Notice that each command has two parts to its name, separated by a colon. For example, the full name of the help command is felix:help. The first part is the command scope while the second part is the command function. The scope allows commands with the same name to be disambiguated. E.g., scope allows the felix:refresh command to be distinguished from the equinox:refresh command.
- help
- lb: lists all of the bundles installed in Liferay’s module framework. Use the -s flag to list the bundles using the bundles’ symbolic names.
-b
- headers : lists metadata about the bundle from the bundle’s MANIFEST.MF file
- diag: lists information about why the specified bundle is not working (e.g., unresolved dependencies, etc.)
- packages: lists all of the named package’s dependencies
- scr:list: lists all of the components registered in the module framework (scr stands for service component runtime)
- services: lists all of the services that have been registered in Liferay’s module framework
- inspect capability service: lists services exposed by a bundle
- install: installs the specified bundle into Liferay’s module framework
- start: starts the specified bundle
- stop: stops the specified bundle
- uninstall: uninstalls the specified bundle from Liferay’s module framework
- system:getproperties: lists all of the system properties
For more information about the Gogo shell, please visit http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html.
- diag
- packages
- scr:list: lists all of the components registered in the module framework (scr stands for service component runtime)
- services: lists all of the services that have been registered in Liferay’s module framework
- inspect capability service
- install
- start
- stop
- uninstall
- system:getproperties: lists all of the system properties
For more information about the Gogo shell, please visit http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html.
samsung service center in hyderabad
ReplyDeletesamsung refrigerator repair service in kondapur
ReplyDelete