One Star

How create global variable types Arrays

Hi
How to create global variable types
Vector to
Vector b] 7]
Regards,
Oscar Manso
2 REPLIES
Community Manager

Re: How create global variable types Arrays

Hi
Create a global variable on Java components, for example:
on tJava:
java.util.Vector v=new java.util.Vector();
v.addElement("shong");
v.addElement("oscarmsanz");
globalMap.put("vector",v);
To get this variable, using this expression:
java.util.Vector v1=(java.util.Vector)globalMap.get("vector")
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: How create global variable types Arrays

Hi
Ok, thanks.

Regards,
Oscar Manso