Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme update #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions datasource/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,29 @@ You can use `grep` to filter the list of bundles and quickly find the right one.
[ 269] [Active ] [ ] [ ] [ 60] Fuse By Example :: Transactions :: Database (1.0.0.SNAPSHOT)
[ 270] [Active ] [ ] [Started] [ 60] Fuse By Example :: Transactions :: Routing (1.0.0.SNAPSHOT)

In this example, the bundle id is 268. Using the `osgi:ls` command, we can see that this bundle is publishing 3 services:

* first, there's the `javax.sql.XADataSource` that we created in our Blueprint XML file
* secondly, Aries JTA has added a corresponding `javax.sql.DataSource` and added the `aries.xa.aware = true` property to it to indicate an XA-aware data source
* finally, the Blueprint extender mechanism also published the Blueprint container (containg our data source bean definitions) it created

This is what the `osgi:ls` output looks like
In this example, the bundle id is 268. Using the `osgi:ls` command, we can see the following services listed:

FuseESB:karaf@root> osgi:ls 268

Fuse By Example :: Transactions :: Datasource (268) provides:
-------------------------------------------------------------
datasource.name = Derby
objectClass = javax.sql.XADataSource
osgi.jndi.service.name = jdbc/transactions
osgi.service.blueprint.compname = derby-cf
service.id = 414

objectClass = org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5, org.osgi.framework.BundleReference, java.security.SecureClassLoader, java.lang.ClassLoader, org.apache.felix.framework.BundleWiringImpl$BundleClassLoader
osgi.service.blueprint.compname = classLoader
service.id = 533
----
aries.xa.aware = true

datasource.name = Derby
objectClass = javax.sql.DataSource
osgi.jndi.service.name = jdbc/transactions
osgi.service.blueprint.compname = derby-cf
service.id = 415
service.ranking = 1000
service.id = 534
----

objectClass = org.osgi.service.blueprint.container.BlueprintContainer
osgi.blueprint.container.symbolicname = org.fusesource.example.transactions.datasource
osgi.blueprint.container.version = 1.0.0.SNAPSHOT
service.id = 416
service.id = 535