17
Dököll Solutions, Inc. Application Development Project Name: IBM DB2, Domino Designer, Oracle JDeveloper XML Data Exchange Research Start Date: 2015.10.31.10.46.AM Purpose: Create XML with Java, JavaAgent Code End Date: 2015.10.31.10.46.AM Language: Java, JavaAgent Environment: IBM Domino Designer, DB2, Oracle JDeveloper Employee Name: Dököll Solutions Employee ID: Dököll Solutions Task(s): Collect/Combine Existing Samples Document: Journal Entries IBM Domino Designer, Oracle JDeveloper Research/Create Program Classes System Requirements Software/Environment Language/Technology Protocol/Framework/Platform Microsoft Windows 7, 8, 10 VBScript, Batch Active Directory, Operating System Microsoft Internet Explorer N/A TCPIP, HTTP, Browser Google Chrome N/A TCPIP, HTTP, Browser Mozilla FireFox N/A TCPIP, HTTP, Browser Oracle JDeveloper 12.xx Java HTTP, TCPIP, IDE Oracle Integrated WebLogic 12.x Console HTTP, TCPIP, Server IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer 8.5.3, 9, 10 Java, JavaAgent HTTP, TCPIP, IDE

Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

Dököll Solutions, Inc.Application Development

Project Name: IBM DB2, Domino Designer, Oracle JDeveloper XML Data Exchange Research

Start Date: 2015.10.31.10.46.AM

Purpose: Create XML with Java, JavaAgent Code End Date: 2015.10.31.10.46.AM

Language: Java, JavaAgent Environment: IBM Domino Designer, DB2, Oracle JDeveloper

Employee Name: Dököll Solutions Employee ID: Dököll Solutions

Task(s): Collect/Combine Existing Samples Document: Journal Entries

IBM Domino Designer, Oracle JDeveloperResearch/Create Program Classes

System Requirements

Software/Environment Language/Technology Protocol/Framework/PlatformMicrosoft Windows 7, 8, 10 VBScript, Batch Active Directory, Operating System

Microsoft Internet Explorer N/A TCPIP, HTTP, Browser

Google Chrome N/A TCPIP, HTTP, Browser

Mozilla FireFox N/A TCPIP, HTTP, Browser

Oracle JDeveloper 12.xx Java HTTP, TCPIP, IDE

Oracle Integrated WebLogic 12.x

Console HTTP, TCPIP, Server

IBM DB2 Express-C SQL SQL Database Server

IBM Data Studio SQL SQL Database Management, IDE

IBM Notes Domino Designer 8.5.3, 9, 10

Java, JavaAgent HTTP, TCPIP, IDE

Page 2: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

Disclaimer:Information contained in the following is presented as is. This tutorial assumes you have basic programming and software configuration knowledge. All tutorials are based on IBM Notes Domino orOracle Fusion Middleware, including and not limited to items stated in the System Requirements. Should you need to familiarize yourself with IBM Domino Designer or Oracle JDeveloper environments, prior to continuing, stop now and see our Journal Entries page on our website: www.dokollsolutionsinc.com for additional support...

Foreword:

Samples included in this Journal Entries document are part of a series, be sure to consult other versions of the documentation to benefit in full.

Introduction:Go through IBM Domino Designer to find Java and JavaAgent code in Xpages App samples that can be used to create an XML file and post it to Domino Browser. The code will need to gather values from existing back-end View(s) containing user records to be accessed by external Oracle JDeveloper ADF application. In turn, the data will be inserted into an awaiting IBM DB2 database table using a JSF button. All areas of interest, obviously, will be highlighted for your convenience.

++++++++++++++++++++++++++++++++++++++++++++++++++++>>2015.10.31.9.56.AM

Let us begin by tracking down all necessary Xpages code bits we have already in IBM Domino Designer for XML, TXT, CSV data to add to Oracle JDeveloper ADF/JSF button and pull in a URL, extract the values to be submitted to IBM DB2...

Searching for available code in existing Xpages App...

Page 3: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

By the way, for those of you who are probably not familiar with the ADF terminology, here is a current definition and what it does: Oracle ADF, otherwise known as Oracle Application Development Framework, provides a Java framework for building enterprise applications in Oracle JDeveloper. It provides visual and declarative approaches to Java EE development.

Most of you are well-aware of what JSF stands for 'Java Server Faces', and if you searched information about Xpages, you would find that this Framework is widely used within the IBM Domino Designer environment, it sits on top of JSF and works very well with Java.

That said, let's dive into a current Xpages sample and other standalone programs to find a way to get data into an XML or CSV file, load that in a URL, grab it using an ADF/JSF application in JDeveloper to insert into IBM DB2.

Here is the full code in screenshot above to do what we need, we will have to split the XML or CSV file (most likely going to be an XML file) obtained from IBM Notes Domino application and submit to DB2ADMIN.NOTES_DOCS_RPT, our IBM DB2 database table.

Hint: You should change the name of the Array 'values' variable we have up there, since VALUES is a reserved term in databases; do that for sure if you copy below code sample, try to limit time spent on troubleshooting...

/** * Created: 2012.04.21.5.56.PM * Build Results into DB2/NSF with CSV */package com.dokoll.solutions.inc.cvs.trials;/**

Page 4: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

* @author Dököll Solutions, Inc. * @version 2012.04.21.5.56.PM * */import java.io.BufferedReader;import java.io.FileReader;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.Statement;import javax.faces.context.FacesContext;import com.dokoll.solutions.inc.developement.Utils.DB2Connector;import lotus.domino.local.Database;import lotus.domino.local.Document;

//...//Start of Programpublic class ReadCSVFileIntoDB2Bean{ //...

//Button code public static void doGetCSVForDB2Data() {

//... //Entering try catch

try { Connection connection = DB2Connector.getConnection();

//create a Statement object to execute the query with //2012.04.21.6.02.PM //TO DO: Attempt using Prepared Statement here... Statement statement = connection.createStatement();

// Select* from UserNewLineOutboundInformation.csv BufferedReader br = new BufferedReader(new FileReader("C:\\temp\\CSV_DATA\\BULK_CSV_COM_DATA_SPLIT_2012.csv")); String line; while ( (line=br.readLine()) != null) {

String[] values = line.split(",");

//Convert String to right type. Integer, double, date etc. statement.executeUpdate("INSERT INTO DB2ADMIN.NOTES_DOCS_RPT VALUES('"+values[0]+"','"+values[1]+"','"+values[2]+"','"+values[3]+"','"+values[4]+"','"+values[5]+"','"+values[6]+"','"+values[7]+"','"+values[8]+"','"+values[9]+"','"+values[10]+"')"); //Use a PeparedStatemant, it´s easier and safer System.out.println("Insert these in to DB2: " + values); } br.close(); // clean up statement.close(); connection.close(); } catch(Exception e) { e.printStackTrace();

Page 5: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

} }

Below are other code samples being considered to salvage for parts... this one would be perfect for reading from CSV, and creating data for an XML file.

//Button code public static void doGetCSVForLogNSFData() {

//... //Entering try catch

try { // load the driver into memory Class.forName("org.relique.jdbc.csv.CsvDriver");

// create a connection. The first command line parameter is assumed to // be the directory in which the .csv files are held Connection conn = DriverManager.getConnection("jdbc:relique:csv:C:\\temp\\CSV_DATA\\");

// create a Statement object to execute the query with //2012.04.21.6.02.PM //TO DO: Attempt using Prepared Statement here... Statement stmt = conn.createStatement();

//String [] SearchTerms = {""}; // Select * from BULK_CSV_COM_DATA_SPLIT.csv ResultSet results = stmt.executeQuery("SELECT * FROM BULK_CSV_COM_DATA_SPLIT"); int docount = 0; // dump out the results while (results.next()) { //TO DO: Write a separate JavaBean to build setters //that can used in Xpages to show entries newly made... String strFileDate = results.getString("FileDate"); String strFileTime = results.getString("FileTime"); String strErrorAmPm = results.getString("ErrorAmPm"); String strErrorRequest = results.getString("ErrorRequest"); String strErrorOrigin = results.getString("ErrorOrigin"); String strErrorDescrip = results.getString("ErrorDescrip"); String strErrorLang = results.getString("ErrorLang"); //connect to NSF back-end to load data in

Database database= (Database) FacesContext.getCurrentInstance().getApplication().getVariableResolver().resolveVariable(FacesContext.getCurrentInstance(), "database");System.out.println("Connected to Database..." + database);

//declare and initialize doc variable//begin creating your documentDocument submitDocument = (Document) database.createDocument();//load to form in your back-endsubmitDocument.replaceItemValue("Form", "LogReport");submitDocument.replaceItemValue("FileDate", strFileDate);submitDocument.replaceItemValue("FileTime", strFileTime);submitDocument.replaceItemValue("ErrorAmPm", strErrorAmPm);

Page 6: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

submitDocument.replaceItemValue("ErrorRequest", strErrorRequest);submitDocument.replaceItemValue("ErrorOrigin", strErrorOrigin);submitDocument.replaceItemValue("ErrorDescrip", strErrorDescrip);submitDocument.replaceItemValue("ErrorLang", strErrorLang);

//Load to Console for debugging purposes//to console with this exercise (save your space as much as possible)

System.out.println("strFileDate " + " strErrorDescrip"); System.out.println(strFileDate + " " + strErrorDescrip); //save this doc, otherwise it is not recorded submitDocument.save(); //increment counter

docount += 1; } // clean up results.close(); stmt.close(); conn.close(); } catch(Exception e) { e.printStackTrace(); } }//end of program... }

in this case, rather than going to IBM Notes Domino database via Xpages form, as seen above, data will be submitted to DB2 via JSF page in JDeveloper... Let's have a look at additional code samples. We want to show the full code that creates the XML. Below is just the sample that reads the URL...

Page 7: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

to even get there, at a stage where we can actually read the file, we need a file... Below is the JavaAgent that will help us create our wonderful XML file

/** * Created: 2014.01.05.1.54.PM * ResearchItemsLoggedForHTTPUserXMLDataJavaAgent * XML data for Xpage to be read by JavaBean */

//load importsimport lotus.domino.*;

import java.io.PrintWriter;

/** * @author Dököll Solutions, Inc. * @version 2014.01.05.1.54.PM * */

// begin classpublic class JavaAgent extends AgentBase {

// open method, this actually runs the whole Apppublic void NotesMain() {

// let's add a try catch here, to grab errors near the endtry {

// open our session...Session session = getSession();// load info console for debugging purposesSystem.out.println("Items For HTTP XML JavaAgent" + session);

// load agentContextAgentContext agentContext = session.getAgentContext();// load info console for debugging purposes//get the server name from the current database

Database cdb = agentContext.getCurrentDatabase();//load info console for debugging purposes

System.out.println("database connection to..." + cdb);//grab current serverNameString ServerName = cdb.getServer();

//load info console for debugging purposesSystem.out.println("database ServerName..." + ServerName);

//Access the Database this agent is running in//TODO: Change to getCurrentInstance to avoid additional codeDatabase db = session.getDatabase(ServerName,"docucontent.nsf");

//load info console for debugging purposesSystem.out.println("Connection..." + db + " established");//Access our back-end ViewView pview = db.getView("AppLogIssuesResultsListings");

//load info console for debugging purposesSystem.out.println("We've got a view..." + pview);

Page 8: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

//Create Variables to hold the DocumentsDocument doc;Document ndoc;doc = pview.getFirstDocument();

//if (doc.isNewNote()) {// Create a Java PrintWriter object variablePrintWriter pw = getAgentOutput();

System.out.println("http://localhost/docucontent.nsf/ commenced");System.out.println("javaagentdatafornoteslogserrresearch.xml...");

// Set the content typepw.println("Content-type:text/xml");pw.println("");

// Write out the HTML/XML Opening Tags //Notes: Code copied from HTML design code

pw.println("<?xml version='1.0' ?>");pw.println("<errorfixes>");

while (doc != null) {

// Write out value of each field to the output//...pw.println("<searchitems>");

pw.println("<errdescrip>");pw.println(doc.getItemValueString("ErrorDescrip"));pw.println("</errdescrip>");

pw.println("<errlang>");pw.println(doc.getItemValueString("ErrorLang"));pw.println("</errlang>");

pw.println("<errresults>");pw.println(doc.getItemValueString("ErrorResults"));pw.println("</errresults>");

pw.println("<itemdate>");pw.println(doc.getItemValueString("itemDate"));pw.println("</itemdate>");

pw.println("<category>");pw.println(doc.getItemValueString("Categories"));pw.println("</category>");

pw.println("<topic>");pw.println(doc.getItemValueString("subject"));pw.println("</topic>");

pw.println("</searchitems>");

//Get next document in View, store in the placeholderndoc = pview.getNextDocument(doc);//recycle the document object to preserve memorydoc.recycle();//set the document object equal the placeholder ndocdoc = ndoc;

Page 9: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

}

// Revive this method when adding a document collection// close the root tag

pw.println("</errorfixes>");

System.out.println("XML Created" + doc.getItemValueString("SearchText")); //} } catch (Exception e) {

e.printStackTrace(); } }}

Here is our ADF page

Peeking @ WebLogic server info, while we wait, we just launched JSF to make sure it works...

IntegratedWebLogicServer startup time: 245825 ms.[IntegratedWebLogicServer started.][Running application MyWebNews on IntegratedWebLogicServer...] [10:30:54 AM] Web Module ViewControllerWebApp.war recognized in project ViewController.jpr[10:30:58 AM] ---- Deployment started. ----[10:30:58 AM] Target platform is (Weblogic 12.x).[10:31:40 AM] Retrieving existing application information[10:31:40 AM] Running dependency analysis...[10:31:40 AM] Deploying 2 profiles...[10:31:47 AM] Wrote Web Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\o.j2ee\drs\MyWebNews\ViewControllerWebApp.war

Page 10: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

[10:31:51 AM] Wrote Enterprise Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\o.j2ee\drs\MyWebNews[10:31:51 AM] Deploying 1 data source(s) to the server...

Previously submitted Information:The IBM Domino Designer JavaAgent above was posted earlier, at least an excerpt of it, as a screenshot. We modified the code behind the scenes to grab values from the right Domino View, containing the user data we need, and tested it in the browser. Now, we will run it under a JSF button in JDeveloper to launch data to Oracle WebLogic console. We've done this before in Domino Designer,so the process is full-proof. This is the same code we will combine with the CSV to DB2 bit you saw in this document, it will be used to submit into our DB2ADMIN.NOTES_DOCS_RPT table....

Modified the original XML grab sample from Domino Designer, now running it in JDeveloper to yank XML data and show to WebLogic console as first step-

package com.dokoll.view.backing;

// FileReader-specific importsimport java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.io.PrintWriter;import java.net.MalformedURLException;import java.net.URL;import javax.faces.context.FacesContext;import javax.servlet.http.HttpServletResponse;

// XML-specific importsimport javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import org.w3c.dom.Document;import org.w3c.dom.Element;import org.w3c.dom.Node;import org.w3c.dom.NodeList;import org.xml.sax.SAXException;import org.xml.sax.SAXParseException;

// ADF specific imports for JSFimport oracle.adf.view.rich.component.rich.RichDocument;import oracle.adf.view.rich.component.rich.RichForm;import oracle.adf.view.rich.component.rich.data.RichTable;import oracle.adf.view.rich.component.rich.input.RichInputNumberSpinbox;import oracle.adf.view.rich.component.rich.input.RichInputText;import oracle.adf.view.rich.component.rich.input.RichTextEditor;import oracle.adf.view.rich.component.rich.nav.RichButton;import oracle.adf.view.rich.component.rich.output.RichOutputText;

//...

Page 11: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

//Start of Apppublic class Jdlotusfeed { private RichForm f1; private RichDocument d1; private RichButton b1; private String ShowData; private String UserID; private String PageID; private String Priority; private String Issues; private RichInputText it1; private RichInputNumberSpinbox ins1; private RichInputNumberSpinbox ins2; private RichInputText it2; private RichInputText it3; private RichInputText it4; private RichTable t1; private RichOutputText ot2; private RichOutputText ot3; private RichOutputText ot4; private RichOutputText ot5; private RichTextEditor rte1;

public String getShowData() { return ShowData; }

public void setShowData(String showData) { ; this.ShowData = showData;

}

public String getUserID() { return UserID; }

public void setUserID(String userID) { ; this.UserID = userID;

}

public String getPageID() { return PageID; }

Page 12: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

public void setPageID(String pageID) { ; this.PageID = pageID;

}

public String getPriority() { return Priority; }

public void setPriority(String priority) { ; this.Priority = priority;

}

public String getIssues() { return Issues; }

public void setIssues(String issues) { ; this.Issues = issues;

}

public void setF1(RichForm f1) { this.f1 = f1; }

public RichForm getF1() { return f1; }

public void setD1(RichDocument d1) { this.d1 = d1; }

public RichDocument getD1() { return d1; }

public void setB1(RichButton b1) { this.b1 = b1; }

Page 13: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

public RichButton getB1() { return b1; } //... //Button code @SuppressWarnings("oracle.jdeveloper.java.nested-assignment") public String b1_action() throws MalformedURLException, IOException { // Add event code here...

try {

DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();

Document doc = docBuilder.parse("http://localhost/docucontent.nsf/javaagentdataforwebnewshttp.xml"); // ... doc.getDocumentElement().normalize(); System.out.println("Root element " + doc.getDocumentElement().getNodeName());

NodeList listOfIssues = doc.getElementsByTagName("person"); int totalSheets = listOfIssues.getLength(); System.out.println("Total Issues : " + totalSheets);

for (int s = 0; s < listOfIssues.getLength(); s++) {

Node currPersonNode = listOfIssues.item(s); if (currPersonNode.getNodeType() == Node.ELEMENT_NODE) {

Element currPersonElement = (Element) currPersonNode; // ... // firstname value... NodeList userNameList = currPersonElement.getElementsByTagName("username"); Element userNameElement = (Element) userNameList.item(0);

NodeList textUserNameList = userNameElement.getChildNodes(); System.out.println("UserName : " + ((Node) textUserNameList.item(0)).getNodeValue().trim()); // ... // lastname value... NodeList pageIDList = currPersonElement.getElementsByTagName("pageid"); Element pageIDNameElement = (Element) pageIDList.item(0);

NodeList textPageIDList = pageIDNameElement.getChildNodes(); System.out.println("PageID : " + ((Node) textPageIDList.item(0)).getNodeValue().trim()); // ... // age value... NodeList priorityList = currPersonElement.getElementsByTagName("priority");

Page 14: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

Element ageElement = (Element) priorityList.item(0);

NodeList priorityInfoList = ageElement.getChildNodes(); System.out.println("Priority : " + ((Node) priorityInfoList.item(0)).getNodeValue().trim()); // ... // height value... NodeList issuesFoundList = currPersonElement.getElementsByTagName("usernotes"); Element heightElement = (Element) issuesFoundList.item(0);

NodeList textHeightList = heightElement.getChildNodes(); System.out.println("issues Found : " + ((Node) textHeightList.item(0)).getNodeValue().trim());

//ShowData= ((Node) textUserNameList.item(0)).getNodeValue().trim();

}

}

} catch (SAXParseException err) { System.out.println("Error" + ", errLine " + err.getLineNumber() + ", uri " + err.getSystemId()); System.out.println(" " + err.getMessage());

} catch (SAXException e) { Exception x = e.getException(); ((x == null) ? e : x).printStackTrace();

} catch (Throwable t) { t.printStackTrace(); }

return null;

}

public void setIt1(RichInputText it1) { this.it1 = it1; }

public RichInputText getIt1() { return it1; }

public void setIns1(RichInputNumberSpinbox ins1) { this.ins1 = ins1;

Page 15: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

}

public RichInputNumberSpinbox getIns1() { return ins1; }

public void setIns2(RichInputNumberSpinbox ins2) { this.ins2 = ins2; }

public RichInputNumberSpinbox getIns2() { return ins2; }

public void setIt2(RichInputText it2) { this.it2 = it2; }

public RichInputText getIt2() { return it2; }

public void setIt3(RichInputText it3) { this.it3 = it3; }

public RichInputText getIt3() { return it3; }

public void setIt4(RichInputText it4) { this.it4 = it4; }

public RichInputText getIt4() { return it4; }

public void setT1(RichTable t1) { this.t1 = t1; }

public RichTable getT1() { return t1; }

public void setOt2(RichOutputText ot2) { this.ot2 = ot2; }

Page 16: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

public RichOutputText getOt2() { return ot2; }

public void setOt3(RichOutputText ot3) { this.ot3 = ot3; }

public RichOutputText getOt3() { return ot3; }

public void setOt4(RichOutputText ot4) { this.ot4 = ot4; }

public RichOutputText getOt4() { return ot4; }

public void setOt5(RichOutputText ot5) { this.ot5 = ot5; }

public RichOutputText getOt5() { return ot5; }

public void setRte1(RichTextEditor rte1) { this.rte1 = rte1; }

public RichTextEditor getRte1() { return rte1; }

}

Page 17: Dököll Solutions, Inc.¶cuContentIBMDomino... · 2020. 1. 5. · IBM DB2 Express-C SQL SQL Database Server IBM Data Studio SQL SQL Database Management, IDE IBM Notes Domino Designer

JSF page ran successfully in the browser. Currently the data is read in JDeveloper's WebLogic server, let's split it into parts to be able to use the strings bound for DB2 columns.

Lastly, to make it interesting, we can get the values into JSF inputText controls or as a list from the DB2 back-end. This is actually a 'Nice to do' type of thing, but we think it would be an added feature to the ADF project. Our goal is to get the data to IBM DB2, once we have achieved that, we may decide to just go with the flow and put that last one in...

Brief Recap:

We found all pieces of code we can use to combine into a complete process to grab the XML file, which needed to be created using the sample JavaAgent found in our vault. We also had an ADF App in JDeveloper on standby, we popped in the finished/combined Java code under a button in the JSF design. You have just had the first look of the completed Java method at work, successful entries shown to WebLogic console. We will close this Journal Entries documentation here, 17 pages in all... We can start a new document and continue our research, on our way to IBM DB2 submissions.

See Next Journal Entries document...Version: 2015.10.31.10.46.AM

Credits

eBook Content eBook Cover Logo Dököll Solutions, Inc. IBM, Oracle