Running the JMS Importer
Use the JMS Importer to create a type tree in order to manipulate Java™ objects from within a map using the JMS Adapter.
To run the JMS Importer:
public class Book implements java.io.Serializable { public String title; public String author; public float price; public boolean instock; public Book(String title, String author) { this.title = title; this.author = author; } public Book(String title, String author, float price, boolean instock) { this(title, author); this.price = price; this.instock = instock; } }
When using the JMS importer, the specified Java class (the one you are importing) must implement the java.io.Serializable interface; otherwise, the import process will fail.
Note: Book class is in the default package for this example. If it were in a named package,
the name of the package would precede the name of the class. For example, com.ibm.mypack.Book.