Count the XML nodes in xpath expression
This blog explain, how to get total no of nodes in the xpath expression. This is very basic and useful post. I’m gonna to extend my blog further and will show […]
- Ankur Jain
- 2
- 1268
- January 9, 2017
Datasource and JNDI configuration for DB adapter
This blog explain how to create datasource in weblogic and configure the JNDI for DB adapter. To Complete this blog, you must have weblogic and oracle database up and running. […]
- Ankur Jain
- 1
- 2704
- January 7, 2017
REST Service with DB adapter Oracle Service Bus
In the previous blog, we have explained, how to create simple REST service without DB adapter. Please follow the blog to get the basic understanding of how to create simple […]
- Ankur Jain
- 12
- 1967
- January 6, 2017
Create REST Service in Oracle Service Bus
In this blog, I’m gonna to write a very basic example on the Oracle Service Bus 12.1.3 which shows how to create REST service in Oracle Service Bus. After […]
- Ankur Jain
- 7
- 2720
- January 6, 2017
How to create a DataSource in WebLogic Server 11g console.
In this post you will learn how to create a Datasource in the Weblogic server 11g console. To achieve this follow below steps: 1. Login to Weblogic server console using http://<hostname>:<port>/console2. […]
Configure Oracle DataSource in Tomcat
Here is the procedure, how to configure Oracle datasource in Tomcat and lookup the same. 1. Get Oracle driver Download Oracle driver from here and copy it to $TOMCATlib […]
Get Current Date using Java
Below code give current date in String. import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.Calendar; public class CurrentDate { public CurrentDate() { super(); } public static void main(String[] args) { DateFormat dateFormat = […]
Current Date in GregorianCalendar using java
Code snippet that will give Current date in GregorianCalendar format: import java.util.GregorianCalendar;import javax.xml.datatype.DatatypeConfigurationException;import javax.xml.datatype.DatatypeFactory;import javax.xml.datatype.XMLGregorianCalendar; public class CurrentDate { public CurrentDate() { super(); } public static void main(String[] args) […]
Java Jndi datasource lookup
JNDI style is typical when using an application server(Weblogic, JBOSS) or a web container(Apache Tomcat). Here’s a example of the lookup Datasource created in Server. import java.sql.Connection;import java.sql.SQLException;import javax.naming.Context;import javax.naming.InitialContext;import […]
Get Oracle DB connection using Oracle driver
Here is an example to connect Oracle DB using Oracle driver. 1) Download Oracle JDBC Driver Download Oracle JDBC Driver from here 2) set classpath of the above jar 3) […]
Difference between Sun JDK And Oracle JRockit
This is very important to know, which jdk is better than and which one to use. Below are some basic difference between Sun JDK and Oracle JRockit. As we know, […]
- Ankur Jain
- 0
- 1537
- August 27, 2015
Map Interface in Java
import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Map.Entry;import java.util.Set; public class MapImplementation { public MapImplementation() { super(); } public static void main(String args[]){ Map<Integer,String> map = new HashMap<Integer,String>(); // Addition of […]