Re: [Dev] Developer Studio custom mediator pack dependencies

2015-07-28 Thread Udara Liyanage
Hi,

Got it resolved  after embed-dependency is put inside instruction tag.

On Tue, Jul 28, 2015 at 11:15 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Rajitha,

 Thanks for the information. I tried packing all dependencies with *, but
 it did not pack any dependencies.

 configuration
   instructions
 Bundle-SymbolicNameJsonValidatorMediator/Bundle-SymbolicName
 Bundle-NameJsonValidatorMediator/Bundle-Name
 Export-Packageorg.udara.mediation,/Export-Package
 DynamicImport-Package*/DynamicImport-Package
   /instructions
  Embed-Dependency*/Embed-Dependency
 /configuration


 On Tue, Jul 28, 2015 at 10:43 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Udara,

 This is ok too, but AFAIK it's better to
 use Private-Packageorg.foo.myproject.*/Private-Package as in [1] o that
 those classes won't get exposed to others(Since only you need these
 packages). Or either you can
 use Embed-Dependencydependencies/Embed-Dependency as well. Then those
 jars will be embedded in the osgi jar

 [1] -
 http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

 Thanks,

 On Tue, Jul 28, 2015 at 10:36 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I'v created a mediator project in order to write a custom mediator.
 However if I am using some dependencies(not available in ESB) how can I
 bundle them with the mediator jar. Dependencies were added to the pom, yet
 they are not bundled by default.

 Dependencies were bundled when I added them to export package. Is this
 the correct way of packing dependencies, or is there is another way I can
 specify which dependencies to be packed.

 Export-Packageorg.udara.mediation, org.mydependency/Export-Package

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897




-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Developer Studio custom mediator pack dependencies

2015-07-28 Thread Rajith Vitharana
Hi Udara,

I just tried with
Embed-Dependency*;scope=compile|runtime/Embed-Dependency and it
worked fine for me. According to the doc [1] we can embed dependencies with
different scopes as well.

[1] -
http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

Thanks,

On Tue, Jul 28, 2015 at 11:15 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi Rajitha,

 Thanks for the information. I tried packing all dependencies with *, but
 it did not pack any dependencies.

 configuration
   instructions
 Bundle-SymbolicNameJsonValidatorMediator/Bundle-SymbolicName
 Bundle-NameJsonValidatorMediator/Bundle-Name
 Export-Packageorg.udara.mediation,/Export-Package
 DynamicImport-Package*/DynamicImport-Package
   /instructions
  Embed-Dependency*/Embed-Dependency
 /configuration


 On Tue, Jul 28, 2015 at 10:43 AM, Rajith Vitharana raji...@wso2.com
 wrote:

 Hi Udara,

 This is ok too, but AFAIK it's better to
 use Private-Packageorg.foo.myproject.*/Private-Package as in [1] o that
 those classes won't get exposed to others(Since only you need these
 packages). Or either you can
 use Embed-Dependencydependencies/Embed-Dependency as well. Then those
 jars will be embedded in the osgi jar

 [1] -
 http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

 Thanks,

 On Tue, Jul 28, 2015 at 10:36 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I'v created a mediator project in order to write a custom mediator.
 However if I am using some dependencies(not available in ESB) how can I
 bundle them with the mediator jar. Dependencies were added to the pom, yet
 they are not bundled by default.

 Dependencies were bundled when I added them to export package. Is this
 the correct way of packing dependencies, or is there is another way I can
 specify which dependencies to be packed.

 Export-Packageorg.udara.mediation, org.mydependency/Export-Package

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Developer Studio custom mediator pack dependencies

2015-07-27 Thread Udara Liyanage
Hi Rajitha,

Thanks for the information. I tried packing all dependencies with *, but it
did not pack any dependencies.

configuration
  instructions
Bundle-SymbolicNameJsonValidatorMediator/Bundle-SymbolicName
Bundle-NameJsonValidatorMediator/Bundle-Name
Export-Packageorg.udara.mediation,/Export-Package
DynamicImport-Package*/DynamicImport-Package
  /instructions
 Embed-Dependency*/Embed-Dependency
/configuration


On Tue, Jul 28, 2015 at 10:43 AM, Rajith Vitharana raji...@wso2.com wrote:

 Hi Udara,

 This is ok too, but AFAIK it's better to
 use Private-Packageorg.foo.myproject.*/Private-Package as in [1] o that
 those classes won't get exposed to others(Since only you need these
 packages). Or either you can
 use Embed-Dependencydependencies/Embed-Dependency as well. Then those
 jars will be embedded in the osgi jar

 [1] -
 http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

 Thanks,

 On Tue, Jul 28, 2015 at 10:36 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I'v created a mediator project in order to write a custom mediator.
 However if I am using some dependencies(not available in ESB) how can I
 bundle them with the mediator jar. Dependencies were added to the pom, yet
 they are not bundled by default.

 Dependencies were bundled when I added them to export package. Is this
 the correct way of packing dependencies, or is there is another way I can
 specify which dependencies to be packed.

 Export-Packageorg.udara.mediation, org.mydependency/Export-Package

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/




-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Developer Studio custom mediator pack dependencies

2015-07-27 Thread Udara Liyanage
Hi,

I'v created a mediator project in order to write a custom mediator. However
if I am using some dependencies(not available in ESB) how can I bundle them
with the mediator jar. Dependencies were added to the pom, yet they are not
bundled by default.

Dependencies were bundled when I added them to export package. Is this
the correct way of packing dependencies, or is there is another way I can
specify which dependencies to be packed.

Export-Packageorg.udara.mediation, org.mydependency/Export-Package

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Developer Studio custom mediator pack dependencies

2015-07-27 Thread Rajith Vitharana
Hi Udara,

This is ok too, but AFAIK it's better to
use Private-Packageorg.foo.myproject.*/Private-Package as in [1] o that
those classes won't get exposed to others(Since only you need these
packages). Or either you can
use Embed-Dependencydependencies/Embed-Dependency as well. Then those
jars will be embedded in the osgi jar

[1] -
http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

Thanks,

On Tue, Jul 28, 2015 at 10:36 AM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 I'v created a mediator project in order to write a custom mediator.
 However if I am using some dependencies(not available in ESB) how can I
 bundle them with the mediator jar. Dependencies were added to the pom, yet
 they are not bundled by default.

 Dependencies were bundled when I added them to export package. Is this
 the correct way of packing dependencies, or is there is another way I can
 specify which dependencies to be packed.

 Export-Packageorg.udara.mediation, org.mydependency/Export-Package

 --

 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev