Thursday, August 17, 2017

Install SDKMAN in windows using Cygwin64

What is SDKMAN ! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems.  It provides... thumbnail 1 summary

What is SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. 

It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates.

1. Install Cygwin for windows 

https://cygwin.com/install.html

Make sure you select the cURL during the package selection as below,






If you have not installed cURL then you have to add explicitly as like below,
Copy your  setup-x86_64.exe file to your c:/cygwin64,and then run it from there ( run in cmd -> setup-x86_64.exe -q -P curl)

Close the windows cmd.

2.Open new Cygwin  terminal then install sdkman.

you will get the below success message.

Bala@LAPTOP-12345~
$ curl -s https://get.sdkman.io | bash

Thanks for using...
..
..
..

All done!


Please open a new terminal, or run the following in the existing one:

    source "/home/Bala/.sdkman/bin/sdkman-init.sh"

Then issue the following command:

    sdk help

Enjoy!!!

 5.Check the version 
Bala@LAPTOP-12345~
$  source "/home/Bala/.sdkman/bin/sdkman-init.sh"

Bala@LAPTOP-12345~
$ sdk version
==== BROADCAST =================================================================
* 15/08/17: Kotlin 1.1.4 released on SDKMAN! #kotlin
* 13/08/17: sbt 1.0.0 released on SDKMAN! @scala_sbt #sbt
* 12/08/17: Kscript 1.6.0 released on SDKMAN! #kscript
================================================================================

SDKMAN 5.5.10+240

Bala@LAPTOP-12345~
$

Thats all!.

Saturday, August 12, 2017

Enabling Oracle Commerce ATG11.3 OOTB JAX-RS REST Web Services

Oracle Commerce ATG11.3 OOTB JAX-RS REST Web Services Enabling OOTB JAX-RS REST Web Services involves the following steps. 1.Creat... thumbnail 1 summary

Oracle Commerce ATG11.3 OOTB JAX-RS REST Web Services



Enabling OOTB JAX-RS REST Web Services involves the following steps.


1.Create a new ATG Module say ROUTE.REST [or you can just modify the existing modules ]
2.Edit the MANIFEST.MF file and all the ATG-Required modules as below,
ATG-Required: ROUTE.Commerce REST REST.JAXRSPublic REST.JAXRSPublic.Version1
3.Assemble your EAR file with this new module by adding to your build modules.
4.Make sure your new modules are included in the EAR file ,check your build logs for the new modules and OOTB JAX-RS Modules
Creating application.xml...
    [exec] ....
....
[exec]  Importing classes for module ROUTE.REST
...
...
...
[exec]  Importing classes for module REST
[exec]  Importing classes for module REST.Actor
[exec]  Importing classes for module REST.JAXRSPublic.Version1
[exec]  Importing classes for module REST.JAXRSPublic
[exec]  Importing classes for module REST.base
[exec]  Importing classes for module PublishingAgent
[exec]  
...
...
...
Assembly took 20.240 seconds.
...standalone\deployments\ATGProduction\ATGProduction.ear\META-INF
...
...
BUILD SUCCESSFUL
Total time: 1 minute 53 seconds  

5. View the EAR file to understand the structure.
You can see few new war files got added to the ear file. When you check the web.xml file from the path \ATGProduction.ear\atg-jaxrspublic-version1.war\WEB-INF\web.xml, you can see the context-root of the OOTB service.




6.Once you deploy the EAR into app server you can able to see the OOTB JAX-RS REST Web services.


7.Viewing the Services
All available services are listed in  RestResourceRegistry component in dyn/admin.


Path: /atg/dynamo/service/jaxrs/RestResourceRegistry



8. Hit the url via postman app.