Use Hyperledger Fabric to consolidate a set of illiquid assets into a set of tradable securities
Not entering the function will result in the blockchain network being empty. For Open Liberty to communicate to the blockchain network, Hyperledger Fabric has security features that stop applications attempting to make transactions unless you have the specific profiles and certificate authorities. As there are multiple organizations, we need to connect as admin to both Org1 and Org2 to export the connection profiles.
Select admin. Save the. To export the Org2 wallet, select Org2 , then right-click, and select Export Wallet. You will have three VS Code windows open.
As we installed the Dev Tool for Open Liberty, click the Liberty Dev Dashboard icon, and the extension will display the project: orgol-blockchain-functions. Navigate to the other VS Code windows and click the Liberty Dev Dashboard icon, and the extension will display the project. As there are two organizations, we are going to test submitting a transaction from the seller and then view the updated ledger as the buyer.
The following diagram illustrates how Open Liberty is listening to events from Hyperledger Fabric locally. The seller submits a transaction, and the Java microservice processes the car and adds it to the blockchain network. The vehicle can be queried by any organization, as demonstrated in Step 8 of the tutorial instructions.
When the buyer or seller submits a transaction to the Ledger, an event is emitted from Hyperledger Fabric. Organization 1 does not have the configuration to listen for the said event as the seller is not interested in being notified of the event. Organization 2 has the configuration to listen to the events, resulting in the organization receiving the event triggered by Org1.
This is an event-driven architecture between Organization 1 and Organization 2. Organization 2 automatically receives events emitted out of Hyperledger Fabric and displays these through a servlet 5.
Optional: Fill out the example schema with your own cars and see the recent event of your own cars. Every transaction submitted to Hyperledger Fabric has a unique transaction id. Selecting Execute returns the unique transactionid data.
Open another tab in the web browser of your choice and experience the event-based driven architecture of listening to events. The Servlet on Org2 is automatically listening to events out of Hyperledger Fabric using a servlet. The window refreshes every five seconds that it is listening for a new event; however, the event may take a couple of seconds longer to appear. As the blockchain is distributed, you can query the specific car from any organization. However, as the buyer has agreed to buy the car, query it from Org As well as a unique transaction id, there is a unique key for every car.
The difference between a transaction id and the key is that every time a transaction is made, even with the same key, the transaction id changes; they key does not.
This will stop the Open Liberty server. Now, the server is off and the application is not running anymore. If you tried to hit one of the endpoints, it would not find it. Optional : You can stop the blockchain network, and save the state on the ledger if you decide to come back to it later. Well done. You have created a 2 Org network, where different organizations submit transactions to the blockchain: adding, updating, and querying, as well as listening to events from a blockchain using the Hyperledger Java SDK and Open Liberty.
Get involved Close outline. Close Close. Tutorial Listen to events from a distributed blockchain network Use Java microservices to listen for events from a distributed blockchain network with Open Liberty Favorite this Save Thumbs up Like.
By Thomas Jennings Published July 29, Start a 1 Org blockchain network, and use Open Liberty to execute transactions to blockchain. Start a 2 Org blockchain network and deploy the contract. Export credentials to communicate with the blockchain network. Start Org 1 and Org 2 microservices.
Cloud Foundry. Cloud native development tools on IBM Z. Eclipse Codewind. Eclipse MicroProfile. Eclipse OpenJ9. Hyperledger Fabric. IBM App Connect. IBM Cloud. IBM Cloud Functions. IBM Cloud Private. IBM Db2 Database. IBM Db2 Warehouse. IBM Event Streams. IBM Hyper Protect. IBM i. IBM Maximo. IBM Mobile Foundation. IBM MQ. IBM Power Systems. IBM Sterling. IBM Z. Jakarta EE. Java Platform. Jupyter Notebook. Netezza Performance Server. Open Horizon. Open Liberty. Python Data Analysis Library.
Watson APIs. Watson Assistant. Watson Discovery. Watson Machine Learning Accelerator. Watson OpenScale. Watson Studio. Application modernization. Artificial intelligence. Data management. Data science. Data stores. Deep learning. Front-end development. Knowledge discovery. Machine learning. Mobile development. Natural language processing. Object Storage. Platform as a Service. Predictive analytics. Speech and empathy.
Visual recognition. Web development. Close Close. Search Filters. November 17, October 26, Tutorial Listen to events from a distributed blockchain network. July 29, July 14, Tutorial Learn step-by-step how to set up a basic blockchain network.
July 1, Article Best practices for deploying your apps in the cloud. August 13, Blog Post What is hybrid cloud? January 8, Hybrid cloud explained. March 14, Hybrid cloud architecture: Introduction.
Hybrid cloud architecture: Part 1 Connectivity. Hybrid cloud architecture: Part 2 Modernization. Hybrid cloud architecture: Part 3 Security. June 12, June 5, Create a banking chatbot. August 6, August 10, February 9, Authenticate and personalize a financial news portal. February 1, January 29, January 27, Close Modal. The monitoring UI auto-refreshes to show the transaction result and updated ledger in the response payloads and blockchain columns.
While application modernization is often seen as a technology initiative, it is also a cultural shift and affords the opportunity…. June 18, pm ADT. Get involved Close outline. Close Close. Get the code. Logo github. Watch demo 1. Play outline. Show more Show more icon. Summary Description Flow. Blockchain for trusted transactions Collaborate on business network problems and quickly build blockchain solutions in the IBM Cloud Garage with Blockchain.
Blockchain becomes a crucial link in the supply chain Read Part 1 of the Technologies Disrupting the Supply Chain series covers blockchain as crucial link. Tessel barcode scanner: software Learn how to can a barcode using Tessel, look up product specifics from a third-party database, pass that information to a Node. Related Podcast Microphone The Application Modernization Series While application modernization is often seen as a technology initiative, it is also a cultural shift and affords the opportunity….
Leverage blockchain monitoring
Tutorial Blockchain basics: Com to distributed ledgers. Complete this developer pattern, watch for com blockchain patterns, and make yourself indispensable. Blockchain A complete guide to getting started with blockchain. Front-end development. Blockchain involved Close outline. The developer between ibm transaction id and the key is that every time a transaction is ibm, even with the same key, blockchain transaction id changes; they key developer not.
Listen to events from a distributed blockchain network
This Black History Month, let's rewrite the wrong. Get involved. Search all Code Patterns Arrow right. Get involved Close outline. Close Close. Blockchain Code Patterns Code patterns offer up complete solutions to problems that developers face every day. Code patterns leverage multiple technologies, products, or services to solve issues that our developer advocates have recognized as common use cases across multiple industries.
January 25, Perform analytics on blockchain transactions. April 2, Use access control in your blockchain smart contracts to streamline supply chain operations. March 26, February 28, Track assets on a blockchain ledger. February 20, Secure a digital wallet in the public cloud.
January 28, Build a digital asset management application using blockchain. January 20, Run a smart contract on a blockchain network with the Raft ordering service. January 8, Blockchain for telecom roaming, fraud user identification, and overage management.
October 8, September 17, Build a network to support blockchain-enabled crowdfunding. Code can fight systemic racism. This Black History Month, let's rewrite the wrong. Get involved. Blockchain is a secure, distributed, and open technology that is lowering costs, speeding up processes, and building a new level of trust in transactional applications.
Note: This developer pattern is the first in a series of patterns designed to get you started with blockchain. For an overview of the series, see Build your first blockchain application. But first you have to learn it. You will create a smart contract that defines the participants, tradeable assets, and allowable transactions. Discover how easy it is to set up and configure a basic network that includes a peer, orderer, channel, and certificate authority.
Refer to the Blockchain Component Overview to learn more about these significant components of a blockchain. Business networks also include the participants who interact with them, each of which can be associated with a unique identity, across multiple business networks. This is your chance to climb on the blockchain train and build the skills every business will need.
Complete this developer pattern, watch for future blockchain patterns, and make yourself indispensable.
IBM Blockchain Foundation Developer
Related Podcast Microphone The Application Modernization Series While application modernization is often seen as ibm technology initiative, it is also a cultural shift and affords the opportunity…. July 10, June 9, Mobile development. This app leverages blockchain IBM Blockchain Com Starter Plan and provides a dashboard that allows users to create and view the relationship among assets, pools, investors, and securities. Play developer.
Close Close. This Black History Month, let's rewrite the wrong. This Developer History Month, let's rewrite the wrong. Emit blockchain from Blockchain Platform. Org1-Functions transacts with the blockchain network for the seller, Org2-Functions transacts with the ibm network for the buyer, and Org2-Events listens to com for the buyer.