I just would like to create a String Field, not a UnicodeString Field …
here is my code:
…
monEvent.setStringField( “champ1N1”, “champ bla bla bla” );
System.out.println( "BrokerTypeDef.FIELD_TYPE_STRING: " + BrokerTypeDef.FIELD_TYPE_STRING );
System.out.println( "BrokerTypeDef.FIELD_TYPE_UNICODE_STRING: " + BrokerTypeDef.FIELD_TYPE_UNICODE_STRING );
System.out.println( "monEvent.getFieldType( "champ1N1" ): " + monEvent.getFieldType( “champ1N1” ));
…
The results:
BrokerTypeDef.FIELD_TYPE_STRING: 65
BrokerTypeDef.FIELD_TYPE_UNICODE_STRING: 66
monEvent.getFieldType( “champ1N1” ): 66
The BrokerEvent object “monObjet” is created using a storage class, defining the “champ1N1” field as a String (“String champ1N1”)
I also tried with the “setField” method, but the result is the same.
Any idea ?