Couchbase Server Create-Read-Update-Delete Java Example

Couchbase Server was originally known as Membase, is an open-source, distributed multi-model NoSQL document-oriented database software package.

If you are writing large enterprise application then Caching is really important where you want to minimized access to database and access only if in case if it's really needed.

They never have to go to disk for a query so they are faster than a typical database.
Also databases often have to do some work to join data together from multiple tables, whereas a cache usually just stores data in a key/value.
This means the cache never has to actually process anything. It just does straight lookups.

Reading Messages from JMS Queue in Weblogic 12.1.1 using Java

Suppose I have Queue configured in Weblogic and I want to write application in which Program A will put messages to this queue and Program B will read data from this Queue.

 There are multiple Persistence Store options availble in WL like The file or database in which this JMS server stores persistent messages. If unspecified, the JMS server uses the default persistent store that is configured on each targeted WebLogic Server instance As part of below example We will be using default one.

In order to retrieve messages from queue, you have should queue containing messages.
Please refer to previous article to send messages to JMS Queue.

Sending Message to JMS Queue in Weblogic 12.1.1 using Java

Suppose I have Queue configured in Weblogic and I want to write application in which
Program A will put messages to this queue and Program B will read data from this Queue.

There are multiple Persistence Store options availble in WL like The file or database in which this JMS server stores persistent messages.If unspecified, the JMS server uses the default persistent store that is configured on each targeted WebLogic Server instance. As part of below example We will be using default one.

Retrieving Data from DataSource Configured in WebLogic 12.1

Suppose I have MySQL Database called RetailStore and have table Order containing order related data which customer submitted via online applications. Our requirement is to write java program which will read data from DataSource which is configured in Weblogic for our MYSQL Database.

You need to follow below steps.
  1. Create DataSource in WebLogic. I have used MySQL as DB and Weblogic 12.1.1 as Application Server.
  2. Test DataSource in weblogic
  3. Create HashMap consisting Initial Context Factory and Provider URL
  4. Create initial context Factory
  5. Do Lookup on context using JNDI configured for DataSource and have dataSource instance
  6. Get Connection from DataSource and Perform common JDBC Logic to read data from Table.

DataSource in WebLogic
Go to Services -> DataSource-> Create new DataSource. you will be asked to follow series of steps.
If you have MYSQL Db then please provide below configuration

Solution : Exception "\IBM\WebSphere was unexpected at this time"

While I was developing webservices, I was unable to start Weblogic configured in Netbeans and getting exception "\IBM\WebSphere was unexpected at this time".

Following steps I have performed but issue doesn't resolved
  1. Removed Weblogic in Netbeans But issue doesn't solved
  2. Removed Netbeans and done fresh installation thinking Might be Netbeans Bug But issue doesn't solved
  3. Removed Weblogic installation and reinstalled Weblogic fresh installation But Issue doesn't solved
  4. Then I was thinking why issue doesn't got resolved.