Calling a JAR File in Mendix (Teamcenter Integration) - Mendix Forum

Calling a JAR File in Mendix (Teamcenter Integration)

0

Hi Everyone,

I am currently working on an integration between Mendix and Teamcenter.

I have a JAR file that fetches data from Teamcenter. At the moment, I am unable to call the JAR file directly from Mendix. As a workaround, I created a Python service that:

While this works, I would prefer to avoid using Python as a middleware layer.

My Questions:

  1. Is there a way to directly call a JAR file from Mendix without using an intermediate Python service?
  2. Can we place the JAR inside the Mendix project (e.g., in the userlib folder) and invoke it using a Java Action?
  3. Is it possible to use the Teamcenter (TC) Connector in Mendix to modify or extend a microflow to fetch data?
  4. If yes, which microflows, activities, or connector actions should be used to fetch data from Structure Manager in Teamcenter?

I would appreciate guidance on the recommended architecture or best practice for integrating Mendix with Teamcenter.

Thank you in advance!

asked
2 answers

Hi Marco,

Thank you for your response.


Use Case:

I need to fetch Structure Manager details from Teamcenter and display them in the Mendix UI.

Input:

Item ID

The goal is to integrate multiple enterprise applications into a single application using Mendix, and Teamcenter is one of the key systems from which we need to retrieve structured BOM data.

Initially, I developed a custom SOA-based Java implementation to fetch the required Structure Manager data from Teamcenter. This solution works correctly, and I packaged the project as a JAR file.

The reason I chose this approach is that while exploring the Teamcenter Connector in Mendix, I found limitations in modifying or extending certain microflows to meet our specific Structure Manager requirements. Due to these constraints, I proceeded with the custom SOA implementation.

Currently, the flow is:

  • Python service executes the JAR file
  • Python exposes a REST API
  • Mendix consumes the REST API and displays the data

Although this works, I would prefer to remove the Python middleware and simplify the architecture.

My questions are:

  1. Is it recommended to place the JAR file inside the Mendix userlib folder and invoke it via a custom Java Action?
  2. Is there a supported way to extend or customize the Teamcenter Connector microflows for advanced Structure Manager queries?
  3. From a best-practice perspective, what would be the recommended architecture for this integration?

Looking forward to your guidance.

Kind regards,

Suresh

Created

Hi Suresh, 


Can you explain what you are trying to do (what is your usecase and what data are you interested in)? Why do you want to integrate through the JAR? We have the Teamcenter connector and Teamcenter extension to help you to integrate with Teamcenter. Did you already try these out? If so, what are the limitations you are facing?


Kind regards,

Marco

Created