session 2 deploy and run mtech 1st lab question blob and clob using java

8
Mtech DBMS LAB Question 1 Application For BLOB and CLOB objects Running a ready application with mysql

Upload: pratik-thakkar

Post on 17-Feb-2017

24 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Session 2 deploy and run Mtech 1st lab question Blob and Clob using java

Mtech DBMS LAB Question 1

Application For BLOB and CLOB objectsRunning a ready application with mysql

Page 2: Session 2 deploy and run Mtech 1st lab question Blob and Clob using java

Getting the Project files• https://drive.google.com/open?id=0B9-jNu3myO7cVDhmaC1tblBaQ

WM(Link available in description below)• Creating mysql Schema (if you are using oracle you will need to search

on how create database and table as the query may slightly differ) or else please describe in comments the issue faced, and I will try to provide the solution• You can also join our discord community and will help you with

anything we can

Page 3: Session 2 deploy and run Mtech 1st lab question Blob and Clob using java

Changes to do while running on any other database eg. oracle• Replace mysqlConnector jar to odbc jar from

https://drive.google.com/open?id=0B9-jNu3myO7ccjZrVjhieWFIMXM• Change the database connection details in all .java files from

Please refer to http://www.javatpoint.com/example-to-connect-to-the-oracle-database which seems to be good place to start

Page 4: Session 2 deploy and run Mtech 1st lab question Blob and Clob using java

Copy the file to local system• Please copy the .zip file to your local system• Unzip the file, we will get the eclipse project

Page 5: Session 2 deploy and run Mtech 1st lab question Blob and Clob using java

Creation of project in eclipse• Please go though the previous installation video to create a new

dynamic web project in eclipse• Add the mysql connector jar as described• Copy the files as we will discuss now

Page 6: Session 2 deploy and run Mtech 1st lab question Blob and Clob using java

Change the password of mysql• Change the password of mysql in all 3 .java files• Run the application by choosing “Run on Server option”

Page 7: Session 2 deploy and run Mtech 1st lab question Blob and Clob using java

Further improvements of this project• As per VTU all necessary requirements are complete• As per proper coding standards we can have single connection class

and get the DB connections from it instead of specifying in all .java files• The code structure can be improved by using maven/gradle builds• Another video coming soon for development from scratch

Page 8: Session 2 deploy and run Mtech 1st lab question Blob and Clob using java

Thank you