WebLogic Tuxedo Connector Programmer's Guide
Note: For more information on Tuxedo VIEW buffers, see Using a VIEW Typed Buffer.
WebLogic Tuxedo Connector allows you to create a Java VIEW buffer type analogous to a Tuxedo VIEW buffer type derived from an independent C structure. This allows WebLogic Server applications and Tuxedo applications to pass information using a common structure. WebLogic Tuxedo Connector VIEW buffers do not support FML VIEWs or FML VIEWs/Java conversions.
null fields are not relevant for independent Java and C structures and are ignored by the Java and C VIEW compiler. You must include a value (for example, a dash) as a placeholder in these fields.
Your WebLogic Server application and your Tuxedo application must share the same information structure as defined by the VIEW description. The following format is used for each structure in the VIEW description file:
viewjcompiler and the Tuxedo
Constants used, by convention, as escape characters can also be used to specify a NULL value. The VIEW compiler recognizes the following escape constants: \ddd (where d is an octal digit), \0, \n, \t, \v, \r, \f, \\, \', and \".
You can also specify the keyword NONE in the NULL field of a VIEW member description, which means that there is no NULL value for the member. The maximum size of default values for string and character array members is 2660 characters.
Use to set Use to create Use to create Use to generate different Java code for encoding strings sent to
Tuxedo and decoding strings received from Tuxedo. Encoding
code adds a null character to the end of each string. Decoding
code truncates each string at the first null character recieved.
AssociatedFieldHandling to true. This allows
get accessor methods to use the values of the
associated length and count fields if they are specified in the
VIEW description file. If not specified, the default value for
AssociatedFieldHandling is false.
get accessor names that follow
JavaBeans naming conventions. The first character of the field
name is changed to upper case before the
get prefix is
added. The signature of indexed
set accessors for array fields
changes from the default signature of
value, int index) to
void setAfield(int index,
get accessor names that are formed by
taking the field name from the VIEW description file and adding
a set or get prefix. Provides compatibility with releases prior to
WebLogic Server 8.1 SP2. Default value is
-bean_names or -compat_names is not specified.
Use to set
Use to create
Use to create
Use to generate different Java code for encoding strings sent to Tuxedo and decoding strings received from Tuxedo. Encoding code adds a null character to the end of each string. Decoding code truncates each string at the first null character recieved.
The output of the
j32 command is a
.java source file that contains
get accessor methods for each field in the VIEW description file. Use these
get accessor methods in your Java applications to pass information to and from a VIEW buffer.
setmethods set the count for an array field and set the length for a string or carray field.
getmethods return an array that is at most the size of the associated count field.
getmethods return data that is at most the length of the associated length field.
associated_fieldsoption for the
viewj32compiler to set the
AssociatedFieldHandlingflag to true..
void setAssociatedFieldHandling(boolean state)method in your Java application to set the state of the
getmethods ignore the length and count fields.
getmethods use the values of the associated length and count fields if they are specified in the VIEW description file.
boolean getAssociatedFieldHandling()method in your Java application to return the current state of