karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prithviraj <meetra...@gmail.com>
Subject Re: Problem in stopping Karaf sever on Unix machine
Date Wed, 04 Feb 2015 05:48:15 GMT
Hi JB,

Actually we are using blue print configuration for broker .
Please  find below file 


<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:broker="http://activemq.apache.org/schema/core"
	xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
  xmlns:enc="http://karaf.apache.org/xmlns/jasypt/v1.0.0"
	xsi:schemaLocation="http://activemq.apache.org/schema/core
             http://activemq.apache.org/schema/core/activemq-core.xsd
             ">
	
   <ext:property-placeholder>
    	<ext:location>file:etc/db.cfg</ext:location>
  </ext:property-placeholder>
  <ext:property-placeholder  placeholder-prefix="${[["
placeholder-suffix="]]}">
        <ext:location>file:etc/jasypt_enc_passwords.cfg</ext:location>
 </ext:property-placeholder>
 
  <enc:property-placeholder>
    <enc:encryptor
class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor">
      <property name="config">
        <bean
class="org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig">
          <property name="algorithm" value="PBEWithMD5AndDES" />
          <property name="password"
value="${[[REN_JASYPT_ENCRYPTION_PASSWORD_DB]]}" />
        </bean>
      </property>
    </enc:encryptor>
  </enc:property-placeholder>
  
	<bean id="oracle-ds2" class="oracle.jdbc.pool.OracleDataSource">
		<property name="URL" value="${db.url.app}" />
		<property name="user" value="${db.user.app}" />
		<property name="password" value="${db.password.app}" />
	</bean>
	<service interface="javax.sql.DataSource" ref="oracle-ds2">
		<service-properties>
			<entry key="osgi.jndi.service.name" value="jdbc/oracleds2" />
		</service-properties>
	</service>
	
	<broker:broker useJmx="true" persistent="true"	brokerName="localbroker"
schedulerSupport="false">

		
		<broker:persistenceAdapter>
			<broker:jdbcPersistenceAdapter
				dataSource="#oracle-ds2" />
		</broker:persistenceAdapter>
		
	        <broker:transportConnectors>
	            <broker:transportConnector uri="${activeMQ.url}" />
	        </broker:transportConnectors>

	<broker:systemUsage>
            <broker:systemUsage>
                <broker:memoryUsage>
      				<broker:memoryUsage limit="256 mb" />
    			</broker:memoryUsage>
    			<broker:storeUsage>
      				<broker:storeUsage limit="20 gb" />
    			</broker:storeUsage>
    			<broker:tempUsage>
      				<broker:tempUsage limit="10 gb" />
    			</broker:tempUsage>
            </broker:systemUsage>
        </broker:systemUsage>
		
		 
    <broker:destinationPolicy>
      <broker:policyMap>
        <broker:policyEntries>
          <broker:policyEntry queue=">" memoryLimit="5mb" />
          <broker:policyEntry topic=">" memoryLimit="5mb">
            
          </broker:policyEntry>
        </broker:policyEntries>
      </broker:policyMap>
    </broker:destinationPolicy>
	
	 
	  
	  
		
	</broker:broker>
</blueprint> 






--
View this message in context: http://karaf.922171.n3.nabble.com/Problem-in-stopping-Karaf-sever-on-Unix-machine-tp4038249p4038278.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Mime
View raw message