Open topic with navigation

TIBCO® Enterprise Administrator 2.4.2

# Support for POJOs

TeaOperation supports Plain Old Java Object (POJO) as parameters and return types.

To enable POJO support, you must enable the `enable_class_generation` property on `EnterpriseAdministrator` as follows:

    import tibco.tea
    tea =tibco.tea.EnterpriseAdministrator(config={'enable_class_generation':True})

The property is, by default, set to `false`, so ensure that you set this to `true` if you want the Python scripts to support POJO objects. POJO support comes with some supported scenarios and limitations.

## Supported Scenarios

The following java objects are supported as a parameter or a return type:

1. A POJO
2. Array of POJO
3. List of POJOs
4. Map of POJOs
5. Nested POJOs
6. A list of POJOs passed as a parameter to a Map is supported as a return type.
7. If you have classes with same names in different packages, underscore separated fully qualified names are used to distinguish them. For example, if there is a class by the name, `TeaAgent` in `com.tibco.tea.agentA`, and `com.tibco.tea.agent.agentB`, the class in package `agentA` is identified by using `com_tibco_tea_agent_agentA_TeaAgent``` and the class in `agentB` is identified by using `com_tibco_tea_agent_agentB_TeaAgent`.

   Fully Qualified Name in Java | Fully Qualified Name in Python
   --- | ---
   `com.tibco.tea.agent.agentA.TeaAgent` | `com_tibco_tea_agent_agentA_TeaAgent`
   `com.tibco.tea.agent.agentB.TeaAgent` | `com_tibco_tea_agent_agentB_TeaAgent`

Subtopics

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Enterprise Administrator

Copyright © 1996-2025. Cloud Software Group, Inc. All Rights Reserved.