[JBossCache] - Re: who can help me? something about treecache.
by neddy
OK, so sorry please see this treecache.xml:
<?xml version="1.0" encoding="UTF-8" ?>
jboss:service=Naming
jboss:service=TransactionManager
JBoss-Cache-Cluster
<UDP mcast_addr="228.1.2.3" mcast_port="48866"
ip_ttl="64" ip_mcast="true"
mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
loopback="false"/>
<PING timeout="2000" num_initial_members="3"
up_thread="false" down_thread="false"/>
<MERGE2 min_interval="10000" max_interval="20000"/>
<FD_SOCK/>
<VERIFY_SUSPECT timeout="1500"
up_thread="false" down_thread="false"/>
<pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
max_xmit_size="8192" up_thread="false" down_thread="false"/>
<UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
down_thread="false"/>
<pbcast.STABLE desired_avg_gossip="20000"
up_thread="false" down_thread="false"/>
<FRAG frag_size="8192"
down_thread="false" up_thread="false"/>
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
shun="true" print_local_addr="true"/>
<pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
<!--
Valid modes are LOCAL
REPL_ASYNC
REPL_SYNC
INVALIDATION_ASYNC
INVALIDATION_SYNC
-->
LOCAL
<!--
Node locking scheme :
PESSIMISTIC (default)
OPTIMISTIC
-->
PESSIMISTIC
REPEATABLE_READ
org.jboss.cache.DummyTransactionManagerLookup
<!-- Whether each interceptor should have an mbean
registered to capture and display its statistics. -->
true
<!-- Buddy Replication config -->
<!-- Enables buddy replication. This is the ONLY-->
true
<!-- These are the default values anyway -->
org.jboss.cache.buddyreplication.NextMemberBuddyLocator
<!-- numBuddies is the number of backup nodes each each node will *try* to select a buddy on a different physical host. If it will fall back to colocated nodes. -->
numBuddies = 1
ignoreColocatedBuddies = true
<!--
A way to specify a preferred replication group. the same pool name (falling back to other buddies if not available).
This allows backup buddies are picked, so for example, nodes may be hinted topick buddies or power supply for added fault tolerance.
-->
myBuddyPoolReplicationGroup
<!-- Communication timeout for inter-buddy group from groups, defaults to 1000. -->
2000
<!-- Whether data is removed from old owners when-->
true
<!-- Whether backup nodes can respond to data gravitation defaults to true. -->
true
<!-- Whether all cache misses result in a data gravitation enable data gravitation on a per-invocation-->
false
<!-- The max amount of time (in milliseconds) we wait until the
initial state (ie. the contents of the cache) are retrieved from
existing members in a clustered environment
-->
5000
<!-- Number of milliseconds to wait until all responses for a
synchronous call have been received.
-->
10000
<!-- Max number of milliseconds to wait for a lock acquisition -->
15000
<!--
5
5000
1000
5000
10000
10000
8
10
-->
org.jboss.cache.eviction.LRUPolicy
false
/
true
org.jboss.cache.loader.FileCacheLoader
location=c:\\temp\\myFileStore
true
false
false
false
<!--
org.jboss.cache.loader.JDBCCacheLoader
cache.jdbc.table.name=jbosscache
cache.jdbc.table.create=true
cache.jdbc.table.drop=true
cache.jdbc.table.primarykey=jbosscache_pk
cache.jdbc.fqn.column=fqn
cache.jdbc.fqn.type=varchar(255)
cache.jdbc.node.column=node
cache.jdbc.node.type=longblob
cache.jdbc.parent.column=parent
cache.jdbc.driver=com.mysql.jdbc.Driver
cache.jdbc.url=jdbc:mysql://localhost:3306/jbossdb
cache.jdbc.user=root
cache.jdbc.password=
true
false
false
-->
now I put it in the folder which called "resources"
so when I start the service I use
tree.setClusterProperties("resources/treecache.xml");
but how I to know the xml file already be read;can you tell me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003604#4003604
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003604
19 years, 3 months
[JBossCache] - Re: who can help me? something about treecache.
by neddy
OK, so please see my treecache.xml:
<?xml version="1.0" encoding="UTF-8" ?>
jboss:service=Naming
jboss:service=TransactionManager
JBoss-Cache-Cluster
<UDP mcast_addr="228.1.2.3" mcast_port="48866"
ip_ttl="64" ip_mcast="true"
mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
loopback="false"/>
<PING timeout="2000" num_initial_members="3"
up_thread="false" down_thread="false"/>
<MERGE2 min_interval="10000" max_interval="20000"/>
<FD_SOCK/>
<VERIFY_SUSPECT timeout="1500"
up_thread="false" down_thread="false"/>
<pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
max_xmit_size="8192" up_thread="false" down_thread="false"/>
<UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
down_thread="false"/>
<pbcast.STABLE desired_avg_gossip="20000"
up_thread="false" down_thread="false"/>
<FRAG frag_size="8192"
down_thread="false" up_thread="false"/>
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
shun="true" print_local_addr="true"/>
<pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
<!--
Valid modes are LOCAL
REPL_ASYNC
REPL_SYNC
INVALIDATION_ASYNC
INVALIDATION_SYNC
-->
LOCAL
<!--
Node locking scheme :
PESSIMISTIC (default)
OPTIMISTIC
-->
PESSIMISTIC
REPEATABLE_READ
org.jboss.cache.DummyTransactionManagerLookup
<!-- Whether each interceptor should have an mbean
registered to capture and display its statistics. -->
true
<!-- Buddy Replication config -->
<!-- Enables buddy replication. This is the ONLY-->
true
<!-- These are the default values anyway -->
org.jboss.cache.buddyreplication.NextMemberBuddyLocator
<!-- numBuddies is the number of backup nodes each each node will *try* to select a buddy on a different physical host. If it will fall back to colocated nodes. -->
numBuddies = 1
ignoreColocatedBuddies = true
<!--
A way to specify a preferred replication group. the same pool name (falling back to other buddies if not available).
This allows backup buddies are picked, so for example, nodes may be hinted topick buddies or power supply for added fault tolerance.
-->
myBuddyPoolReplicationGroup
<!-- Communication timeout for inter-buddy group from groups, defaults to 1000. -->
2000
<!-- Whether data is removed from old owners when-->
true
<!-- Whether backup nodes can respond to data gravitation defaults to true. -->
true
<!-- Whether all cache misses result in a data gravitation enable data gravitation on a per-invocation-->
false
<!-- The max amount of time (in milliseconds) we wait until the
initial state (ie. the contents of the cache) are retrieved from
existing members in a clustered environment
-->
5000
<!-- Number of milliseconds to wait until all responses for a
synchronous call have been received.
-->
10000
<!-- Max number of milliseconds to wait for a lock acquisition -->
15000
<!--
5
5000
1000
5000
10000
10000
8
10
-->
org.jboss.cache.eviction.LRUPolicy
false
/
true
org.jboss.cache.loader.FileCacheLoader
location=c:\\temp\\myFileStore
true
false
false
false
<!--
org.jboss.cache.loader.JDBCCacheLoader
cache.jdbc.table.name=jbosscache
cache.jdbc.table.create=true
cache.jdbc.table.drop=true
cache.jdbc.table.primarykey=jbosscache_pk
cache.jdbc.fqn.column=fqn
cache.jdbc.fqn.type=varchar(255)
cache.jdbc.node.column=node
cache.jdbc.node.type=longblob
cache.jdbc.parent.column=parent
cache.jdbc.driver=com.mysql.jdbc.Driver
cache.jdbc.url=jdbc:mysql://localhost:3306/jbossdb
cache.jdbc.user=root
cache.jdbc.password=
true
false
false
-->
now I put it in the folder which called "resources"
so when I start the service I use
tree.setClusterProperties("resources/treecache.xml");
but how I to know the xml file already be read;can you tell me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003602#4003602
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003602
19 years, 3 months
[JBossWS] - Type class generation in JBoss WS 1.0.4
by tejasjani
I have a fairly complex wsdl and xsd from which I am trying to generate the webservice artifacts.
I am trying to use wstools (via Soapui eclipse plug-in) to generate the JBossWS artifacts. I am seeing some strange behaviour which I had some questions about:
(1) If I generate type classes using JAXB xjc compiler, from the XSD file, can I use these classes to map to xml elements in the schema ? If yes, how do I do that ? OR am I forced to use the type classes generated by wstools ?
(2) Looks lke wstools also generates type classes as part of the artifact generation process. Am I forced to used these classes in the service implementation ?
(3) If I were to try and use the JAXB generated classes instead of wstools generated classes, is it possible in 1.0.4 ?
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003585#4003585
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003585
19 years, 3 months