Download presentation
Presentation is loading. Please wait.
Published bySamson Freeman Modified over 7 years ago
1
WebSockets and Equinox OSGi in a Servlet Container
Nedelcho Delchev [SAP]
2
Who am I? I am Development Architect in HANA Cloud Platform Core team in the area of extensions for large enterprises in the cloud. Project lead of Eclipse Dirigible – a Cloud Development Platform project that provides full-fledged capabilities for developing, running and operating cloud applications –
3
ServletBridge Architecture
Server-Side Equinox: Equinox in a Servlet Container: What is OSGi in Servlet Container series by Angelo Zerr:
4
ServletBridge Component
Web Container Servlet Bridge OSGi Servlet OSGi Servlet
5
Websockets
6
WebSocket Bridge in WebApp
7
WebSocket Servlet in OSGi
8
Registering OSGi WS Servlet in the BundleActivator
9
Websocket in Web Container
ServletBridge [Registered OSGi WS Servlets] OSGi WS Servlet Websocket Servlet 2 1 3 1. Registering 2. Lookup 3. Communication
10
Classloaders visibility (launch.ini)
osgi.parentClassloader=fwk osgi.contextClassLoaderParent=fwk org.osgi.framework.system.packages.extra=javax.websocket,javax.websocket.server,javax.mail,javax.mail.internet,osgi.websockets.bridge
11
Authentication and Authorization
Logged-in User Is User in Role?
12
“Hello World” via Websocket channel
Clone – Build & Deploy Access & Login - Create WS Client e.g. in Chrome – > var logSocket = new WebSocket("ws://localhost:8080/log"); Inspect Frames in Network/WS Access from a second browser - Send a message from WS client and receive the echo - logSocket.send("Hello from Client!");
13
Real-world examples By Eclipse Dirigible
14
Log Console
15
Terminal
16
Debug
17
Scripting Services
18
Recap You learnt that you can utilize WebSockets in a OSGi environment
You learnt how to do it via the ‘bridge’ concept You learnt that it is not just pure theoretical thing, but it is already used in the real world projects You got it re-confirmed OSGi is cool You learnt about existence of an OSGi based Cloud Development Platform project called Eclipse Dirigible:
19
Thank You!
20
References
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.