SlideShare une entreprise Scribd logo
1  sur  32
Apache ServiceMix is an enterprise-class open-source
distributed enterprise service bus (ESB) and service-oriented
architecture (SOA) toolkit. It was built from the ground up on
the semantics and APIs of the Java Business Integration (JBI)
specification JSR 208 and released under the Apache License.
ServiceMix 4 also fully supports OSGi. ServiceMix is
lightweight and easily embeddable, has integrated Spring
support and can be run at the edge of the network (inside a
client or server), as a standalone ESB provider or as a service
within another ESB. You can use ServiceMix in Java SE or a
Java EE application server. ServiceMix uses ActiveMQ to
provide remoting, clustering, reliability and distributed
failover.
"An Enterprise Service Bus (ESB) is a new architecture
that, exploits Web services, Messaging middleware,
intelligent routing, and transformation. ESBs act as a
lightweight, ubiquitous integration backbone through
which software services and application components
flow.”
An ESB acts as a shared messaging layer for connecting
applications and other services throughout an enterprise
computing infrastructure. It supplements its core
asynchronous messaging backbone with intelligent
transformation and routing to ensure messages are
passed reliably. Services participate in the ESB using
either web services messaging standards or JMS
§
ServiceMix employs a layered architecture based on OSGi
• The core : A lightweight runtime named “Karaf”, which extends
OSGi with powerful features for handling and managing OSGI
bundles
• The technology layer : A layer of component technologies that sits
on top of the core to support your applications
•Hot deployment support for OSGi bundles
• Dynamic configuration of services through the OSGi “ConfigurationAdmin”

service

• Dynamic logging back-end provided by Log4J supports different

APIs (SLF4J, Java Utils, JCL, Avalon, Tomcat, OSGi)
• Application provisioning through file-drop, Maven repository and

remote download (http://)
• Administration via an extensible shell console
• Secure remote access via ssh
• Security framework based on JAAS
oSpring Framework

ServiceMix loads an OSGi bundle into its runtime, or generates an
OSGi
bundle on the fly, and then instantiates the Spring application context
o JMS Message Broker
ServiceMix deploys the Apache ActiveMQ broker (OSGi-ready)
o JAX-WS/JAX-RS Web Services support
ServiceMix deploys the Apache CXF runtime (OSGi-ready)
o Enterprise Integration Patterns (EIP) support
ServiceMix deploys the Apache Camel runtime (OSGi-ready)
o Java Business Integration (JBI) support
ServiceMix provides a JBI 1.0 container, to support legacy code
implemented as service units / service assemblies and deployed using
ServiceMix 3.x
oCan be extended to support technologies such as SCA or EJB3
oWhen you deploy a ServiceMix solution, you typically

deploy the core (Karaf) plus one or more technology
Components
oExamples:

• To support EIPs : Karaf runtime + Camel feature
• To support JAX-WS/JAX-RS solutions : Karaf runtime + CXF
feature
• To support JMS solutions : Karaf runtime + ActiveMQ
feature
• To support JBI-based solutions : Karaf runtime + JBI feature
JBI defines an architecture that allows the construction
of integration systems from plug-in components, that
interoperate through the method of mediated message
exchange.
2 kinds of components
● Service Engine (SE)
Allow implementing business logic or services on the ESB
e.g. servicemix-drools or servicemix-bean
● Binding Components Provide connectivity to external services
(transport, normalization, ...)
e.g. servicemix-ftp or servicemix-http
Apache ServiceMix – Integration container
Apache ServiceMix – Integration container
Apache Camel – Integration Routes

Apache ActiveMQ - Messaging

Apache Karaf – OSGI Management
System requirements

Java Developer Kit (JDK) 1.6.x (Java 6), for both deployment and compiling. (Note:
Java 7 is currently not supported)
About 100 MB of free disk space
Downloading Apache ServiceMix
Apache ServiceMix 4.4.2 is available under the Apache License v2 and can be
downloaded from http://servicemix.apache.org/downloads.html.
Depending on your operation system, you should download either the tar.gz or the
zip file: • tar.gz for Linux/Unix/MacOS X • zip for Windows
On Linux/Unix/MacOS X
On a command shell, navigate to the directory where you
extracted ServiceMix and the bin/servicemix shell script
Example: if ServiceMix is installed in the
~/Applications/apache-servicemix-4.4.2 directory.
$ cd ~/Applications/apache-servicemix-4.4.2
$ ./bin/servicemix
$ cd ~/Applications/apache-servicemix-4.4.2
$ ./bin/servicemix
Working with bundles
When ServiceMix is first started, a whole set of bundles providing the core features
for the product are being installed. Let's use the command console to find out more
about them...
The osgi:list command can be used to get a list of all bundles currently installed.
Enter this
karaf@root> osgi:list
For every bundle, you see:
• the bundle id
• the bundle state
• if the bundle contains a Blueprint or Spring XML file, the next 2 columns will show you
if the
beans defined there were created successfully
• the bundle start level
• the bundle name and version
KARAF – It is a command line tool used to install/uninstall parts of a SMX application
and also to troubleshoot problems
Grep command in karaf
karaf@root> osgi:list | grep camel
Working with logging
To look at the message in the log file
karaf@root> log:display
If you're only interested in the latest exception in the log file
karaf@root> log:display-exception
You can also change the log level at runtime by using the log:set command. You can
try these commands on your instance now by first setting the log level to DEBUG
and then using grep to make sure that you can actually see the extra logging.
karaf@root> log:set DEBUG
karaf@root> log:display | grep DEBUG
Checking Logs file
karaf@root>log:display-exception it display the current exception
karaf@root>log:set DEBUG to set the logs in DEBUG Mode
karaf@root>log:display
karaf@root>log:set INFO to set the logs in INFO Mode
karaf@root>log:display
The list of features is available with the features:list command, we are taking some of few
regular basis command.This command shows the status weather it is installed or not,
and other tab shows version and Name.
and grep to find the things in the list that you're interested in.
karaf@root> features:list
karaf@root> features:list | grep camel
Web console:To get the web console installed in ServiceMix, install the feature from
your console
karaf@root> features:install webconsole
karaf@root> features:list | grep webconsole
your browser to http://localhost:8181/system/console and login with user smx and
password smx to access the web console
Servicemix-camel : The servicemix-camel component provides support for using
Apache Camel to provide a full set of Enterprise Integration Patterns and flexible routing
and transformation in both Java code or Spring XML to route services on the Normalized
Message Router
Camel –Route and Active MQ Deployment : The way to deploy the Camel route
Blueprint and Active MQ XML files both having same procedure.
1)Create a new file having the Below configration in the Deployment directory.
2)When the file deployed sucessfully it creates two folder in the home directory (as per
specified in Blueprint.XML file)
3)One is HOME/ input and Home/output dir
4)Now copy a file in the input Dir
5)It automatically copied to output Dir
For ActiveMQ it create a new dir under HOME is ActiveMQ and under this we have two
sub directory Input and Output
Let see in our new slide…
Camel Route:1) Define the route in a Blueprint XML file in deployment folder having
the below configrations.
2) Just create a new XML file in the deploy folder with the code below to start a route to
copy files from one directory to another.
Check in Logs by log:display we got the below massage for
the file sucessfully moved
karaf@root> osgi:stop 200
karaf@root> osgi:start 200
Apache ServiceMix instance comes with an embedded ActiveMQ JMS broker. This
makes it easy to communicate between Camel routes using persistent messages on the
same machine, but it will also enable you to distribute your routes over multiple
instances afterwards for clustering or load-balancing.
Save this file in ServiceMix' deploy folder and use osgi:list to check on the bundle status
You should now be able to put files in the activemq/input directory and see them being
moved to activemq/output.

Receiving the event messages: After deploying the first XML file, you're obviously not
seeing any events being logged yet. The event messages are sent to an ActiveMQ queue,
but there's nobody to receive the events yet. Let's change that now by creating a second
Blueprint XML file.
Checking Logs file: As soon as this second file has been deployed, you'll start seeing the
event messages in your log:display output
Thank You for Attending!

Contenu connexe

Tendances

Web server installation_configuration_apache
Web server installation_configuration_apacheWeb server installation_configuration_apache
Web server installation_configuration_apacheShaojie Yang
 
APACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXAPACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXwebhostingguy
 
How to monitor and manage Apache Tomcat
How to monitor and manage Apache TomcatHow to monitor and manage Apache Tomcat
How to monitor and manage Apache TomcatEgnyte
 
Install oracle grid infrastructure on linux 6.6
Install oracle grid infrastructure on linux 6.6Install oracle grid infrastructure on linux 6.6
Install oracle grid infrastructure on linux 6.6Osama Mustafa
 
Installing oracle timesten database On Linux
Installing oracle timesten database On Linux Installing oracle timesten database On Linux
Installing oracle timesten database On Linux Osama Mustafa
 
Apache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya KulkarniApache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya Kulkarniwebhostingguy
 
Oracle Enterprise manager 13c Installation
Oracle Enterprise manager 13c InstallationOracle Enterprise manager 13c Installation
Oracle Enterprise manager 13c InstallationOsama Mustafa
 
Upgrade EBS DB from 11g to 12c.
Upgrade EBS DB from 11g to 12c.Upgrade EBS DB from 11g to 12c.
Upgrade EBS DB from 11g to 12c.Osama Mustafa
 
Apache web server
Apache web serverApache web server
Apache web serverSabiha M
 
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALATOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALASaikiran Panjala
 
]project-open[ Package Manager
]project-open[ Package Manager]project-open[ Package Manager
]project-open[ Package ManagerKlaus Hofeditz
 
Securing the Apache web server
Securing the Apache web serverSecuring the Apache web server
Securing the Apache web serverwebhostingguy
 
Tomcat Clustering
Tomcat ClusteringTomcat Clustering
Tomcat Clusteringgouthamrv
 
Diva23
Diva23Diva23
Diva23diva23
 
Www Kitebird Com Articles Pydbapi Html Toc 1
Www Kitebird Com Articles Pydbapi Html Toc 1Www Kitebird Com Articles Pydbapi Html Toc 1
Www Kitebird Com Articles Pydbapi Html Toc 1AkramWaseem
 
25 Apache Performance Tips
25 Apache Performance Tips25 Apache Performance Tips
25 Apache Performance TipsMonitis_Inc
 

Tendances (20)

Web server installation_configuration_apache
Web server installation_configuration_apacheWeb server installation_configuration_apache
Web server installation_configuration_apache
 
APACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXAPACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUX
 
Apache Web Server Setup 2
Apache Web Server Setup 2Apache Web Server Setup 2
Apache Web Server Setup 2
 
How to monitor and manage Apache Tomcat
How to monitor and manage Apache TomcatHow to monitor and manage Apache Tomcat
How to monitor and manage Apache Tomcat
 
Install oracle grid infrastructure on linux 6.6
Install oracle grid infrastructure on linux 6.6Install oracle grid infrastructure on linux 6.6
Install oracle grid infrastructure on linux 6.6
 
Installing oracle timesten database On Linux
Installing oracle timesten database On Linux Installing oracle timesten database On Linux
Installing oracle timesten database On Linux
 
Apache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya KulkarniApache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya Kulkarni
 
Oracle Enterprise manager 13c Installation
Oracle Enterprise manager 13c InstallationOracle Enterprise manager 13c Installation
Oracle Enterprise manager 13c Installation
 
Upgrade EBS DB from 11g to 12c.
Upgrade EBS DB from 11g to 12c.Upgrade EBS DB from 11g to 12c.
Upgrade EBS DB from 11g to 12c.
 
Apache web server
Apache web serverApache web server
Apache web server
 
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALATOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
TOMCAT WEB SERVER TECHNICAL BY SAIKIRAN PANJALA
 
Introduction to-osgi
Introduction to-osgiIntroduction to-osgi
Introduction to-osgi
 
]project-open[ Package Manager
]project-open[ Package Manager]project-open[ Package Manager
]project-open[ Package Manager
 
Securing the Apache web server
Securing the Apache web serverSecuring the Apache web server
Securing the Apache web server
 
Tomcat Clustering
Tomcat ClusteringTomcat Clustering
Tomcat Clustering
 
Diva23
Diva23Diva23
Diva23
 
Www Kitebird Com Articles Pydbapi Html Toc 1
Www Kitebird Com Articles Pydbapi Html Toc 1Www Kitebird Com Articles Pydbapi Html Toc 1
Www Kitebird Com Articles Pydbapi Html Toc 1
 
Installing and configuring apache
Installing and configuring apacheInstalling and configuring apache
Installing and configuring apache
 
25 Apache Performance Tips
25 Apache Performance Tips25 Apache Performance Tips
25 Apache Performance Tips
 
Apache web service
Apache web serviceApache web service
Apache web service
 

En vedette

Implementing WebServices with Camel and CXF in ServiceMix
Implementing WebServices with Camel and CXF in ServiceMixImplementing WebServices with Camel and CXF in ServiceMix
Implementing WebServices with Camel and CXF in ServiceMixAdrian Trenaman
 
WebServices in ServiceMix with CXF
WebServices in ServiceMix with CXFWebServices in ServiceMix with CXF
WebServices in ServiceMix with CXFAdrian Trenaman
 
Service Oriented Integration With ServiceMix
Service Oriented Integration With ServiceMixService Oriented Integration With ServiceMix
Service Oriented Integration With ServiceMixBruce Snyder
 
ServiceMix 4 -- Integrating OSGi with JBI
ServiceMix 4 -- Integrating OSGi with JBIServiceMix 4 -- Integrating OSGi with JBI
ServiceMix 4 -- Integrating OSGi with JBIGert Vanthienen
 
Apache ActiveMQ and Apache ServiceMix
Apache ActiveMQ and Apache ServiceMixApache ActiveMQ and Apache ServiceMix
Apache ActiveMQ and Apache ServiceMixBruce Snyder
 
Service Oriented Integration with ServiceMix
Service Oriented Integration with ServiceMixService Oriented Integration with ServiceMix
Service Oriented Integration with ServiceMixghessler
 

En vedette (7)

Implementing WebServices with Camel and CXF in ServiceMix
Implementing WebServices with Camel and CXF in ServiceMixImplementing WebServices with Camel and CXF in ServiceMix
Implementing WebServices with Camel and CXF in ServiceMix
 
WebServices in ServiceMix with CXF
WebServices in ServiceMix with CXFWebServices in ServiceMix with CXF
WebServices in ServiceMix with CXF
 
Service Oriented Integration With ServiceMix
Service Oriented Integration With ServiceMixService Oriented Integration With ServiceMix
Service Oriented Integration With ServiceMix
 
ServiceMix 4 -- Integrating OSGi with JBI
ServiceMix 4 -- Integrating OSGi with JBIServiceMix 4 -- Integrating OSGi with JBI
ServiceMix 4 -- Integrating OSGi with JBI
 
Promotional mix
Promotional mixPromotional mix
Promotional mix
 
Apache ActiveMQ and Apache ServiceMix
Apache ActiveMQ and Apache ServiceMixApache ActiveMQ and Apache ServiceMix
Apache ActiveMQ and Apache ServiceMix
 
Service Oriented Integration with ServiceMix
Service Oriented Integration with ServiceMixService Oriented Integration with ServiceMix
Service Oriented Integration with ServiceMix
 

Similaire à Servicemix4.5.0

APACHE
APACHEAPACHE
APACHEARJUN
 
Jboss App Server
Jboss App ServerJboss App Server
Jboss App Serveracosdt
 
Content server installation guide
Content server installation guideContent server installation guide
Content server installation guideNaveed Bashir
 
Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...Banking at Ho Chi Minh city
 
OSGi for real in the enterprise: Apache Karaf - NLJUG J-FALL 2010
OSGi for real in the enterprise: Apache Karaf - NLJUG J-FALL 2010OSGi for real in the enterprise: Apache Karaf - NLJUG J-FALL 2010
OSGi for real in the enterprise: Apache Karaf - NLJUG J-FALL 2010Adrian Trenaman
 
Piattaforma Web Linux completa dai sorgenti
Piattaforma Web Linux completa dai sorgentiPiattaforma Web Linux completa dai sorgenti
Piattaforma Web Linux completa dai sorgentiGiulio Destri
 
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptxIBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptxGeorg Ember
 
Osgi Webinar
Osgi WebinarOsgi Webinar
Osgi WebinarWSO2
 
Talkbits service architecture and deployment
Talkbits service architecture and deploymentTalkbits service architecture and deployment
Talkbits service architecture and deploymentOpen-IT
 
Intro to Alfresco for Developers
Intro to Alfresco for DevelopersIntro to Alfresco for Developers
Intro to Alfresco for DevelopersJeff Potts
 
Jazoon2010 - Edgar Silva - Open source SOA on Steroids
Jazoon2010 - Edgar Silva - Open source SOA on SteroidsJazoon2010 - Edgar Silva - Open source SOA on Steroids
Jazoon2010 - Edgar Silva - Open source SOA on SteroidsEdgar Silva
 
TopStack Product Architecture 2013-Q3
TopStack Product Architecture 2013-Q3TopStack Product Architecture 2013-Q3
TopStack Product Architecture 2013-Q3TranscendComputing
 

Similaire à Servicemix4.5.0 (20)

Apache servicemix1
Apache servicemix1Apache servicemix1
Apache servicemix1
 
APACHE
APACHEAPACHE
APACHE
 
Jboss App Server
Jboss App ServerJboss App Server
Jboss App Server
 
Jboss Tutorial Basics
Jboss Tutorial BasicsJboss Tutorial Basics
Jboss Tutorial Basics
 
zLAMP
zLAMPzLAMP
zLAMP
 
Content server installation guide
Content server installation guideContent server installation guide
Content server installation guide
 
Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...Installing tivoli system automation for high availability of db2 udb bcu on a...
Installing tivoli system automation for high availability of db2 udb bcu on a...
 
OSGi for real in the enterprise: Apache Karaf - NLJUG J-FALL 2010
OSGi for real in the enterprise: Apache Karaf - NLJUG J-FALL 2010OSGi for real in the enterprise: Apache Karaf - NLJUG J-FALL 2010
OSGi for real in the enterprise: Apache Karaf - NLJUG J-FALL 2010
 
Fuse technology-2015
Fuse technology-2015Fuse technology-2015
Fuse technology-2015
 
Piattaforma Web Linux completa dai sorgenti
Piattaforma Web Linux completa dai sorgentiPiattaforma Web Linux completa dai sorgenti
Piattaforma Web Linux completa dai sorgenti
 
Riding with camel
Riding with camelRiding with camel
Riding with camel
 
iac.pptx
iac.pptxiac.pptx
iac.pptx
 
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptxIBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
IBM BP Session - Multiple CLoud Paks and Cloud Paks Foundational Services.pptx
 
Osgi
OsgiOsgi
Osgi
 
Osgi Webinar
Osgi WebinarOsgi Webinar
Osgi Webinar
 
Talkbits service architecture and deployment
Talkbits service architecture and deploymentTalkbits service architecture and deployment
Talkbits service architecture and deployment
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Intro to Alfresco for Developers
Intro to Alfresco for DevelopersIntro to Alfresco for Developers
Intro to Alfresco for Developers
 
Jazoon2010 - Edgar Silva - Open source SOA on Steroids
Jazoon2010 - Edgar Silva - Open source SOA on SteroidsJazoon2010 - Edgar Silva - Open source SOA on Steroids
Jazoon2010 - Edgar Silva - Open source SOA on Steroids
 
TopStack Product Architecture 2013-Q3
TopStack Product Architecture 2013-Q3TopStack Product Architecture 2013-Q3
TopStack Product Architecture 2013-Q3
 

Dernier

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 

Dernier (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 

Servicemix4.5.0

  • 1.
  • 2. Apache ServiceMix is an enterprise-class open-source distributed enterprise service bus (ESB) and service-oriented architecture (SOA) toolkit. It was built from the ground up on the semantics and APIs of the Java Business Integration (JBI) specification JSR 208 and released under the Apache License. ServiceMix 4 also fully supports OSGi. ServiceMix is lightweight and easily embeddable, has integrated Spring support and can be run at the edge of the network (inside a client or server), as a standalone ESB provider or as a service within another ESB. You can use ServiceMix in Java SE or a Java EE application server. ServiceMix uses ActiveMQ to provide remoting, clustering, reliability and distributed failover.
  • 3. "An Enterprise Service Bus (ESB) is a new architecture that, exploits Web services, Messaging middleware, intelligent routing, and transformation. ESBs act as a lightweight, ubiquitous integration backbone through which software services and application components flow.”
  • 4. An ESB acts as a shared messaging layer for connecting applications and other services throughout an enterprise computing infrastructure. It supplements its core asynchronous messaging backbone with intelligent transformation and routing to ensure messages are passed reliably. Services participate in the ESB using either web services messaging standards or JMS
  • 5.
  • 6. § ServiceMix employs a layered architecture based on OSGi • The core : A lightweight runtime named “Karaf”, which extends OSGi with powerful features for handling and managing OSGI bundles • The technology layer : A layer of component technologies that sits on top of the core to support your applications
  • 7. •Hot deployment support for OSGi bundles • Dynamic configuration of services through the OSGi “ConfigurationAdmin” service • Dynamic logging back-end provided by Log4J supports different APIs (SLF4J, Java Utils, JCL, Avalon, Tomcat, OSGi) • Application provisioning through file-drop, Maven repository and remote download (http://) • Administration via an extensible shell console • Secure remote access via ssh • Security framework based on JAAS
  • 8. oSpring Framework ServiceMix loads an OSGi bundle into its runtime, or generates an OSGi bundle on the fly, and then instantiates the Spring application context o JMS Message Broker ServiceMix deploys the Apache ActiveMQ broker (OSGi-ready) o JAX-WS/JAX-RS Web Services support ServiceMix deploys the Apache CXF runtime (OSGi-ready) o Enterprise Integration Patterns (EIP) support ServiceMix deploys the Apache Camel runtime (OSGi-ready) o Java Business Integration (JBI) support ServiceMix provides a JBI 1.0 container, to support legacy code implemented as service units / service assemblies and deployed using ServiceMix 3.x oCan be extended to support technologies such as SCA or EJB3
  • 9. oWhen you deploy a ServiceMix solution, you typically deploy the core (Karaf) plus one or more technology Components oExamples: • To support EIPs : Karaf runtime + Camel feature • To support JAX-WS/JAX-RS solutions : Karaf runtime + CXF feature • To support JMS solutions : Karaf runtime + ActiveMQ feature • To support JBI-based solutions : Karaf runtime + JBI feature
  • 10. JBI defines an architecture that allows the construction of integration systems from plug-in components, that interoperate through the method of mediated message exchange.
  • 11. 2 kinds of components ● Service Engine (SE) Allow implementing business logic or services on the ESB e.g. servicemix-drools or servicemix-bean ● Binding Components Provide connectivity to external services (transport, normalization, ...) e.g. servicemix-ftp or servicemix-http
  • 12.
  • 13. Apache ServiceMix – Integration container Apache ServiceMix – Integration container Apache Camel – Integration Routes Apache ActiveMQ - Messaging Apache Karaf – OSGI Management
  • 14. System requirements Java Developer Kit (JDK) 1.6.x (Java 6), for both deployment and compiling. (Note: Java 7 is currently not supported) About 100 MB of free disk space Downloading Apache ServiceMix Apache ServiceMix 4.4.2 is available under the Apache License v2 and can be downloaded from http://servicemix.apache.org/downloads.html. Depending on your operation system, you should download either the tar.gz or the zip file: • tar.gz for Linux/Unix/MacOS X • zip for Windows
  • 15. On Linux/Unix/MacOS X On a command shell, navigate to the directory where you extracted ServiceMix and the bin/servicemix shell script Example: if ServiceMix is installed in the ~/Applications/apache-servicemix-4.4.2 directory. $ cd ~/Applications/apache-servicemix-4.4.2 $ ./bin/servicemix $ cd ~/Applications/apache-servicemix-4.4.2 $ ./bin/servicemix
  • 16. Working with bundles When ServiceMix is first started, a whole set of bundles providing the core features for the product are being installed. Let's use the command console to find out more about them... The osgi:list command can be used to get a list of all bundles currently installed. Enter this karaf@root> osgi:list For every bundle, you see: • the bundle id • the bundle state • if the bundle contains a Blueprint or Spring XML file, the next 2 columns will show you if the beans defined there were created successfully • the bundle start level • the bundle name and version
  • 17. KARAF – It is a command line tool used to install/uninstall parts of a SMX application and also to troubleshoot problems
  • 18. Grep command in karaf karaf@root> osgi:list | grep camel
  • 19. Working with logging To look at the message in the log file karaf@root> log:display If you're only interested in the latest exception in the log file karaf@root> log:display-exception You can also change the log level at runtime by using the log:set command. You can try these commands on your instance now by first setting the log level to DEBUG and then using grep to make sure that you can actually see the extra logging. karaf@root> log:set DEBUG karaf@root> log:display | grep DEBUG
  • 20. Checking Logs file karaf@root>log:display-exception it display the current exception
  • 21. karaf@root>log:set DEBUG to set the logs in DEBUG Mode karaf@root>log:display karaf@root>log:set INFO to set the logs in INFO Mode karaf@root>log:display
  • 22. The list of features is available with the features:list command, we are taking some of few regular basis command.This command shows the status weather it is installed or not, and other tab shows version and Name. and grep to find the things in the list that you're interested in. karaf@root> features:list karaf@root> features:list | grep camel
  • 23. Web console:To get the web console installed in ServiceMix, install the feature from your console karaf@root> features:install webconsole karaf@root> features:list | grep webconsole your browser to http://localhost:8181/system/console and login with user smx and password smx to access the web console
  • 24. Servicemix-camel : The servicemix-camel component provides support for using Apache Camel to provide a full set of Enterprise Integration Patterns and flexible routing and transformation in both Java code or Spring XML to route services on the Normalized Message Router Camel –Route and Active MQ Deployment : The way to deploy the Camel route Blueprint and Active MQ XML files both having same procedure. 1)Create a new file having the Below configration in the Deployment directory. 2)When the file deployed sucessfully it creates two folder in the home directory (as per specified in Blueprint.XML file) 3)One is HOME/ input and Home/output dir 4)Now copy a file in the input Dir 5)It automatically copied to output Dir For ActiveMQ it create a new dir under HOME is ActiveMQ and under this we have two sub directory Input and Output Let see in our new slide…
  • 25.
  • 26. Camel Route:1) Define the route in a Blueprint XML file in deployment folder having the below configrations. 2) Just create a new XML file in the deploy folder with the code below to start a route to copy files from one directory to another.
  • 27. Check in Logs by log:display we got the below massage for the file sucessfully moved
  • 29. Apache ServiceMix instance comes with an embedded ActiveMQ JMS broker. This makes it easy to communicate between Camel routes using persistent messages on the same machine, but it will also enable you to distribute your routes over multiple instances afterwards for clustering or load-balancing.
  • 30. Save this file in ServiceMix' deploy folder and use osgi:list to check on the bundle status You should now be able to put files in the activemq/input directory and see them being moved to activemq/output. Receiving the event messages: After deploying the first XML file, you're obviously not seeing any events being logged yet. The event messages are sent to an ActiveMQ queue, but there's nobody to receive the events yet. Let's change that now by creating a second Blueprint XML file.
  • 31. Checking Logs file: As soon as this second file has been deployed, you'll start seeing the event messages in your log:display output
  • 32. Thank You for Attending!