Hi, 

I am using apache cxf 2.4.3 with servicemix 4.4.1. I'm trying to build a
rest service using jax-rs and deploy it as an osgi bundle. I'm concerned
about the maximum threads that I can have, is there any default value or it
depends on the memory heap? I have been searching cxf documents but couldn't
find an answer, thanks ahead! 

Here is my beans.xml: 
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:context="http://www.springframework.org/schema/context";
  xmlns:jdbc="http://www.springframework.org/schema/jdbc";
xmlns:util="http://www.springframework.org/schema/util";
  xmlns:jaxrs="http://cxf.apache.org/jaxrs";
xmlns:cxf="http://cxf.apache.org/core";
  xmlns:osgix="http://www.springframework.org/schema/osgi-compendium";
  xmlns:ctx="http://www.springframework.org/schema/context";


  xsi:schemaLocation="
      http://www.springframework.org/schema/jdbc
http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd
    http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
    http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd
        http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
        http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
               http://www.springframework.org/schema/osgi-compendium 
              
http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd";>

  <import resource="classpath:META-INF/cxf/cxf.xml" />
  <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

  <context:property-placeholder
    location="classpath*:META-INF/spring/*.properties" />
  <context:annotation-config />
  <context:component-scan base-package="com.rest.test" />


  <bean name="create" class="com.rest.test.service.MktCreateUrl">
  </bean>
  <bean name="retrieve" class="com.rest.test.service.MktRetrieveUrl">
  </bean>

  <jaxrs:server id="rest-web-services" address="http://0.0.0.0:8282";>
    <jaxrs:serviceBeans>
      <ref bean="create" />
      <ref bean="retrieve" />
    </jaxrs:serviceBeans>
  </jaxrs:server>
</beans>



--
View this message in context: 
http://cxf.547215.n5.nabble.com/default-max-threads-for-jax-rs-in-osgi-bundle-tp5732246.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to