How to add different projects to your OSB Configuration project

When you manually setup your OSB Config project or when you get it automatically created from an sbconfig.jar file you will always have your project properly nested to your configuration project, like in the image below:

OSB_Config_Project_Nested
The thing is when you already have a project into another folder or config project and you need to import it to yours. When you do that, the project will be shown like this:
OSB_Config_Project_Foreign_Project
You will also get an error telling you the project is not associated with a Oracle Service Bus Configuration Project, like you see below.
OSB_Config_Project_Not_Assosciated_Error
What you have to do is go to your <OSB Config Project home folder>/.settings and edit the com.bea.alsb.core.prefs file.
All you have to do is add the name of your project to the container.referenced.projects property, separated by pipe “|”, like below
#Fri Feb 08 14:48:55 BRST 2013
 ACTIVATION_DESCRIPTION_PROPERTY=Publish from Oracle Service Bus IDE.
 CUSTOMIZATION_FILE_PROPERTY=
 DISCARD_SESSION_PROPERTY=true
 KEYSTORE_PROPERTYfile=
 KEYSTORE_PROPERTYpassword=
 PUBLISH_SESSION_NAME_PROPERTY=OSB_Publish
 SERVER_PROPERTY=
#VRS: Add the project here:
 container.referenced.projects=Local Project|Foreign Project
 eclipse.preferences.version=1
Now restart the eclipse and you are all done!
OSB_Config_Project_ReNested
Thank you!
Advertisements

One thought on “How to add different projects to your OSB Configuration project”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s