Re: [Dev] Create a OSGi bundle in Dev Studio

2015-01-09 Thread Viraj Rajaguru
Hi Eranda,

We are using org.apache.felix.maven-bundle-plugin[1] maven plugin in Java
Library Project to create OSGI bundle from the existing jar or java
project. Using maven-bundle-plugin we can define parameter such as
'Export-Packages', 'Bundle-Activator' etc. for the OSGI bundle.

For an example, see the following plugin definition in the pom.xml of a Java
Library Project

 plugin
groupIdorg.apache.felix/groupId
artifactIdmaven-bundle-plugin/artifactId
version2.3.4/version
extensionstrue/extensions
configuration
  instructions
Bundle-SymbolicNamemyBundle/Bundle-SymbolicName
Bundle-NamemyBundle/Bundle-Name
Export-Packageorg.wso2.myBundle,x.y.z/Export-Package
DynamicImport-Package*/DynamicImport-Package
Bundle-Activatororg.wso2.myBundle.Activator/Bundle-Activator
  /instructions
/configuration
  /plugin

Thanks,
Viraj.

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

On Wed, Jan 7, 2015 at 5:33 PM, Eranda Sooriyabandara era...@wso2.com
wrote:

 That means we can't restrict the exports, can't use the bundle activators
 or can't use the declarative service in these bundles. Isn't it?

 Thanks
 Eranda


 On Wednesday, January 7, 2015, Viraj Rajaguru vi...@wso2.com wrote:

 Hi Eranda,

 We have Java Library Project[1] in devS to create a OSGI bundle from a
 existing jar file or java project in the workspace.

 Thanks,
 Viraj.

 [1] -
 https://docs.wso2.com/display/DVS371/Creating+Carbon+Projects#CreatingCarbonProjects-JavaLibraryProject

 On Wed, Jan 7, 2015 at 3:33 AM, Eranda Sooriyabandara era...@wso2.com
 wrote:

 Hi Dev-Stidio team,
 Is there a way to do the $subject? I know how to create the OSGi using
 the eclipse but its bit different when it comes to the conventions we
 follow when we create Carbon bundles. Carbon UI bundle project is there but
 nothing for carbon bundles.

 thanks
 Eranda

 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068





 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/








-- 
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com

Mobile: +94 77 3683068
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Create a OSGi bundle in Dev Studio

2015-01-09 Thread Eranda Sooriyabandara
Hi Viraj,
Yes, we can use the felix bundle plugin which is what we used in the all
the carbon bundles. But can't we automate this in dev-studio?

thanks
Eranda

On Fri, Jan 9, 2015 at 11:53 AM, Viraj Rajaguru vi...@wso2.com wrote:

 Hi Eranda,

 We are using org.apache.felix.maven-bundle-plugin[1] maven plugin in Java
 Library Project to create OSGI bundle from the existing jar or java
 project. Using maven-bundle-plugin we can define parameter such as
 'Export-Packages', 'Bundle-Activator' etc. for the OSGI bundle.

 For an example, see the following plugin definition in the pom.xml of a Java
 Library Project

  plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 version2.3.4/version
 extensionstrue/extensions
 configuration
   instructions
 Bundle-SymbolicNamemyBundle/Bundle-SymbolicName
 Bundle-NamemyBundle/Bundle-Name
 Export-Packageorg.wso2.myBundle,x.y.z/Export-Package
 DynamicImport-Package*/DynamicImport-Package

 Bundle-Activatororg.wso2.myBundle.Activator/Bundle-Activator
   /instructions
 /configuration
   /plugin

 Thanks,
 Viraj.

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

 On Wed, Jan 7, 2015 at 5:33 PM, Eranda Sooriyabandara era...@wso2.com
 wrote:

 That means we can't restrict the exports, can't use the bundle activators
 or can't use the declarative service in these bundles. Isn't it?

 Thanks
 Eranda


 On Wednesday, January 7, 2015, Viraj Rajaguru vi...@wso2.com wrote:

 Hi Eranda,

 We have Java Library Project[1] in devS to create a OSGI bundle from a
 existing jar file or java project in the workspace.

 Thanks,
 Viraj.

 [1] -
 https://docs.wso2.com/display/DVS371/Creating+Carbon+Projects#CreatingCarbonProjects-JavaLibraryProject

 On Wed, Jan 7, 2015 at 3:33 AM, Eranda Sooriyabandara era...@wso2.com
 wrote:

 Hi Dev-Stidio team,
 Is there a way to do the $subject? I know how to create the OSGi using
 the eclipse but its bit different when it comes to the conventions we
 follow when we create Carbon bundles. Carbon UI bundle project is there but
 nothing for carbon bundles.

 thanks
 Eranda

 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068





 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/








 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068






-- 

*Eranda Sooriyabandara*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: (812) 964-9032
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Create a OSGi bundle in Dev Studio

2015-01-09 Thread Viraj Rajaguru
Hi,

On Fri, Jan 9, 2015 at 10:28 PM, Eranda Sooriyabandara era...@wso2.com
wrote:

 Hi Viraj,
 Yes, we can use the felix bundle plugin which is what we used in the all
 the carbon bundles. But can't we automate this in dev-studio?


No. There is no dedicated project creation option available to automate
carbon/OSGI bundle creation in dev-studio. We have to do tasks such as edit
pom.xml, add Activator class etc. manually when we use Java Library
Project which is the available option.

Thanks,
Viraj.


 thanks
 Eranda

 On Fri, Jan 9, 2015 at 11:53 AM, Viraj Rajaguru vi...@wso2.com wrote:

 Hi Eranda,

 We are using org.apache.felix.maven-bundle-plugin[1] maven plugin in Java
 Library Project to create OSGI bundle from the existing jar or java
 project. Using maven-bundle-plugin we can define parameter such as
 'Export-Packages', 'Bundle-Activator' etc. for the OSGI bundle.

 For an example, see the following plugin definition in the pom.xml of a Java
 Library Project

  plugin
 groupIdorg.apache.felix/groupId
 artifactIdmaven-bundle-plugin/artifactId
 version2.3.4/version
 extensionstrue/extensions
 configuration
   instructions
 Bundle-SymbolicNamemyBundle/Bundle-SymbolicName
 Bundle-NamemyBundle/Bundle-Name
 Export-Packageorg.wso2.myBundle,x.y.z/Export-Package
 DynamicImport-Package*/DynamicImport-Package

 Bundle-Activatororg.wso2.myBundle.Activator/Bundle-Activator
   /instructions
 /configuration
   /plugin

 Thanks,
 Viraj.

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

 On Wed, Jan 7, 2015 at 5:33 PM, Eranda Sooriyabandara era...@wso2.com
 wrote:

 That means we can't restrict the exports, can't use the bundle
 activators or can't use the declarative service in these bundles. Isn't it?

 Thanks
 Eranda


 On Wednesday, January 7, 2015, Viraj Rajaguru vi...@wso2.com wrote:

 Hi Eranda,

 We have Java Library Project[1] in devS to create a OSGI bundle from
 a existing jar file or java project in the workspace.

 Thanks,
 Viraj.

 [1] -
 https://docs.wso2.com/display/DVS371/Creating+Carbon+Projects#CreatingCarbonProjects-JavaLibraryProject

 On Wed, Jan 7, 2015 at 3:33 AM, Eranda Sooriyabandara era...@wso2.com
 wrote:

 Hi Dev-Stidio team,
 Is there a way to do the $subject? I know how to create the OSGi using
 the eclipse but its bit different when it comes to the conventions we
 follow when we create Carbon bundles. Carbon UI bundle project is there 
 but
 nothing for carbon bundles.

 thanks
 Eranda

 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068





 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/








 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068






 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







-- 
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com

Mobile: +94 77 3683068
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Create a OSGi bundle in Dev Studio

2015-01-07 Thread Viraj Rajaguru
Hi Eranda,

We have Java Library Project[1] in devS to create a OSGI bundle from a
existing jar file or java project in the workspace.

Thanks,
Viraj.

[1] -
https://docs.wso2.com/display/DVS371/Creating+Carbon+Projects#CreatingCarbonProjects-JavaLibraryProject

On Wed, Jan 7, 2015 at 3:33 AM, Eranda Sooriyabandara era...@wso2.com
wrote:

 Hi Dev-Stidio team,
 Is there a way to do the $subject? I know how to create the OSGi using the
 eclipse but its bit different when it comes to the conventions we follow
 when we create Carbon bundles. Carbon UI bundle project is there but
 nothing for carbon bundles.

 thanks
 Eranda

 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







-- 
Viraj Rajaguru
Senior Software Engineer
WSO2 Inc. : http://wso2.com

Mobile: +94 77 3683068
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Create a OSGi bundle in Dev Studio

2015-01-07 Thread Eranda Sooriyabandara
That means we can't restrict the exports, can't use the bundle activators
or can't use the declarative service in these bundles. Isn't it?

Thanks
Eranda

On Wednesday, January 7, 2015, Viraj Rajaguru vi...@wso2.com wrote:

 Hi Eranda,

 We have Java Library Project[1] in devS to create a OSGI bundle from a
 existing jar file or java project in the workspace.

 Thanks,
 Viraj.

 [1] -
 https://docs.wso2.com/display/DVS371/Creating+Carbon+Projects#CreatingCarbonProjects-JavaLibraryProject

 On Wed, Jan 7, 2015 at 3:33 AM, Eranda Sooriyabandara era...@wso2.com
 javascript:_e(%7B%7D,'cvml','era...@wso2.com'); wrote:

 Hi Dev-Stidio team,
 Is there a way to do the $subject? I know how to create the OSGi using
 the eclipse but its bit different when it comes to the conventions we
 follow when we create Carbon bundles. Carbon UI bundle project is there but
 nothing for carbon bundles.

 thanks
 Eranda

 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: (812) 964-9032
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







 --
 Viraj Rajaguru
 Senior Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile: +94 77 3683068





-- 

*Eranda Sooriyabandara*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: (812) 964-9032
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Create a OSGi bundle in Dev Studio

2015-01-06 Thread Eranda Sooriyabandara
Hi Dev-Stidio team,
Is there a way to do the $subject? I know how to create the OSGi using the
eclipse but its bit different when it comes to the conventions we follow
when we create Carbon bundles. Carbon UI bundle project is there but
nothing for carbon bundles.

thanks
Eranda

-- 

*Eranda Sooriyabandara*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: (812) 964-9032
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev