I have a java class that I want to call on post deployment of modules for MarkLogic in both ml-gradle and roxy. Are there any examples for either of these out there?
Looking to add post modules deploy calling a java class in ml-gradle and roxy
126 Views Asked by Loren Cahlander At
2
There are 2 best solutions below
0
grtjn
On
Roxy runs on Ruby, so you will have to do a system-call to invoke Java. We do that internally too to invoke MLCP, Corb2, XQSync, and RecordLoader:
https://github.com/marklogic-community/roxy/blob/master/deploy/lib/server_config.rb#L1399
HTH!
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in MARKLOGIC
- How to transform multiple documents into a single document using MarkLogic's REST API?
- MarkLogic 8 - Stream large result set to a file - JavaScript - Node.js Client API
- MarkLogic 8 - Node.js Client API - Can I do a SPARQL Query?
- Search documents with parent-child context : Marklogic
- MarkLogic 8 - XQuery write large result set to a file efficiently
- MarkLogic 8 - After upgrade we are getting 405 Method Not Allowed on a GET
- REST Error during extract document data : Marklogic
- MarkLogic 8 - Rest Endpoint Returning XML even though we specify JSON
- Marklogic 8 xml search
- MarkLogic Samplestack installation issue (Execution failed for task ':dbTeardown')
- Converting database to RDF using D2RQ
- Using MarkLogic Java API, search and retrieve formatted XML matching property, collection, and content
- Xquery get the children nodes by passing parent value at run time
- dateTime range query
- How to automate a calculation in MarkLogic 8 after a document is loaded or updated?
Related Questions in ROXY
- How to Test MarkLogic Rest APIs in Roxy?
- issue on updating roxy for Marklogic 9.0-5
- Looking to add post modules deploy calling a java class in ml-gradle and roxy
- Marklogic web interface update xml documents
- MarkLogic - Custom Search Snippet
- Adding a new module from Oxygen Xml Editor throws error when hit from http get but works fine when deployed through Roxy?
- Delete scheduled task in Marklogic
- Can Roxy be used to deploy generic MarkLogic applications?
- How to retrieve configuration from a marklogic server with Roxy
- roxy conversion to ml-gradle properties error
- Marklogic 9 + Roxy: can't connect to created database using Node.js
- MarkLogic Roxy configuration for app-modules-db
- Insert a document into a particular database MarkLogic
- search:search returns results in query console but no results when its hit from an application by http get?
- Recommendations roxy settings for MarkLogic 8 with dev, prod or local environment variables?
Related Questions in ML-GRADLE
- Unable to setup MarkLogic spring batch basic app
- mDeploy failing after DHF, Gradle and Marklogic upgrades
- How to configuring Taskserver 'max time limit' in MarkLogic Deployment Using mlgradle?
- How to use gradle mlExportToFile and REST Transform to Create NDJSON File
- Deploy a specific MarkLogic Database configuration using ml-gradle
- Gradle Build Failed With ml-gradle plugin install
- ml-gradle local message error causing deployment to fail
- Can I use mlDatabasesWithForestsOnOneHost with replicas?
- Creating Marklogic Forest using ML Gradle
- Dynamically setting ml-gradle properties
- Setting total number of Marklogic forests for a database in ml-gradle
- 401 Unauthorized while resolving gradle dependencies
- How do I manage MarkLogic REST endpoint extension versions using gradle?
- Is it possible to use ml-gradle on MarkLogic 9 without the Admin role?
- ml-gradle NOT to create my-app-content database
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For ml-gradle, is it fine to have the Java class called at the end of "mlDeploy"? If so, you can do that easily by creating a Gradle task of type JavaExec, and then having mlPostDeploy depend on it, e.g.
If you need it to run immediately after modules are loaded and before any other ml-gradle commands are executed, you'll need to make your own command that's part of mlDeploy - see https://github.com/marklogic-community/ml-gradle/wiki/Writing-your-own-command for more info and feel free to post an issue in ml-gradle if you run into problems.