-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4bfd21
commit 10ae08d
Showing
1,394 changed files
with
119,694 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,48 @@ | ||
# mule4-mcd-level2 | ||
This repo contains solutions for all hands-on exercises | ||
# MuleSoft Certified Developer - Level 2 | ||
[![N|Solid](https://user-images.githubusercontent.com/28925814/167924216-73523d2f-432a-489c-9db8-5339bd1db04e.png)](https://www.udemy.com/course/kubernetes-devsecops/) [![N|Solid](https://user-images.githubusercontent.com/28925814/167924714-fb647c23-e7a1-4783-949c-6cd0910282da.png)](https://www.linkedin.com/in/barahalikar-siddharth/) | ||
|
||
This repo is part of **Udemy** online course to _Learn concepts and practice for the MCD - Level 2 exam with hands-on exercises and practice tests_ | ||
|
||
This repo contains `starter` and `solution code` for all `hands-on` exercises | ||
|
||
The course is divided into **8 sections** starting from `Section 0` to `Section 7` | ||
- `Section 0` - Setting up Local System and Backend Services | ||
- `Section 1` - Project Structure, Deployment Strategy & Development Best Practises | ||
- `Section 2` - Mule Integration - API Development, Error Handling, Caching Strategy | ||
- `Section 3` - Asynchronous Processing, Logs, Tracing, Correlation ID & Validation | ||
- `Section 4` - Mule Application Health Checks and Custom Connector Development | ||
- `Section 5` - Custom API Policy Development, Offline Policies Management | ||
- `Section 6` - Consuming SOAP Web Services using TLS Certificates | ||
- `Section 7` - MUnit Testing | ||
|
||
### Import Mule Application into Anypoint Studio | ||
|
||
- Each `HANDS-ON` exercise is numbered and the solution is available in same numbered directory. For example, | ||
- Section 1 has - 1.1, 1.2, 1.3 ...... 1.16 | ||
- Section 4 has - 4.1, 4.2, 4.3 ...... 4.8 | ||
- For importing `HANDS-ON 1.15`, Go to `Section 1 >> 1.15` | ||
- Each directory can have 1 or many files/directories. All these are required to run that specific HANDS-ON exercise. For example, | ||
- master-bom | ||
- parent-pom | ||
- mule-app | ||
- settings.xml | ||
- Before you install or import, | ||
- MAKE SURE to change the `GROUPID` to your `Anypoint Platform ORGANIZATION_ID` whereever applicable in `all the files`. | ||
- MAKE SURE that the required ARTEFACTS like `RAML` are available in your `Anypoint Exchange` | ||
- Use your `CLIENT_ID` and `CLIENT_SECRET` in `settings.xml` | ||
- Install `master-bom` & `parent-pom` to your local Maven repo | ||
- ``` mvn clean install``` | ||
- Make changes to your `settings.xml` | ||
- Import `mule-app` to your `Anypoint Studio` | ||
- `File` >> `Import` >> `Anypoint Studio` >> `Anypoint Studio project from File System` | ||
- All these solutions were developed & exported in `Anypoint Studio 7.11` | ||
- While importing them in a latest Studio like `7.12`, it will prompt to `update the workspace` | ||
- `Unselect` - Update mule-maven-plugin version for this project | ||
- `Unselect` - Add Anypoint Exchange v3 repo for this project | ||
- Click `CANCEL` >> Click `YES` | ||
- Application will be imported, check for any `Problems` and fix them before running. | ||
|
||
![Studio-Update-Workspace](https://user-images.githubusercontent.com/28925814/167924884-8505bafe-41f0-4e1d-af3f-f2e1ddc8e64e.png) | ||
![Studio-Update-Workspace-2](https://user-images.githubusercontent.com/28925814/167924889-e0bfaeb3-b30f-47fa-b31b-fb4c9c7da473.png) | ||
|
||
![GIF-AD](https://user-images.githubusercontent.com/28925814/167924892-8e2b7410-29b5-4663-ba45-f518b6499dc6.gif) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<settings xmlns="http:https://maven.apache.org/SETTINGS/1.2.0" | ||
xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http:https://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd"> | ||
|
||
|
||
<servers> | ||
|
||
</servers> | ||
|
||
|
||
<profiles> | ||
|
||
</profiles> | ||
|
||
|
||
</settings> |
20 changes: 20 additions & 0 deletions
20
hands-on-solutions/Section0/0.5/super-biodata-sapi/.classpath
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="con" path="org.mule.tooling.MULE_PROJECT_LIB"/> | ||
<classpathentry kind="con" path="org.mule.tooling.API_SPEC_LIB/bfb5a8a4-30ed-47b8-88c8-5764a308838e/super-biodata-sapi/1.0.0"/> | ||
<classpathentry kind="con" path="org.mule.tooling.API_SPEC_LIB/c738e3c8-08cf-462d-bb9a-1553ebf5008e/super-biodata-sapi/1.0.1"/> | ||
<classpathentry kind="con" path="org.mule.tooling.API_SPEC_LIB/53a7ba06-a8d3-4536-9fb5-5c689add373f/super-bio-sapi/1.0.0"/> | ||
<classpathentry kind="con" path="MULE_LIB/com.mulesoft.connectors/mule-mongodb-connector/6.3.5"/> | ||
<classpathentry kind="con" path="MULE_LIB/org.mule.modules/mule-apikit-module/1.5.8"/> | ||
<classpathentry kind="con" path="MULE_LIB/org.mule.connectors/mule-sockets-connector/1.2.2"/> | ||
<classpathentry kind="con" path="MULE_LIB/org.mule.connectors/mule-http-connector/1.6.0"/> | ||
<classpathentry exported="true" kind="con" path="MULE_RUNTIME/org.mule.tooling.server.4.4.0.ee"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="src" path="src/main/mule"/> | ||
<classpathentry kind="src" path="src/main/java"/> | ||
<classpathentry kind="src" path="src/main/resources"/> | ||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/> | ||
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/> | ||
<classpathentry kind="src" path="src/test/munit"/> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
Binary file added
BIN
+28 KB
...orage_8127a3b80d79befe0827654a5268d79bfd7b211d/offheap-disk-store/ehcache-disk-store.data
Binary file not shown.
Binary file added
BIN
+617 Bytes
...rage_8127a3b80d79befe0827654a5268d79bfd7b211d/offheap-disk-store/ehcache-disk-store.index
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
...orage_8127a3b80d79befe0827654a5268d79bfd7b211d/offheap-disk-store/ehcache-disk-store.meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#Key and value types | ||
#Sun Apr 03 14:00:11 IST 2022 | ||
valueType=java.lang.Object | ||
keyType=java.lang.String |
23 changes: 23 additions & 0 deletions
23
hands-on-solutions/Section0/0.5/super-biodata-sapi/.project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>super-bio-sapi</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.mule.tooling.core.muleStudioBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.mule.tooling.core.muleStudioNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
2 changes: 2 additions & 0 deletions
2
...lutions/Section0/0.5/super-biodata-sapi/.settings/org.mulesoft.exportwizardsettings.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1644259269853=C\:\\Users\\revathi\\Desktop\\mcd2\\super-bio-sapi | ||
eclipse.preferences.version=1 |
3 changes: 3 additions & 0 deletions
3
hands-on-solutions/Section0/0.5/super-biodata-sapi/mule-artifact.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"minMuleVersion": "4.4.0" | ||
} |
114 changes: 114 additions & 0 deletions
114
hands-on-solutions/Section0/0.5/super-biodata-sapi/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http:https://maven.apache.org/POM/4.0.0" xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.super.corp</groupId> | ||
<artifactId>super-biodata-sapi</artifactId> | ||
<version>1.0.0</version> | ||
<packaging>mule-application</packaging> | ||
|
||
<name>super-biodata-sapi</name> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
|
||
<app.runtime>4.4.0-20211227</app.runtime> | ||
<mule.maven.plugin.version>3.5.2</mule.maven.plugin.version> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-clean-plugin</artifactId> | ||
<version>3.0.0</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.mule.tools.maven</groupId> | ||
<artifactId>mule-maven-plugin</artifactId> | ||
<version>${mule.maven.plugin.version}</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<classifier>mule-application</classifier> | ||
<sharedLibraries> | ||
<sharedLibrary> | ||
<groupId>org.mongodb</groupId> | ||
<artifactId>mongodb-driver-legacy</artifactId> | ||
</sharedLibrary> | ||
</sharedLibraries> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.mule.connectors</groupId> | ||
<artifactId>mule-http-connector</artifactId> | ||
<version>1.6.0</version> | ||
<classifier>mule-plugin</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mule.connectors</groupId> | ||
<artifactId>mule-sockets-connector</artifactId> | ||
<version>1.2.2</version> | ||
<classifier>mule-plugin</classifier> | ||
</dependency> | ||
|
||
<!-- REPLACE below groupID with your AP ORG ID --> | ||
<dependency> | ||
<groupId>bfb5a8a4-30ed-47b8-88c8-5764a308838e</groupId> | ||
<artifactId>super-biodata-sapi</artifactId> | ||
<version>1.0.0</version> | ||
<classifier>raml</classifier> | ||
<type>zip</type> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.mule.modules</groupId> | ||
<artifactId>mule-apikit-module</artifactId> | ||
<version>1.5.8</version> | ||
<classifier>mule-plugin</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.mulesoft.connectors</groupId> | ||
<artifactId>mule-mongodb-connector</artifactId> | ||
<version>6.3.5</version> | ||
<classifier>mule-plugin</classifier> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mongodb</groupId> | ||
<artifactId>mongodb-driver-legacy</artifactId> | ||
<version>4.0.4</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<repositories> | ||
<repository> | ||
<id>anypoint-exchange-v2</id> | ||
<name>Anypoint Exchange</name> | ||
<url>https://maven.anypoint.mulesoft.com/api/v2/maven</url> | ||
<layout>default</layout> | ||
</repository> | ||
<repository> | ||
<id>mulesoft-releases</id> | ||
<name>MuleSoft Releases Repository</name> | ||
<url>https://repository.mulesoft.org/releases/</url> | ||
<layout>default</layout> | ||
</repository> | ||
</repositories> | ||
|
||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>mulesoft-releases</id> | ||
<name>MuleSoft Releases Repository</name> | ||
<layout>default</layout> | ||
<url>https://repository.mulesoft.org/releases/</url> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
|
||
</project> |
Oops, something went wrong.