TIBCO LibraryBuilder: How to Create and Import Design Time Libraries in TIBCO

By | November 5, 2014

While working in TIBCO Projects, you often come across situations where teams are working on multiple projects and there are certain common functionality that is reusable among different projects. Instead of reinventing the wheel in every project and doing duplicate things; TIBCO provides options to create design time libraries using LibraryBuilder and then share it with other project teams so that they can import design time libraries and use the same.

In this step by step tutorial, I will explain how to use TIBCO BW Library Builder to create design time libraries(.projlib) and how to import and use such libraries in other projects.

Example Scenario:

I am taking a simple scenario for this tutorial. Let’s suppose that we have a Student Schema that is a common schema and will be used across multiple projects. We will create a Schema for Student and add it to a Project Library by using LibraryBuilder resource from General Palette.

We will build the library and then will import it as a design time project library in another project and use there.


Let’s go step by step with TIBCO Project Library tutorial:


Step 1: Create a common reusable Schema

In this step, create a new XML Schema (XSD File) by using Schema element from XML Tools Palette. In the Student Schema, I am adding StudentName, StudentAge and StudentDOB as its tags as shown below:

tibco project library schema


We want this schema to be added to a Project Library so that It can be reused in other projects.


Step 2: Create Project Library Using LibraryBuilder in TIBCO

To create Project Library(.projlib), drag LibraryBuilder from the General Palette in your project. In the configuration tab, give some name to your project library. Also specify the path where you want to save your Project Libary file with .projlib extension:

project libarary configuration screenshot


Now go to Resources tab of the LibaryBuilder and add the resources. We want to add the Schema that we created in Step 1. Using binocular button, browse and select the Schema file as shown in the screenshot below:

Library Builder Resource tab


Now build the Project Library by clicking on Build Library button (appears in the bottom). On successful build, you will get a Success message that your Project Library has been built successfully.

Now we proceed to next step in which we will import this library in a different project and will use it.


Step 3: Import Project Library (.projlib) and use it

I created a new TIBCO Designer Project and named it as ProjectLibraryImport. Go to the Project Root by clicking on the project name in the Project Panel. Go to Design Time Libraries tab and using + button, browse and import the Project Library that was created in previous step.

As you can see in below screenshot, Library has been imported in the project and Its enclosed Schema is now available in the project:

tibco design time libraries import library


Now you can use this Schema in this project in any desired manner.

Let’s create a process and use StudentSchema in its Start activity. I created a new Process with the name StudentProcess. In the Output Editor of Start Activity, choose the StudentSchema by using the option XML Element Reference as shown in screenshot below:

xml scehma reference to project libarary schema


Feel free to contact me if you are unclear on any point or If you need further help.


Ajmal Abbasi

Ajmal Hussain Abbasi is Integration Consultant By Profession with more than 7 years experience in TIBCO products. He has extensive practical knowledge of TIBCO Business Works, TIBCO Spotfire, TIBCO BE, EMS and TIBCO ActiveSpaces. He has worked on a number of highly critical integration projects in Telecom sector by using his skills in Tibco Designer, Adapters, TIBCO EMS, RV, Administrator, TIBCO BE, TIBCO ActiveSpaces etc.
Ajmal Abbasi is also experienced in developing solutions using Oracle PL/Sql, Linux and Java.
You can contact Ajmal Abbasi for Consultancy, Technical Assistance and Technical Discussions.

More Posts - Website - Facebook - LinkedIn

8 thoughts on “TIBCO LibraryBuilder: How to Create and Import Design Time Libraries in TIBCO

  1. shraddha

    Hi.. in my project , when I click on browse button, I can see two projlibs, one is .projlib and another one .projlib1.
    However am unable to edit any or delete any of those already available projlibs. And so I edited the designtimelibs file so that proper projlib appear in the designer.

    BUt still looks like my project is referring to wrong projlib and so am unable to work further.

    Can u pls provide some solution on deleting these already existing projlibs and creating a fresh projlib in designer.

    1. Ajmal Abbasi Post author

      Dear Shraddha,

      To remove existing projlib references; go to Edit–>Preferences–>File Aliases and select the alias libraries that you want to delete. Once deleted from there; you will be able to add the project library again from the “Design Time Libraries” option in your project. Thanks

  2. selva

    consider I have a student schema with 3 elements sid, sname, saddress. in this case I wanted to repeat sname 10 times exactly. how can I do this ?

    1. Ajmal Abbasi Post author

      Dear Selva,

      Any element can be kept as repeating. You can have below in your schema to make sname repeatable 10 times:

  3. Quinten Lamprecht


    I have a scenario where I have a master Template with multiple design Time Library Builders in it, the problem I have when using it the Global Variables of all the Libraries are used and I am only using a few of them. I tried adding the property java.property.EnableGvarReduction=true to my designer file which then adds the option Export Referenced GVars Only to the Library Builder, but I am unable to check it as soon as I select it a warning comes up and it returns to un-selected state.

  4. Dilara

    I try to build the Library with the ” TIBCO_LOC_DTL” but it generate a library that can’t be read, however when I build the library as you explained above, it is generated properly..
    Do you have please any idea of what the probleme can be with trying to build the DTL with the tool TIBCO_LOC_DTL?

    Thank you in advance


Leave a Reply

Your email address will not be published. Required fields are marked *