I need to develop an OSGi application with clear back-end front-end separation hopefully done using JAX-WS. The google results points to Apache-CXF which supports JAX-WS. The back-end and the front-end of the application will be run in two JVMs with separate Equinox OSGi containers. Is there a standard way to integrate Apache-CXF with Equinox? Will this need a servlet container like Tomcat or Jetty embedded in Equinox as well? Or is there a more convenient proven to work method to do this?
how to expose and consume webservices from an Equinox OSGi application?
1.5k Views Asked by Jeewantha At
2
There are 2 best solutions below
Related Questions in WEB-SERVICES
- Apache CXF is unable to handle duplicate localnames
- Why do we call all http services 'Web Api/Web Service'?
- Postman Webservice PHP Curl Code POST request giving forbidden error when run in local
- Migrate ASMX web method to WCF which accepts string array
- PKIX failed when using custom SSLcontext with custom keyStore and trustStore
- Problems in Validations via Web Service in a Vue 3 Application
- Maven plugin 100% compatible Java21 to generate stub classes from WSDL file and generate *.wsdl from java classes? A solution
- Kubernetes Ingress Port to Port route
- How to handle a multi thread tests calling a single thread web service in .Net Framework 4.6?
- oracle.dataaccess.dll keep showing up as reference after build of C# web service using Oracle MDAC
- Your thoughts on the suggested architecture for addressing the challenges and maintenance of third-party API implementation
- Issue with BizTalk register WCF-WSHttp adapter while calling web service
- Does PHP SoapClient creates XML to be sent to webservice end point, based on WSDL file, while using CURL the XML should be manually created?
- Invoice API in Authorize.net like Square
- Publish JAXWS Endpoint in the same port than Spring boot
Related Questions in OSGI
- Singleton to OSGi Declarative Services: Seeking Guidance
- How to use ExecutorService in Kubernetes PODs
- Liferay DXP Service builder @BeanReference field is null
- cant start bundle on apache felix
- Java OSGi implementation for the project
- How to update the resource property using the valuemap in the Sling servlet?
- Drools 8 OSGi support
- OSGi: missing requirement osgi.wiring.package with local bundle
- How to find correct AEM constant class names?
- KieServices are not injecting with guice
- Unknown OSGi execution environment: 'JavaSE-21'
- Java on AWS/EKS fails with resolving correct version of org.osgi.framework.launch.FrameworkFactory
- osgi.extender; (osgi.extender=osgi.serviceloader.registrar) in Jenkins
- How can i get the service ref after i changed org.apache.felix.scr.annotations to org.osgi.service.component.annotations
- Install feature webconsole in karaf 4.3.10 error needs osgi.http (not sure which jar package)
Related Questions in CXF
- Apache CXF is unable to handle duplicate localnames
- Avoid soap fault response (org.apache.cxf)
- Upgrade to Camel 4 causing CXF soap call to fail with "Received RST_STREAM: Stream cancelled"
- Soap Headers using cxf-codegen-plugin
- Apache CXF - cannot add binary signature token to SOAP message
- Getting build error when upgrading org.apache.cxf to version 4 from version 3
- Caused by: java.lang.NoSuchFieldError: REFLECTION when upgrading cxf 3.5.5 and spring 5.3.27
- Is it possible to add a custom JAXWS generator into CXF codegen tool?
- No value for key "javax.xml.ws.wsdl.service" on org.apache.cxf.binding.soap.SoapMessage with camel version 3.17.0 and cxf 3.5.5
- CXF web service deployed with docker compose won't work
- Is there a practical way to find out which type causes "java.lang.InternalError: unresolved reference" with apache-cxf wsdl2java?
- Microservices Java Web Application RunTime Issue after upgrading to Java17
- WELD-001524: Unable to load proxy class for bean org.apache.cxf.cdi.ContextProducerBean
- Importing XSD into WSDL error in target namespace
- How to get response body if server send status 400/500
Related Questions in EQUINOX
- OSGI equinox Servlet.init() for servlet .equinoxbridgeservlet. threw exception for Java 17
- Does equinox (jax) do no batch dim broadcasting and expects you to use vmap instead?
- How can I incorporate Spring Boot into an Eclipse Plug-in project?
- Jax: generating random numbers under **JIT**
- java.lang.LinkageError: loader constraint violation: loader org.eclipse.osgi.internal.loader.EquinoxClassLoader
- Failing to implement logistic regression using 'equinox' and 'optax' library
- Using old eclipse version (2020-06), installing plugins fails
- In Karaf OSGI Bundle is in Resolved state but Diag shows nothing
- OSGi bundle doesn't start when using declarative service annotations
- equinox with slf4j can't find logback provider
- Does p2 have the ability to verify file's checksum ?
- Unresolved requirement: Require-Bundle: org.eclipse.ui.intro; bundle-version="3.4.0"
- How to add Maven Bundle to Eclipse OSGi run configuration
- JFace TreeViewer Sorting - Updated
- Seperate persistence unit and application into different OSGI bundles in an Equinox environment
Related Questions in DOSGI
- How can I use the CXF HttpConduitFeature for DOSGi?
- OSGi Remote Service Admin and security context
- How to create a simple rest service with cxf and dosgi?
- Remote OSGI using ECF: Bundle Requirements For BND
- DOSGI Custom Provider Registration
- Distributed OSGi example with Apache Karaf Cellar - Client bundle can't activate because can't find distributed service
- Bean validation with hibernate in karaf, cxf and dosgi
- Apache CXF DSOGI on Karaf + @Context UriInfo
- Apache CXF DSOGI with JSON on Karaf
- Cellar Hazelcast serialization exception when using DOSGi service
- No SchemaFactory that implements the schema language specified by: http://www.w3.org/2001/XMLSchema could be loaded
- bundles get installed on both Karaf instances
- dosgi: No resource methods have been found for resource class - javax.ws.rs annotation ignored?
- Distributed OSGi - Consuming the service
- Distributed OSGI in Karaf -Consumer service not starting
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The simplest and best proven way to use CXF in OSGi is with Apache Karaf. It is an OSGi server based on Equinox or Felix and is optimized for integration with several Apache frameworks like CXF, Camel, ActiveMQ.
If you want to use plain Equinox then the DOSGi distro mentioned above is a good starting point. It contains all bundles needed to run Distributed OSGi based on CXF. This means it is also suitable for most CXF JA-XWS use cases.
In Karaf on the other hand you get a much better integration with all the CXF modules. It is also much better tested as it is used for Servicemix and several commercial solutions e.g. from Redhat and Talend where I work.
For your special case Distributed OSGi itself may also be a very good option. It means that you do not directly provide/consume CXF services. Instead you publish and consume OSGi services and CXF takes care of the remoting.
I have written a tutorial series that shows how to use CXF with Apache karaf: