Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Blog Directory  >  Technology Blogs  >  Research Blogs  >  JavaRoots research Blog  > 

2020-01-16 03:06
If you want to add number of days from a date and calculate a new date, you can use following code to do so. please note that in this case number of days are variable and calculated runtime… Read More
How To Send Emails In Java
2019-11-21 00:20
Today we will discuss how to send emails from your Java app. In general, you have two main options: either use the native built-in functionality, or try some external packages. Java provides… Read More
2019-11-20 00:28
This example app will show the difference between Foreach and splitter in Mule version 3.x. Collection splitter splits the incoming collection object and then you have to put a aggregator t… Read More
2017-09-04 05:52
This is a simple example showing how to call another flow and include that result in the resultant xml file. The opertaion "lookup" should be used in dataweave. xmlns:spring="http://www.sp… Read More
2017-07-20 02:12
Below Examples shows how to write and read XLSX and XLS files using Java . package com.sun;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io… Read More
How To Enable DEBUG Logging In CloudHub
2017-07-13 02:44
cloudHub ignores the local log4j.xml configuration and even if we enable DEBUG logging in the xml file , and deploy it in cloudhub , we see no changes . To enable logging in cloud hub , we… Read More
2016-12-30 10:13
I have got the following error when i tried to write java 8 stream in my expression component . Message : [Error: Malformed expression][Near : {... t.stream().map(a->a+"dd"… Read More
2016-12-16 06:34
This is simple example in mule demonstrating use of SessionVar , FlowVar , SubFlow , Vm , ForEach ,Groovy and Expression Component . name="myRequestConfig" doc:name="HTTP Listener Configu… Read More
How To Migrate From SVN To GIT Repository
2016-08-04 11:31
This post describes step by step guide to migrate your svn repository to git repository.First , lets have a look as why git is better than svn .1) GIT is distributed, SVN is not. 2) GIT… Read More
Jav 8 FlatMap Explained Stream API
2016-07-08 11:39
In this short example , i will explain where we can use flatMap function of java stream api . Suppose you have a multi level list where many objects are stored , and you want to convert i… Read More
Mule HttpListener Example
2016-04-05 12:09
Mule Runtime 3.6 and later version have deprecated old Http Connector with , new Http Listener Config . Let's take an example to see how we can use it .This example also demonstrates how to… Read More
2015-09-03 05:41
Every one of us is waiting for a new and clean release of Rails 5 , which not only accepts the SPA(Single Page Application) Implementation easily but also has enhanced the performance and st… Read More
2015-08-19 12:16
Some times Mule app failed to start , throwing weird exception like this : org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'mule'. at org.apache.xerc… Read More
Double Colon Operator In Java
2015-08-06 12:40
Java 8 has introduced double colon (::) apart from lambda expressions. Let's see how does it work . public class DoubleColonTest { interface MyInterface{ public void interfaceMethod(S… Read More
2015-08-04 11:38
In this post , i will show how lambdas in java work , with a simple example .Consider the following code snipped using java lambda . package java8Test;import java.io.File;import java.io.File… Read More
2015-07-24 06:30
Here are the most important commands in git , and their description .git reset –hard origin/master Resets your Local Repo with HEAD git reflogDisplays a walkthrough of git cycle throug… Read More
Solved : Mule With Maven Failing
2015-06-26 06:00
Recently , i encountered an error with maven build. The pom file which i was using , started failing with failed dependency errors .It was working fine earlier. Here is the error which i wa… Read More
2015-06-23 10:25
Today we will be discussing How to Commit only a Part of File in Git , Instead of Commiting the whole file , basically useful if you have dev ,prod ,and other environment parameters in same… Read More
2015-06-19 10:37
This document describes how to connect mobile phones (like Yuphoria,Yureka), which are based on Cyanogenmod OS as Mass Storage/MTP in Linux.This is a solution for ticket : https://jira.cyano… Read More
2015-05-25 05:09
Some of the most important questions asked in Barclays India And TCS for Ruby On Rails Developer Position , but these questions can be asked in any company which is recruiting ROR developers… Read More
MongoDB 3 With Java
2015-05-15 09:16
Here is the simple java program to insert data in MongoDB database. version 3.0 API is changed a bit . MongoClient.getDB method is deprecated and MongoClient.getDatabase() is used , which re… Read More
2015-05-01 06:26
You might get below error while using Commons DBCP , even if you have correct JDBC driver in your classpath. java.lang.UnsupportedOperationException: Java Runtime Environment (JRE) version 1… Read More
2015-04-27 08:25
Today we will be uploading a file to server using ajax call with the help of Iframe method. There is a Ruby Gem available called remotipart, which handles this kind of situation. Installati… Read More
Driver Class Not Found Error In MULE
2015-04-27 04:54
If you use mule built in C3P0 data connection pool to connect to databse , it throws ClassNotFoundException even if the driver class is present in MULE_HOME/APPS/{YOUR_APP}/lib directory . c… Read More
Lambda Expression Example In Java
2015-04-07 10:45
Java 8 added support for Lambda Expression . So what exactly are Lambda Expressions ?Lambda Expressions are nothing but Anonymous Functions . Anonymous functions are methods which does not h… Read More
How To Resolve Conflict In Git
2015-03-31 11:09
Through a development life cycle when it comes to commit our whole day work and stuck in merge conflict without resolved/ No knowledge what went wrong in conflict makes our happiest day a… Read More
2015-03-30 08:56
CasperJs is a javascript library written for phantomjs which is a headless browser . To install casperjs in windows , first you need to download phantomjs and set its exe file path in you… Read More
2015-03-17 04:44
What would be the output of the following program ? public class ThreadTest implements Runnable{ private Object obj=new Object(); public static void main(String[] args) { ThreadTest test… Read More
Top Build Automation Tools
2015-01-29 11:48
Apache ANT : Apache Ant uses build.xml file to describe build process and it is implemented in java . ANT first version released in 2000 and soon became one of the most popular build tool at… Read More
2006-06-07 11:16
Problem : Write a program to find whether the string is a palindrome or not. If it is palindrome, return empty string. If it is not, return the minimum length string which should be appende… Read More
2006-06-07 11:16
This post describes how to handle exceptions in jersey component of mule .We can use ExceptionMappers for converting exception in jersey response . Here is the RestClass which throws a cus… Read More
2006-06-07 11:16
For generating Barcodes , we can use Barcode4j library , which is opensource and free library . Let's look at some java code to generate barcode as image in java .First of all , enter follo… Read More
2006-06-07 11:16
NFS mount is used to share a directory between several servers, It saves the disk Space and is Useful for a Infrastructure where a application shares a common directory and is hosted in mult… Read More
2006-06-07 11:16
This is a simple java program which will search and replace a particular String in ByteBuffer import java.nio.ByteBuffer;import java.nio.CharBuffer;import java.nio.charset.Charset;public cla… Read More
2006-06-07 11:16
In this blog we will be learning how to use Continuous Integration tools to deploy Projects, Here I will be using Jenkins as CI and Maven as build tool to deploy Spring MVN Based Application… Read More

Share the post

JavaRoots

×

Subscribe to Javaroots

Get updates delivered right to your inbox!

Thank you for your subscription

×