Mule 4 Kernel — IntelliJ IDEA
Mule 4 Kernel — IntelliJ IDEA
Explore how to setup Kernel runtime and look at what is going on with the IntelliJ plugin for the newest Mule Runtime.
Join the DZone community and get the full member experience.Join For Free
Discover how you can get APIs and microservices to work at true enterprise scale.
I received a lot of questions lately regarding the Community Edition of Mule ESB in version 4. Therefore, I have decided to write a couple of articles about this. First of all, MuleSoft has rebranded the community version into the Mule 4 Kernel. Here is some brief information I have contained within the previous article. In this article, I had in mind to show how to write a simple application using IntelliJ IDEA community IDE. However, this is impossible yet. You will only see how to setup Kernel runtime and look at what is going on with the IntelliJ plugin for the newest Mule Runtime. In the next article, I will use Anypoint Studio instead.
First, we need to set up our environment. During this step, I will install Mule Runtime for our application and IDE for application development.
Mule 4 Kernel Runtime is available for download here. After you download the archive, unzip it. Run mule.bat from the bin directory. You should see information that Mule is up and kicking and default domain is deployed.
Now you may install your domains and applications.
You may have Mule 4 Runtime already installed. How do you verify if this is Kernel edition or not? It is as simple as typing the following command into a command line (when you are in the bin directory):
Mule 4 Kernel does not have such an option to select, therefore, Runtime will start instead of displaying license info. On the screenshot below, you can see a sample response for valid verifyLicence call on enterprise runtime.
If you do not already have IntelliJ IDE installed, you can find the setup file here. You may choose the community version or the ultimate one. In order to develop Mule projects, you need to install the appropriate plugin. There is quite good working one for Mule 3.x. However, this works for version 3 only. Therefore, another plugin is being prepared, and it is called Mule 4 Runtime.
Mule 4 Runtime
Mule 4 Runtime plugin is available here. You have stable and development versions to choose. When you download the plugin, you need to start IntelliJ IDE. On the main screen, you need to click Configure and then Plugins.
From the bottom, click Install plugin from the disk and select the zip file. You will be asked to restart the IDE. After that, you should be able to create new projects. However, here started only problems!
The documentation does not exist yet. You have only gif picture showing how to install the plugin. In contrast, the previous version for Mule 3 has large documentation with installation and usage instructions. Without proper documentation, I think it is hard to use this at all.
The stable release allowed me only to created Mule modules. Nightly builds from November, the event did not allow to create the project because of some null pointer exception error. Horror! After a couple of hours of attempts to start working with it, I have given up. I created a ticket on their GitHub and that is all.
I guess that it is too early to work with this plugin. I hope that they will work hard on their code, as for now, it is not useful on my laptop. I expect that documentation will be provided as well. I will come back to this article later on when I notice some changes with this plugin or my ticket. In the next article, I will describe how to develop community application within Anypoint Studio.
Published at DZone with permission of Patryk Bandurski , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.