[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-700990-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-700990-en":130,"doc-similar-700990":293},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","marklogic-server-java-application-developers-guide-9-reference","MarkLogic Server - Java Application Developer’s Guide - 9 - Reference","","MarkLogic Server Java Application Developer’s Guide explains how to build and manage Java clients for MarkLogic 9, covering the Java Client API options (including Java XCC), required libraries, and REST API instance selection. It details creating, connecting, securing, and releasing a database client, with authentication methods such as Kerberos, SSL, and SAML. The guide also introduces core programming patterns like “Hello World,” document managers, streaming, handles, and thread safety, followed by single-document operations such as creating, deleting, reading, and working with binary documents.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/marklogic-server-java-application-developers-guide-9-reference/700990/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/marklogic-server-java-application-developers-guide-9-reference/700990.png","ImageObject",300,407,{"name":42,"@type":43},"xXChrisXx","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-17","2026-11-12",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What Java client API options are covered in the guide?","Question",{"text":62,"@type":63},"The guide compares Java Client API and Java XCC, then walks through getting started with the required software and libraries.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the guide handle database client lifecycle and connection management?",{"text":67,"@type":63},"It explains the role of a database client, expected client lifetime, and how to create, connect (including through a load balancer), and release the client.",{"name":69,"@type":60,"acceptedAnswer":70},"Which authentication methods are described for connecting to MarkLogic?",{"text":71,"@type":63},"It covers Kerberos authentication, connecting with SSL, and using SAML authentication, including configuration steps for each.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},700990,1794522640,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":145,"preview_urls":146},8796112263567,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","MarkLogic Server  \nJava Application Developer’s Guide  \nMarkLogic 9 May, 2017  \nLast Revised: 9.0-9, March 2019  \nCopyright © 2019 MarkLogic Corporation. All rights reserved.  \nMarkLogic Server Version MarkLogic 9—May, 2017  \n Page 2—Java Application Developer’s Guide  \n MarkLogic Server Table of Contents  \nTable of Contents  \nJava Application Developer’s Guide  \n1.0 Introduction to the Java API ........................................................................ 13  \n1.1 Java Client API Overview .................................................................................... 13  \n1.2 Java Client API or Java XCC? .............................................................................. 14  \n1.3 Getting Started ...................................................................................................... 15  \n1.3.1 Required Software .................................................................................... 15  \n1.3.2 Make the Libraries Available to Your Application .................................. 15  \n1.3.2.1 ZIP File ...................................................................................... 16  \n1.3.2.2 Maven ........................................................................................ 16  \n1.3.2.3 Gradle ........................................................................................ 16  \n1.3.3 Choose a REST API Instance ................................................................... 16  \n1.3.4 Create Users .............................................................................................. 17  \n1.3.5 Explore the Examples ............................................................................... 17  \n1.4 Creating, Working With, And Releasing a Database Client ................................. 18  \n1.4.1 The Role of a Database Client .................................................................. 18  \n1.4.2 Expected Database Client Lifetime .......................................................... 18  \n1.4.3 Connection Management and Configuration ............................................ 19  \n1.4.4 Creating a Database Client ....................................................................... 19  \n1.4.5 Connecting Through a Load Balancer ......................................................20  \n1.4.6 Releasing a Database Client .....................................................................20  \n1.5 Authentication and Connection Security ..............................................................21  \n1.5.1 Creating a SecurityContext Object ...........................................................21  \n1.5.2 Using Kerberos Authentication ................................................................22  \n1.5.2.1 Configuring MarkLogic to Use Kerberos .................................22  \n1.5.2.2 Configuring Your Client Host for Kerberos .............................22  \n1.5.2.3 Creating a Database Client that Uses Kerberos ........................23  \n1.5.3 Connecting to MarkLogic with SSL .........................................................24  \n1.5.4 Using SAML Authentication ....................................................................24  \n1.6 A Basic “Hello World” Method ............................................................................27  \n1.7 Document Managers .............................................................................................28  \n1.8 Streaming ..............................................................................................................28  \n1.9 Using Handles for Input and Output .....................................................................28  \n1.9.1 Handle Overview ......................................................................................29  \n1.9.2 Specifying Content Format .......................................................................30  \n1.9.3 Handle Type Quick Reference .......................................................","cbCaijovqkCMxH0x","https://ap.wps.com/l/cbCaijovqkCMxH0x","pdf",1134986,316,"English","# 1.0 Introduction to the Java API\n## 1.1 Java Client API Overview\n## 1.2 Java Client API or Java XCC?\n## 1.3 Getting Started\n## 1.4 Creating, Working With, And Releasing a Database Client\n## 1.5 Authentication and Connection Security\n## 1.6 A Basic “Hello World” Method\n## 1.7 Document Managers\n## 1.8 Streaming\n## 1.9 Using Handles for Input and Output\n## 1.10 Shortcut Methods as an Alternative to Creating Handles\n## 1.11 Thread Safety of the Java API\n## 1.12 Downloading the Library Source Code\n# 2.0 Single Document Operations\n## 2.1 Document Creation\n## 2.2 Document Deletion\n## 2.3 Reading Document Content\n## 2.4 Writing A Binary Document\n## 2.5 Reading Content From A Binary Document","[{\"question\":\"What Java client API options are covered in the guide?\",\"answer\":\"The guide compares Java Client API and Java XCC, then walks through getting started with the required software and libraries.\"},{\"question\":\"How does the guide handle database client lifecycle and connection management?\",\"answer\":\"It explains the role of a database client, expected client lifetime, and how to create, connect (including through a load balancer), and release the client.\"},{\"question\":\"Which authentication methods are described for connecting to MarkLogic?\",\"answer\":\"It covers Kerberos authentication, connecting with SSL, and using SAML authentication, including configuration steps for each.\"}]","MarkLogic Server - Java Application Developer’s Guide - 9 - Reference | PDF",796,32,[147,151,155,159,163,167,171,175,179,183,187,192,197,202,207,212,217,222,227,231,235,240,245,250,255,260,265,270,275,280,284,289],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3ef8790a3049197eb87f9a129ea47cba.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/dde9fe6866e24189df6bca18af81b72a.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/9aa96679149c93f5f30822758da3fe35.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3b3963c4895a739be80f5fb78e0c50bb.webp",980,1268,{"page_no":96,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/0c58983422007cdc25bd5dd1af02d34e.webp",979,1267,{"page_no":101,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/d22789e8dcf938efeb82252a7ae32615.webp",978,1265,{"page_no":105,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/e28085cda9e0b232b0b53cdce9e1edc1.webp",977,1264,{"page_no":110,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3802cde15b65d1519831b4feca9630bb.webp",976,1263,{"page_no":115,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/22d28eca14557b7b785b1d0b74d19b49.webp",975,1261,{"page_no":123,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/fde11bd118f65f0b6e1caeb6fdb01c2e.webp",974,1260,{"page_no":188,"url":189,"width":190,"height":191},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/fc46331689c8e98c94c17adf61dcbf54.webp",973,1259,{"page_no":193,"url":194,"width":195,"height":196},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/0471f50fa9c794a3bfc8d5fa30c4cabc.webp",972,1257,{"page_no":198,"url":199,"width":200,"height":201},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/001ab409bcc50f92fc6717fdebb877a4.webp",971,1256,{"page_no":203,"url":204,"width":205,"height":206},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c31022d692f6b1000a6cf4d7a6d78d4d.webp",970,1255,{"page_no":208,"url":209,"width":210,"height":211},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/29b870b22a99ea1fe6dcae63749e24b8.webp",969,1254,{"page_no":213,"url":214,"width":215,"height":216},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/ee305ff7696e97f5559f861432060749.webp",968,1252,{"page_no":218,"url":219,"width":220,"height":221},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/4c2232dd859c71bd9b2c191fe2b9414a.webp",967,1251,{"page_no":223,"url":224,"width":225,"height":226},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/24047c41a0a85b89e5cb0963d3439e7e.webp",966,1250,{"page_no":127,"url":228,"width":229,"height":230},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6a9def0f0fa49e851124f6be38c69ec2.webp",965,1248,{"page_no":117,"url":232,"width":233,"height":234},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/ddc75f503411c1d15b2a259b2aefa78b.webp",964,1247,{"page_no":236,"url":237,"width":238,"height":239},21,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/d96ca220ac04d13da8ce661a5cd31877.webp",963,1246,{"page_no":241,"url":242,"width":243,"height":244},22,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/8648b029e5ba9140fab66ca0f4bc1c5c.webp",962,1245,{"page_no":246,"url":247,"width":248,"height":249},23,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/170e259d4de6827775bd2577f30ad81b.webp",961,1243,{"page_no":251,"url":252,"width":253,"height":254},24,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/e49558dbb6862061861ac4947ce1efe0.webp",960,1242,{"page_no":256,"url":257,"width":258,"height":259},25,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/02d2b783a2098df49234e98ba6a1a2e2.webp",959,1241,{"page_no":261,"url":262,"width":263,"height":264},26,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/aa246b03598438eb8a0b869bc26f51b7.webp",958,1239,{"page_no":266,"url":267,"width":268,"height":269},27,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/1e0953eb1fe6c9883c7d448b15ce3e5f.webp",957,1238,{"page_no":271,"url":272,"width":273,"height":274},28,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3f3a1af15fd4d5d563bee9a5d8f138d0.webp",956,1237,{"page_no":276,"url":277,"width":278,"height":279},29,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/94da7989b2c1889194b6eced7a87f1b7.webp",955,1235,{"page_no":112,"url":281,"width":282,"height":283},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/8737aea0a5d3bcf1ec3adca56b6ab252.webp",954,1234,{"page_no":285,"url":286,"width":287,"height":288},31,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/5a505919a410248b3b0ebad0242c6eea.webp",953,1233,{"page_no":145,"url":290,"width":291,"height":292},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/fddba1fe22bb222b70bb07b96d1365b2.webp",952,1232,{"list":294,"token":11},[295,301,307,313,319,325,331,337,343,349],{"doc_id":296,"doc_title":297,"file_type":137,"home_preview_img_url":298,"slug":299,"view_count":96,"category_name":29,"create_tm":300},701346,"Developer's Guide - AudioCodes Redirect Service RESTful API","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011589901/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=4ppFCmG%2Bi77%2BS4xNlLJ%2B189IC8U%3D","developers-guide-audiocodes-redirect-service-restful-api",1794527851,{"doc_id":302,"doc_title":303,"file_type":137,"home_preview_img_url":304,"slug":305,"view_count":30,"category_name":29,"create_tm":306},761405,"Qlik Enterprise Manager Setup and User Guide - Version 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230045586339/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=OKsN4y9%2Fnrw1BpFYiHfgyqoBmf0%3D","qlik-enterprise-manager-setup-and-user-guide-version-2026",1795985107,{"doc_id":308,"doc_title":309,"file_type":137,"home_preview_img_url":310,"slug":311,"view_count":26,"category_name":29,"create_tm":312},698044,"Parsing Large CRLs in Java","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010169556/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=0i9XvCvOL7gz5O4AnGZL9uSd8Cg%3D","parsing-large-crls-in-java",1794447409,{"doc_id":314,"doc_title":315,"file_type":137,"home_preview_img_url":316,"slug":317,"view_count":96,"category_name":29,"create_tm":318},693089,"Tutorial 4 - Introduction to AWS Lambda with the Serverless Application Analytics Framework (SAAF)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005085127/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=mqrPjpcPYD01bF%2Fi1hNJgFa%2BtM8%3D","tutorial-4-introduction-to-aws-lambda-with-the-serverless-application-analytics-framework-saaf",1794249655,{"doc_id":320,"doc_title":321,"file_type":137,"home_preview_img_url":322,"slug":323,"view_count":203,"category_name":29,"create_tm":324},673085,"User Interface API Developer Guide - v68.0 - Version 68.0 last updated Oct 9 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229989981731/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=vOLtFGMzYvZWWhk0tDd1g7l2Z%2Bg%3D","user-interface-api-developer-guide-v680-version-680-last-updated-oct-9-2026",1793619922,{"doc_id":326,"doc_title":327,"file_type":137,"home_preview_img_url":328,"slug":329,"view_count":105,"category_name":29,"create_tm":330},703209,"AWS SDK for Java 2.0 Developer Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012266874/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=tUjwvpkiqscbvda02CSq9RM2DmY%3D","aws-sdk-for-java-20-developer-guide",1794563089,{"doc_id":332,"doc_title":333,"file_type":137,"home_preview_img_url":334,"slug":335,"view_count":101,"category_name":29,"create_tm":336},693155,"Qualys Integration with S3 Object Storage - User Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005092235/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=frWcFXGfFIMFetMMhcTw7W3l6MU%3D","qualys-integration-with-s3-object-storage-user-guide",1794250835,{"doc_id":338,"doc_title":339,"file_type":137,"home_preview_img_url":340,"slug":341,"view_count":105,"category_name":29,"create_tm":342},687848,"AutomationInterface Configurator - DaVinci Configurator Development Documentation - Release Version Alignment 6","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000651021/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=75ju%2FRpIoj7RuCL3wF1qr3d%2FB5E%3D","automationinterface-configurator-davinci-configurator-development-documentation-release-version-alignment-6",1794085232,{"doc_id":344,"doc_title":345,"file_type":137,"home_preview_img_url":346,"slug":347,"view_count":236,"category_name":29,"create_tm":348},417800,"Athena-Client - A Community Python SDK for Programmatic Access to the OHDSI Athena Vocabulary Repository","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922495580/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=oJ0huGverJHoac6%2F35CPtEbHwR8%3D","athena-client-a-community-python-sdk-for-programmatic-access-to-the-ohdsi-athena-vocabulary-repository",1790610657,{"doc_id":350,"doc_title":351,"file_type":137,"home_preview_img_url":352,"slug":353,"view_count":188,"category_name":29,"create_tm":354},681820,"Agile Product Lifecycle Management - SDK Developer Guide - Using Agile APIs - Part No. E23880-01 - January 2012","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998394827/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=kd9MDjQZhVuD5%2Bw1xVhVIFQptpA%3D","agile-product-lifecycle-management-sdk-developer-guide-using-agile-apis-part-no-e23880-01-january-2012",1793954872]