[
https://issues.jboss.org/browse/JBIDE-9424?page=com.atlassian.jira.plugin...
]
Fred Bricon commented on JBIDE-9424:
------------------------------------
For your information, you can deploy the helloworld-osgi app from JBoss Tools
You need :
- Eclipse Indigo Java EE
- m2e, available from
http://download.eclipse.org/releases/indigo
- JBoss Archive Tools and JBossAS Tools, from
http://download.jboss.org/jbosstools/updates/nightly/trunk/
- m2eclipse-tycho from the m2e marketplace (Window > Preferences > Maven >
Discovery > Open catalog)
You need to :
- create a JBoss AS 7 server
- import helloworld-osgi (from
https://github.com/jbossas/quickstart/tree/master/helloworld-osgi) as a Maven Project in
Eclipse
- open the Project Archive View (Window > show view > other ...)
- select the helloworld-osgi project
- in the project archive view, right click on helloworld-osgi > New Archive > Jar
- change the destination to /jboss-as-helloworld-osgi/target (to avoid polluting your
source code)
- choose exploded archive if you want
- click finish
- A Project archives node appears in the Project Explorer view, having a
jboss-as-helloworld-osgi.jar node
- right click on the jboss-as-helloworld-osgi.jar node (either in the Project Explorer or
Project archives view), choose New Fileset
- In the root directory input, enter target/classes (or select that folder via the
Workspace button)
- click finish
- right click on the jboss-as-helloworld-osgi.jar node (either in the Project Explorer or
Project archives view), Publish to server
- select the AS7 instance, choose Always Publish and Autodeploy
- In you servers view, start your AS7 instance
- See how your bundle writes to the console.
And for the sweet part :
- add a break point in your code
- start AS7 in debug mode
- once the thread hits your break point, change some code in your method (add/change a
out.writeln(...))
- See how it hot reloads your code \o/
Provide the ability to deploy OSGi bundles
------------------------------------------
Key: JBIDE-9424
URL:
https://issues.jboss.org/browse/JBIDE-9424
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: JBossAS
Reporter: David Bosschaert
Assignee: Rob Stryker
AS7 supports OSGi bundles as deployments, and Eclipse supports the creation of OSGi
bundles through the built-in PDE tooling (see [1] for an example). However, OSGi bundles
developed with Eclipse PDE can't be deployed via the JBDS to AS7 yet.
Support for deploying OSGi bundles to AS7 should be added to the JBoss Tooling.
[1]
https://docs.jboss.org/author/display/AS7/Helloworld+OSGi+quickstart
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira