I am a java developer.I am very new to Delphix.How can i use Delphix with Java WebApplication

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
I am a Java Developer and very to new Delphix.From where can I start learning Delphix.
Also How can I  Integrate Delphix with java Web Application.
Photo of Gundamaiah A

Gundamaiah A

  • 122 Points 100 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,418 Points 10k badge 2x thumb
Hey Gundamaiah,
I suggest you first get started with Landshark as a place to get started and learn about Delphix. If you don't already have access, please go to www.delphix.com and click Free Trial. By Monday, you should receive an email with links to documentation and downloads.

In short, here is what you would do to virtualize your java app:
  1. Add an environment to Delphix ,that is hosting the java application your are developing
  2. Tell Delphix what directory on that server contains the application you are developing.
  3. Add that as a source to Delphix, delphix will then copy the application directory (and its children) into Delphix
  4. Tell Delphix where to deploy virtual copies of the application.
The overall process is very similar to the one I highlight in my blog for SugarCRM. It would be another great place to start:
http://www.therealcloudsurgeon.com/2015/09/bringing-data-agility-to-docker.html

Welcome to the Delphix community!
Photo of Gundamaiah A

Gundamaiah A

  • 122 Points 100 badge 2x thumb
Thanks Bowen.My application need to interact with VDB's that are created by Delphix for Data Refresh.
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,418 Points 10k badge 2x thumb
Oh! even easier. VDB's behave just as normal databases. Your java app would connect to a VDB via jdbc string, or whatever you normally use.
Photo of Gundamaiah A

Gundamaiah A

  • 122 Points 100 badge 2x thumb
I am new webservices too.Need to check how can invoke the service from Delphix for Data Refresh from my application.
Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb
Hi Gundamaiah,

I am java developer too. 
Delphix can help many key roles: Developers, Devops, IT Staff, Testers, Certifiers, Trainer, Data security team, data protection team and so on...

To understand how Delphix can help all this roles, you should read use cases for different kinds of context and you can find them in the Delphix Site (This old link is only an example https://docs.delphix.com/display/DOCS31/Use+Cases but there are a lot of new use cases you can find if you read the Delphix site, or interesting posts on Delphix commnity, e.g. read the interesting response to the question/post https://community.delphix.com/delphix/topics/how-does-delphix-help-oracle-upgrade-process).

First hint: What does Delphix do?
Delphix enables Oracle, SQL Server, PostgreSQL, SAP ASE, MySQL customers to clone their databases in minutes for almost no storage. (Read for example http://blog.delphix.com/kyle/2014/delphix/)

As developer, you know, how many times did we want a copy of a huge volume database to test our software component on real data? We had to face with a lot of problems: involving and facing IT Staff, there was not enough of space to host Terabytes for a new copy of DB, problem on managing sensible and personal data (Delphix offers its Datamask Services), ...

With Delphix a developer can manage in self service, data as service (with few clicks into a web console) his copy of the Production Database.

A copy of tens TB of an Oracle DB can be made in few minutes and without extra space.
You can reiterate test cycles easier and faster, reducing the idle time of the DB reset (at the end of a destructive test) from hours to minutes (see http://www.delphix.com/solutions/test-data-management/ ).

You can share a bookmark (a copy of your VDB) to other teams (such as a test team) to make them to test what you coded.

Another example: when I was taking care of bug fixing on production application, I would have needed a copy of the production database to replicate the incident: in my case it was impossible to request to a IT Staff to make a copy of the production DB in the SLA times. So if I was lucky I was able to reproduce the incident in my test DB (a subset and no fresh copy of the production DB), But in other cases I would have wanted to access (in readonly) to a production database to replicate the incident with my application: nobody helped me to add a firewall exception to do this. In all this cases Delphix can Help you, giving you the button to do a "refresh" of you VDB copying the fresh data from the production DB (in few minutes).

This is only the tip of a great iceberg: only for trying to fire up your curiosity. But tell me what you want to achieve and what are your pain points in developing application and I try to give you some hints on how Delphix can help and if it can.

And, a surprise for us developers, here is the RESTful API link to interact with the Delphix Engine:
https://docs.delphix.com/display/DOCS50/Web+Service+API+Guide
So, for example, you can automate you test cycles: do test, collect results, rewind your DB.

Regards.
Gianpiero
(Edited)
Photo of Gundamaiah A

Gundamaiah A

  • 122 Points 100 badge 2x thumb
I am new webservices too.Need to check how can invoke the service from Delphix for Data Refresh from my application.
Photo of K J M RAO

K J M RAO

  • 440 Points 250 badge 2x thumb
Gianpiero ,

Does Delphix support REWIND APi ? I If 'NO' how to over come this ? Need urgent inputs please..
Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb
Hi K J M,

in general, what you can do via web GUI console is what you can do via REST API. And what you can't do via GUI console, maybe you could do via REST API ;-)

So, thanks to the above rule, the rewind operation is of course in the REST API.

The rewind operation is called "rollback". You can see the web api docs through your Delphix Engine: http(s)://[ip_address]/api

There you'll find the docs for the rollback operation under database, object operations

Anyway, I'd post you an example on my test environment:
=== POST /resources/json/delphix/database/ORACLE_DB_CONTAINER-5/rollback ==={
    "type": "OracleRollbackParameters",
    "timeflowPointParameters": {
        "type": "TimeflowPointSemantic",
        "container": "ORACLE_DB_CONTAINER-5",
        "location": "LATEST_SNAPSHOT"
    }
}

As you can see, the timeflowPointParameters in the body message is the same you have to use with refresh operation.

Regards.
Gianpiero
Photo of Ramesh

Ramesh

  • 80 Points 75 badge 2x thumb
How to create a VDB via REST API. do i need to create a template and container before creating vDB via REST API
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,418 Points 10k badge 2x thumb
Diffferent Question

Please reference the new conversation here: Can you please provide an example of how to create a VDB via a REST Call?