[JBoss-user] [JBossCache] - TreeCache/Hibernate/JBossAS optimistic locking problem

2006-07-10 Thread floefliep
I get the error below (at CMT commit time) when using the non-clustered combo 
TreeCache 1.4.0cr2 / Hibernate 3.2.0cr2 / JBoss 4.0.4GA. When I switch to 
pessimistic locking (replace OptimisticTreeCacheProvider with TreeCacheProvider 
and NodeLockingScheme OPTIMISTIC by PESSIMISTIC), it all works without faults.

While debugging through the JBoss code, it seems that realNode.getVersion() at 
line 124 in OptimisticValidatorInterceptor.simpleValidate() is null.

Any ideas? Tnx!


Caused by: java.lang.NullPointerException
at 
org.jboss.cache.interceptors.OptimisticValidatorInterceptor.simpleValidate(OptimisticValidatorInterceptor.java:124)
at 
org.jboss.cache.interceptors.OptimisticValidatorInterceptor.validateNodes(OptimisticValidatorInterceptor.java:101)
at 
org.jboss.cache.interceptors.OptimisticValidatorInterceptor.invoke(OptimisticValidatorInterceptor.java:66)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at 
org.jboss.cache.interceptors.OptimisticLockingInterceptor.invoke(OptimisticLockingInterceptor.java:95)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
at 
org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:796)
at 
org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1061)
... 73 more

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956781#3956781

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956781


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Transactions in JBossCache 1.4CR2

2006-07-10 Thread irabinovitch
Thanks in advance for any assitance.

Regards,
Ilan

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956698#3956698

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956698


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Transactions in JBossCache 1.4CR2

2006-07-10 Thread irabinovitch
Hello,

We have been testing our code with 1.4CR2.  We have found that if we put an 
object to the cahce with Transactions enabled the cache will thrown an 
exception (liste bellow). 

Glancing at the code it appears getCurrentTransaction is returning NULL when 
the current thread has no transactions.  Should it be doing this? Under 
JBossCache 1.3, it created a new transaction if one currently did not exist.

Ilan



java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: java.lang.IllegalStateException: PojoCache.registerTxHanlder().
Can't have null tx handle.
at
org.jboss.cache.aop.PojoCache.registerTxHandler(PojoCache.java:743)
at org.jboss.cache.aop.PojoCache._putObject(PojoCache.java:729)
at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:461)
... 13 more




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956697#3956697

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956697


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-10 Thread MarcReis
Hi Ben,
it shows up on both nodes, but I do have RoundRobin in use for the SFSB. It 
does not show up absoluteley simultaniously, one node starts shortly before the 
other.

I am not sure, but I thought I rather mention it, just in case it is related. 
(If not just ignore it). I still have a problem with Hibernate 3.2.0 CR3
(this was with 3.2.0CR2 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=84650 
 and about http://opensource.atlassian.com/projects/hibernate/browse/HHH-1816)


  | 09:06:03,640 WARN  [SessionFactoryObjectFactory] Not found: 
2c9096850c573a72010c5741866f0002 // First invokation of the SFSB ( 
client ends after this)
  | 09:06:03,640 WARN  [SessionFactoryObjectFactory] Not found: 
java:Hibernate/MyHibernateSessionFactory // Second invokation of the SFSB 
(with a new instance of the client)
  | 

I just want to make sure this is not due to Hibernate. The prior mentioned 
error shows up no matter if I compile with Hibernate CR2 or CR3.
For the cache I only used the 1.4.CR1 (I will try the CR2 today)

Sincerly
Marc

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956515#3956515

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956515


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Expected behavior of FQN?

2006-07-10 Thread jaikiran
Is this behavior of Fqn correct? If yes, shouldnt this be documented through 
the javadocs?  
 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956491#3956491

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956491


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-10 Thread jaikiran
Sorry, posted in the wrong topic



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956490#3956490

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956490


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-10 Thread jaikiran
Is this behavior of Fqn correct? If yes, shouldnt this be documented through 
the javadocs? 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956488#3956488

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956488


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: PojoCache - collection gets corrupted

2006-07-08 Thread [EMAIL PROTECTED]
I will need additional log to see what's the problem. Pulling the cable should 
have direct effect on the cluster group membership and the message replication 
timeout (possibly).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956404#3956404

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956404


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-08 Thread [EMAIL PROTECTED]
Now are the errors showed up in both nodes or just the originating node?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956403#3956403

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956403


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Global caching

2006-07-08 Thread jboss2005_01
Anyone? I can't be the onlyone wondering how to set this up... Or am I??

K.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956368#3956368

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956368

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Remoting On Existing POJO Channel

2006-07-07 Thread Shorrockin
Even though it appears like I'm talking to myself it appears that my previous 
method of doing things doesn't quite work, even after fixing the obvious bug so 
that it reads:

  | _serviceCache = new PojoCache( _channel ) {
  | public void start() throws Exception {
  | 
  | // START HACK: STOP JBOSSCACHE FROM BLOCKING FOREVER
  | this.disp = new RpcDispatcher( _channel, 
_serviceCache.getMessageListener(), _serviceCache, _serviceCache );
  | this.disp.setMarshaller( getMarshaller() );
  | // END HACK
  | 
  | super.start();
  | }
  | };

This does fix the problem in TreeCache and allows me to create my own 
RpcDispatcher that I can use for my own means but this RpcDispatcher still does 
not work, and produces a EOFException which causes the main thread to sit in a 
wait block (maybe because there's 2 RpcDispatchers, one for JBossCache and one 
for me?) I'd love some advise from the authors on how I should be dealing with 
this problem, but I'm not sure anybody is there.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956205#3956205

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956205

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Expected behavior of FQN?

2006-07-07 Thread jaikiran
Had a look at the test cases and the FqnTest.java does not have  a test case 
for this specific scenario. I added the following test case to the same:

/**
  | * @testDesc Tests the [EMAIL PROTECTED] Fqn#equals(Object)} method. Two 
Fqn will be created, one 
  | *   will use the  [EMAIL PROTECTED] Fqn#Fqn(Object)} and the 
other will use [EMAIL PROTECTED] Fqn#fromString(String)}.
  | *   These two objects will then be checked for equality
  | */
  |public void testEquals4() {
  |String fqnPath = "a/b/c";
  |Fqn fqnUsingFromStringMethod = Fqn.fromString(fqnPath);
  |Fqn fqnPassingStringToConstructor = new Fqn(fqnPath);
  |
  |assertTrue("Fqn created using fromString() is NOT equal to Fqn 
create using  Fqn(Object obj) constructor", 
fqnUsingFromStringMethod.equals(fqnPassingStringToConstructor));
  |
  |}

This test case shows that the equals() method is failing in this scenario.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956183#3956183

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956183

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-07 Thread MarcReis
Thanks, it worked (after multiple: 1. clean, 2.build 3.goto 1 again; eclipse 
and ant after some attempts finally did what they should and it worked).

Unfourtunately there still is an error that shows up:


  | ... //Server Start
  | 13:35:47,062 INFO  [STDOUT] I have been created by 
de.somewhere.test.ejbean.NatPersLstSFBea
  | ... // some verbose Hibernate output about creating factory and c3p0 pool 
stuff
  | 13:41:21,234 WARN  [CacheLoaderInterceptor] CacheLoader.get(Fqn) returned a 
null; assuming the node nodes not exist.
  | 13:41:21,234 WARN  [CacheLoaderInterceptor] The CacheLoader interface has 
changed since JBossCache 1.3.x
  | 13:41:21,234 WARN  [CacheLoaderInterceptor] Please see 
http://jira.jboss.com/jira/browse/JBCACHE-118
  | 13:41:21,234 WARN  [CacheLoaderInterceptor] CacheLoader.get() should return 
an empty Map if the node does exist but doesn't have any attributes.
  | 13:58:06,859 INFO  [STDOUT] I will be serial soon 
de.somewhere.test.ejbean.NatPersLstSFBean //done from @PrePassivate
  | 14:00:08,359 INFO  [STDOUT] I have been created by 
de.somewhere.test.ejbean.NatPersLstSFBean //done from @Init
  | 14:03:35,046 ERROR [STDERR] java.lang.RuntimeException: 
java.lang.RuntimeException: java.io.IOException
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.prePassivate(LifecycleInterceptorHandler.java:160)
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.stateful.StatefulContainer.invokePrePassivate(StatefulContainer.java:351)
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.stateful.StatefulBeanContext.prePassivate(StatefulBeanContext.java:178)
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.cache.tree.StatefulEvictionPolicy.passivate(StatefulEvictionPolicy.java:73)
  | 14:03:35,046 ERROR [STDERR] at 
org.jboss.ejb3.cache.tree.StatefulEvictionPolicy.evict(StatefulEvictionPolicy.java:63)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.BaseEvictionAlgorithm.evictCacheNode(BaseEvictionAlgorithm.java:210)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.evict(LRUAlgorithm.java:90)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.LRUAlgorithm.prune(LRUAlgorithm.java:121)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.BaseEvictionAlgorithm.process(BaseEvictionAlgorithm.java:98)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.cache.eviction.EvictionTimerTask.run(EvictionTimerTask.java:80)
  | 14:03:35,062 ERROR [STDERR] at 
java.util.TimerThread.mainLoop(Timer.java:512)
  | 14:03:35,062 ERROR [STDERR] at 
java.util.TimerThread.run(Timer.java:462)
  | 14:03:35,062 ERROR [STDERR] Caused by: java.lang.RuntimeException: 
java.io.IOException
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:365)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.ejb3.stateful.StatefulBeanContext.getInterceptorInstances(StatefulBeanContext.java:333)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.getLifecycleInvocationContext(LifecycleInvocationContextImpl.java:65)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.prePassivate(LifecycleInterceptorHandler.java:151)
  | 14:03:35,062 ERROR [STDERR] ... 11 more
  | 14:03:35,062 ERROR [STDERR] Caused by: java.io.IOException
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:107)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:269)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639)
  | 14:03:35,062 ERROR [STDERR] at 
org.jboss.serial.persister.ProxyPersister.readData(ProxyPersister.java:66)
  | 14:03:35,078 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411)
  | 14:03:35,078 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81)
  | 14:03:35,078 ERROR [STDERR] at 
org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(

[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-07 Thread jaikiran
Please, ignore this entire topic. Had got confused with the concept of nodes 
and keys. Eviction is working fine.

Sorry for the trouble

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956164#3956164

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956164

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-07 Thread jaikiran
Tried a few more things and looks like eviction is working for attributes like 
timeToLiveSeconds and maxAgeSeconds(if at all they are specified) but NOT 
WORKING for maxNodes.

P.S.: While debugging LRUAlgorithm.java, observed that the following statement :

ne = (NodeEntry)recycleQueue_.poll(0); in the prune() method *always* returns 
null and as a result the subsequent check for maxNodes in this method is 
skipped. I am not sure whether this information is going to be of any use.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956159#3956159

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956159

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re:

2006-07-07 Thread matabo
Sorry, you were right.

The code inside the constructor is executed twice. My mistake. 

regards
matabo

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956118#3956118

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956118

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Expected behavior of FQN?

2006-07-07 Thread jaikiran
Hi,
 Looks like the FQN created by passing a string and FQN created using 
Fqn.fromString() are NOT *equal*. Here's a sample program:

package org.myapp;
  | 
  | import org.jboss.cache.Fqn;
  | import org.jboss.cache.PropertyConfigurator;
  | import org.jboss.cache.TreeCache;
  | 
  | /**
  |  * @author Jaikiran Pai
  |  *
  |  */
  | public class TestFQN {
  | 
  | public static void main(String[] args) {
  | try {
  | TreeCache treeCache = new TreeCache();
  | PropertyConfigurator config = new 
PropertyConfigurator(); // configure tree cache. Needs to be in the classpath 
  | config.configure(treeCache, 
"D:\\SchedulerInJBoss\\local-eviction-service.xml");
  | treeCache.start();
  | 
  | Fqn fqn = new Fqn("a/b/c");
  | Fqn fqnFromString = Fqn.fromString("a/b/c");
  | 
  | System.out.println("fqn equals fqnFromString? : " + 
fqn.equals(fqnFromString)); 
  | 
  | /*treeCache.put("a/b/c",new Integer("1"),"1");
  | System.out.println("Exists fqn? (created WITHOUT using 
fromString) : " + treeCache.exists(new Fqn("a/b/c")));
  | System.out.println("Exists fqn? (created using fromString) : " 
+ treeCache.exists(Fqn.fromString("a/b/c")));
  | */
  |
  | 
  | 
  | } catch (Exception e) {
  | e.printStackTrace();
  | }
  | 
  | 
  | }
  | }

This programs returns false when equals method is invoked on the two Fqns.
Is this the expected behavior of Fqn?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956115#3956115

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956115

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re:

2006-07-07 Thread [EMAIL PROTECTED]
There are 2 JChannel.connect() calls, can you set a breakpoint in 
JChannel.connect() (get the JGroups src) ? Then you could look at the call 
stack and see *where* the connect() methods are called.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956111#3956111

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956111

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Eviction not working in JBossCache-1.2.4SP2

2006-07-07 Thread jaikiran
I even introduced a time delay in putting the objects as follows, just to try 
out whether eviction works. But still it does not work.

The following is just an extract from the above code, with *only* a 
Thread.sleep(500) introduced.

for(int i=0;i<50;i++)
  | {
  |  
  | Thread.sleep(500);
  | System.out.println("Put#"+ (i+1));
  | treeCache.put(fqn, new Integer(i), "Put#" + i);
  | System.out.println("Exists fqn: " + 
treeCache.exists(fqn));
  | System.out.println("Exists object: " + 
treeCache.exists(fqn,new Integer(i)));   
  | }





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956108#3956108

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956108

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Eviction not working in JBossCache-1.2.4SP2

2006-07-07 Thread jaikiran
Hi, 
 I am trying out a simple standalone app where i, put in 50 elements in the 
cache at a given fqn. I have enabled EvictionPolicy and set the maxNodes as 5. 
However none of the nodes are getting evicted. Here's the code and the config 
file:

package org.myapp;
  | 
  | import org.jboss.cache.Fqn;
  | import org.jboss.cache.PropertyConfigurator;
  | import org.jboss.cache.TreeCache;
  | import org.w3c.dom.Element;
  | 
  | 
  | 
  | public class TestEviction {
  | public static void main(String arg[])
  | {
  | try {
  | TreeCache treeCache = new TreeCache();
  | 
  | PropertyConfigurator config = new 
PropertyConfigurator(); // configure tree cache. Needs to be in the classpath 
  | config.configure(treeCache, 
"D:\\local-eviction-service.xml");
  | treeCache.start();
  | 
  | System.out.println("Eviction policy class name: " 
+treeCache.getEvictionPolicyClass());
  | System.out.println("Revisit time: " + 
treeCache.getEvictionThreadWakeupIntervalSeconds());
  | 
  | Fqn fqn = new Fqn("a/b/c");
  | for(int i=0;i<50;i++)
  | {
  | 
  | System.out.println("Put#"+ (i+1));
  | treeCache.put(fqn, new Integer(i), "Put#" + i);
  | System.out.println("Exists fqn: " + 
treeCache.exists(fqn));
  | System.out.println("Exists object: " + 
treeCache.exists(fqn,new Integer(i)));   
  | }
  | 
  | /*
  |  * Check the contents of FQN
  |  */
  |  System.out.println("Contents of FQN: " + 
treeCache._print(fqn));
  | 
  | /*
  |  * Just verify whether eviction policy config was 
picked up
  |  */
  | Element ele = treeCache.getEvictionPolicyConfig();
  | System.out.println(ele.toString());
  | 
  | System.out.println("Before EXPLICITLY Calling evict of 
FQN, Obj 1: " + treeCache.get(fqn,new Integer("1")));
  | System.out.println("Before EXPLICITLY Calling evict of 
FQN, Obj 48: " + treeCache.get(fqn,new Integer("48")));
  | 
  | /*
  |  * manually evict
  |  */ 
  | treeCache.evict(fqn);
  | 
  | System.out.println("After EXPLICITLY Calling evict of 
FQN, Obj 1: " + treeCache.get(fqn,new Integer("1")));
  | System.out.println("After EXPLICITLY Calling evict of 
FQN, Obj 48: " + treeCache.get(fqn,new Integer("48")));
  | 
  | } catch (Exception e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | }
  | 
  | }
  | }


Config file:



  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | jboss:service=Naming
  | jboss:service=TransactionManager
  | 
  | 
  | 
  | 
  | 
  | 
  | REPEATABLE_READ
  | 
  | 
  | LOCAL
  | 
  | 
  | TreeCache-Cluster
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 5000
  | 
  | 
  | 2
  | 
  | 
  | 15000
  | 
  | 
  | 
  | org.jboss.cache.eviction.LRUPolicy 
  | 
  | 
  |
  |   2 
  |   
  |   
  |   5
  |   0
  |   
  |   
  |   5
  |   0
  |  
  |
  |
  |   
  | 
  | 
  | 

Any idea why this is not working?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956107#3956107

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956107

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
__

[JBoss-user] [JBossCache] - Re:

2006-07-07 Thread matabo
Maybe you're right, but then I ask you: what you mean with "another cluster"?

XML configuration file is the same in the two cases (stand alone program and 
"inside Weblogic" program), and in my code I've one only "startService()" 
invocation...

Maybe constructor method of the singleton is invoked twice (unlikely...); do 
you mean that? 

regards
matabo

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956104#3956104

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956104

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re:

2006-07-07 Thread [EMAIL PROTECTED]
You apparently run another cluster, for a total of 2 in your WL instance

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956100#3956100

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956100

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - "GMS: address is..." dispalayed twice

2006-07-06 Thread matabo
I'm running Jbosscache inside WebLogic 7; I have two Weblogic instance and I 
reoplicate a state between them.

When I start, even ONLY ONE Weblogic instance, I see the following lines 
displayed:

---
GMS: address is 1.5.28.121:4875
---

---
GMS: address is 1.5.28.121:4879
---

i.e. I see TWO GMS lines (1.5.28.121 is the address specificated in the 
JBossCache config file).

The piece of code is:

  private RepositoryDenormalizzato()
{
 try {
  connTokenMonitorTree = new TreeCache();
  PropertyConfigurator config = new PropertyConfigurator();
  config.configure(connTokenMonitorTree, 
"META-INF/mioreplSync-service.xml");
  connTokenMonitorTree.setClusterName("conntokenmonitor");
  connTokenMonitorTree.startService();
  Ascoltatore asc = new Ascoltatore();
  connTokenMonitorTree.addTreeCacheListener(asc);
   }
catch (Exception e) {
  System.out.println("ECCEZIONE impossibile attivare cluster "+e);
  e.printStackTrace();
  }
}

and this method is the constructor of a Singleton class.

When I run the same code as a stand alone program outside Weblogic, the GMS 
line is displayed once.

Of course, in WebLogic, the TreeCacheListener sees all events as "doubled". 
I.e., when I create a node, method "nodeCreated" is executed twice. When I 
remove a node, method "nodeRemoved" is executed twice, and so on.

Why this happens?

TIA
matabo


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956075#3956075

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956075

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - PojoCache - collection gets corrupted

2006-07-06 Thread ilevin
My application uses PojoCache (with jdk1.5 annotations). I have 2 cachable 
classes: 1st class has some mamber variables (String, int) and ArrayList. The 
ArrayList is filled with instances of the 2nd class. 

I started the application on 2 machines, created my outer POJO, modified some 
properties and added a couple of instances of inner POJO to the ArrayList. 
Everything worked fine and the changes were replicated to the second machine.
Then I pulled out network cable on the second machine and tried to add another 
instance of inner POJO to ArrayList using first machine.
After timeout list.add(pojo2) returned, but the ArrayList itself bocame null.

JBoss Cache version - 1.4.0 CR1
Replication mode - REPL_SYNC
Isolation level - SERIALIZABLE
JVM - Sun 1.5 

I would very appreciate any help.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956046#3956046

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956046

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: BoundedLinkedQueue locks everything

2006-07-06 Thread [EMAIL PROTECTED]
This is restriction on the eviction queue that should be lifted in 1.4. 
Workaround (and the proper solution) is to decrease your ThreadWakeUpInterval 
from 5 to say 2 or 1 second. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956045#3956045

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956045

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: complex object problem

2006-07-06 Thread [EMAIL PROTECTED]
"bingbingbing" wrote : Caused by: java.io.StreamCorruptedException: invalid 
stream header
  | at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
  | at java.io.ObjectInputStream.(ObjectInputStream.java:253)
  | at 
org.jboss.invocation.MarshalledValueInputStream.(MarshalledValueInputStream.java:60)
  | at 
org.jboss.cache.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:176)
  | at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:232)
  | 

I think this is the culprit when you run the test case under Eclipse (and if 
you run it from command line, I think it will work actually). Can you try to 
add this sysmtem property?

-Dserialization.jboss=false

This will disable the jboss serialization to see that is the root cause?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956041#3956041

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956041

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Remoting On Existing POJO Channel

2006-07-06 Thread Shorrockin
For all who care I finally figured out a way to get this to work (which also 
may point out a bug inside TreeCache).

First thing you have to do is create your JChannel before you create your 
PojoCache. My earlier attempts (in my first message) extended the PojoCache to 
expose the JChannel through a public method, this did not work and resulted in 
the error listed in my original message, this method of creating your JChannel 
before hand works but only after some tweaking.

The main problem is that the method below (in TreeCache.class), when you use 
your own JChannel, on line 3177 waits forever:

 
  | synchronized (members)
  |  {
  | while (members.size() == 0)
  | {
  |log.debug("waiting on viewAccepted()");
  |try
  |{
  |   members.wait();
  |}
  |catch (InterruptedException iex)
  |{
  |}
  | }
  |  }
  | 

To fix this we have to figure out why this works when we allow JBossCache to 
create the JChannel but doesn't work when we do it ourself. I believe the 
problem lies in _createService method. If you look at this method there's an if 
statement which checks to see if a JChannel exists and returns (prematurally) 
like such:


  | log.info("cache mode is " + mode2String(cache_mode));
  | if (channel != null)
  | { // already started
  |log.info("channel is already running");
  |return;
  | }
  | 

The probelm with returning is that after the if block there are several lines 
which attach a listener that I assume is required, the absence of this listener 
causes problems:


  | channel.setOpt(Channel.AUTO_RECONNECT, Boolean.TRUE);
  | channel.setOpt(Channel.AUTO_GETSTATE, Boolean.TRUE);
  | 
  | // COMMENTED OUT CODE HERE
  | 
  | disp = new RpcDispatcher(channel, ml, this, this);
  | disp.setMarshaller(getMarshaller());
  | break;
  | 

So because this code doesn't get executed we have to manually attach this 
listener ourselves. The whole process of creating the JChannel and setting up 
the listener looks like:


  | JChannelFactory factory = new JChannelFactory( 
this.getClass().getClassLoader().getResource( _jgroupsConfiguration ) );
  | 
  | _channel = (JChannel) factory.createChannel();
  | _channel.setOpt(Channel.GET_STATE_EVENTS, Boolean.TRUE);
  | _channel.setOpt(Channel.AUTO_RECONNECT, Boolean.TRUE);
  | _channel.setOpt(Channel.AUTO_GETSTATE, Boolean.TRUE);
  | 
  | // creates our own dispatcher used to proxy method requests across 
the cluster
  | _dispatcher = new RpcDispatcher( _channel, null, null, this );  
  
  | _serviceCache = new PojoCache( _channel );
  | 
  | PropertyConfigurator config = new PropertyConfigurator();
  | config.configure( _serviceCache, _cacheConfiguration );
  | 
  | // START HACK: STOP JBOSSCACHE FROM BLOCKING FOREVER
  | RpcDispatcher dispatcher = new RpcDispatcher( _channel, 
_serviceCache.getMessageListener(), _serviceCache, _serviceCache );
  | dispatcher.setMarshaller( _serviceCache.getMarshaller() );
  | // END HACK
  | 
  | _serviceCache.startService();
  | 

I belive this could all be avoided by removing the return  statement on line 
1352 so that the MessageListenerAdaptor gets properly attached. 
  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956006#3956006

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956006

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Configure JBoss cache with Weblogic 8.1

2006-07-06 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955942#3955942

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955942

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: complex object problem

2006-07-06 Thread bingbingbing
And when i use sourceRelative("aop.bsh"); in the BeanShell,it works fine only 
can not properly work under my junit-testcase in eclipse.

best regards



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955904#3955904

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955904

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - complex object problem

2006-07-06 Thread bingbingbing
i use the jalapeno and want to test the example code(Person and Address).I 
configured Person and Address in jboss-aop.xml and use the example 
replSync-service.xml as configuration file.
then in my testcase the code is something like:
System.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.cache.transaction.DummyContextFactory");
DummyTransactionManager.getInstance();

Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.cache.transaction.DummyContextFactory");
UserTransaction tx = (UserTransaction) new 
InitialContext(prop).lookup("UserTransaction");

PojoCache tree = new PojoCache();
PropertyConfigurator config = new PropertyConfigurator();
config.configure(tree,".\\jboss-cache\\etc\\META-INF\\replSync-service.xml");

Person joe = new Person();
joe.setName("Joe Black");
joe.setAge(31);

Address addr = new Address();
addr.setCity("Sunnyvale");
addr.setStreet("123 Albert Ave");
addr.setZip(94086);

joe.setAddress(addr);



tree.startService();
tree.putObject("/aop/joe", joe); 

And i run my junit-testcase and get following exceptions:
2006-07-06 17:11:03,660 [main] INFO  org.jboss.cache.TreeCache - parseConfig(): 
PojoCacheConfig is empty
2006-07-06 17:11:03,801 [main] ERROR 
org.jboss.cache.transaction.DummyTransaction - beforeCompletion() failed for 
[EMAIL PROTECTED], 
handlers=[TxInterceptor.LocalSynchronizationHandler(gtx=GlobalTransaction:<10.1.18.140:3348>:1,
 [EMAIL PROTECTED])]
java.lang.RuntimeException: 
at 
org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1083)
at 
org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:75)
at 
org.jboss.cache.transaction.DummyTransaction.notifyBeforeCompletion(DummyTransaction.java:247)
at 
org.jboss.cache.transaction.DummyTransaction.commit(DummyTransaction.java:54)
at 
org.jboss.cache.transaction.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:61)
at org.jboss.cache.aop.PojoCache.endTransaction(PojoCache.java:693)
at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:483)
at org.jboss.cache.aop.PojoCache.putObject(PojoCache.java:422)
at com.cycos.jcl.message.TestCache.testPlainCache(TestCache.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.io.StreamCorruptedException: invalid stream header
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
at java.io.ObjectInputStream.(ObjectInputStream.java:253)
at 
org.jboss.invocation.MarshalledValueInputStream.(MarshalledValueInputStream.java:60)
at 
org.jboss.cache.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:176)
at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:232)
at 
org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:604)
at 
org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:504)
at 
org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:327)
at 
org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:701)
at org.jgroups.JChannel.up(JChannel.java:1049)
at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:376)
at 
org.jgroups.stack.ProtocolStack.receiveUpEvent(ProtocolStack.java:392)
at org.jgroups.stack.Protocol.passUp(Protocol.java:538)
at 
org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:137)
at org.jgroups.stack.UpHandler.run(Protocol.java:59)
2006-07-06 17:11:03,801 [main] ERROR 
org.jboss.cache.transaction.DummyTransaction - afterCompletion() failed for 
[EMAIL PROTECTED]
java.lang.NullPointerException
at 
org.jboss.cache.aop.PojoTxSynchronizatio

[JBoss-user] [JBossCache] - JBoss Cache Error

2006-07-06 Thread wimalasuriyaib
Hi all,
I try to configure JBoss Cache with Weblogic. When i add jboss-jmx.jar to my 
class path and start weblogic server i get following error message.

The WebLogic Server did not start up properly.
java.lang.NoSuchFieldError: loaders
at 
com.sun.management.jmx.DefaultLoaderRepository.addClassLoader(DefaultLoaderRepository.java:38)
at 
com.sun.management.jmx.MBeanServerImpl.initialize(MBeanServerImpl.java:2441)
at com.sun.management.jmx.MBeanServerImpl.(MBeanServerImpl.java:113)
at 
weblogic.management.internal.RemoteMBeanServerImpl.(RemoteMBeanServerImpl.java:104)
at 
weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:242)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:771)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
at weblogic.Server.main(Server.java:32)
Reason: loaders

Can any body help me to solve this problem

Thankx in advance

Indika

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955869#3955869

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955869

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Configure JBoss cache with Weblogic 8.1

2006-07-06 Thread wimalasuriyaib
Hi all,
Im trying to configure JBoss cach with Weblogic 8.1. Can any body send me 
sample codes to perform this task. 

Thankx in advance.

Indika

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955857#3955857

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955857

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Global caching

2006-07-06 Thread jboss2005_01
Some additional research has shown that the TcpCacheServer stays in the 
STARTING state after starting the JBoss AS. Am I missing some configuration 
parameters or specific settings perhaps?

Kurt


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955804#3955804

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955804

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - No local transaction...

2006-07-06 Thread bpapez
Since some time - probably after switching to JBossCache 1.3.0 SP2 - we 
sometimes get this warning:

2006-06-22 08:32:12,333 WARN  [org.jboss.cache.interceptors.TxInterceptor] No 
local transaction for this remotely originating rollback.  Possibly rolling 
back before a prepare call was broadcast?

There indeed is a rollback on another node in the cluster. We use these 
settings:
READ_UNCOMMITTED
REPL_ASYNC
false
0
0  

Can we ignore this warning?

Greetings, 
Benjamin

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955789#3955789

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955789

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-07-06 Thread [EMAIL PROTECTED]
Which was this 'relevant jar', just so I can update the JBossCache/WebLogic 
wikipage accordingly?

Thanks,
Manik

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955768#3955768

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955768

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Global caching

2006-07-06 Thread jboss2005_01
Hi there,


Some additional information about the question described above.

First you need to add a dependency to get rid of the error message about the 
datasource. Adding the statement below in my HttpCache MBean definition solved 
the dependency problem when you deploy both the mysql-ds.xml and the 
HttpCache-service.xml in the deploy folder without having a deploy.last folder.
jboss.jca:service=DataSourceBinding,name=HttpCacheDS 

Second: adding the additional dependency below in the TcpCacheServer definition 
seems to solve the problem of the hanging JBoss instance. After adding this 
statement, the web-console did not freeze anymore, so I guess this was missing 
in the first place.
jboss.cache:service=HttpCache

Now up to further experimenting concerning the use of the global cache...
I'll keep all of you informed ;-)


Cheers,
Kurt

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955757#3955757

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955757

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: BoundedLinkedQueue locks everything

2006-07-06 Thread bpapez
Sorry, of course: we use JBossCache 1.3.0SP2.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955749#3955749

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955749

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - BoundedLinkedQueue locks everything

2006-07-06 Thread bpapez
We are using JBossCache 1.0.3 SP2. 
Today we had a situation, where a thread locked everything up. According to the 
thread dump this was the guilty thread:

"TP-Processor17" daemon prio=1 tid=0x0885cb98 nid=0x7321 in Object.wait() 
[7b103000..7b105228]
at java.lang.Object.wait(Native Method)
- waiting on <0x8f700048> (a 
EDU.oswego.cs.dl.util.concurrent.BoundedLinkedQueue)
at java.lang.Object.wait(Object.java:429)
at 
EDU.oswego.cs.dl.util.concurrent.BoundedLinkedQueue.put(BoundedLinkedQueue.java:303)
- locked <0x8f700048> (a 
EDU.oswego.cs.dl.util.concurrent.BoundedLinkedQueue)
- locked <0x8f731118> (a java.lang.Object)
at org.jboss.cache.eviction.Region.putNodeEvent(Region.java:125)
at org.jboss.cache.eviction.Region.setVisitedNode(Region.java:107)
at 
org.jboss.cache.eviction.RegionManager$EvictionTreeCacheListener.nodeVisited(RegionManager.java:505)
at org.jboss.cache.TreeCache.notifyNodeVisited(TreeCache.java:5128)
at org.jboss.cache.TreeCache._get(TreeCache.java:3032)
at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:286)
at 
org.jboss.cache.interceptors.CallInterceptor.invoke(CallInterceptor.java:50)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at 
org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:146)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at 
org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at 
org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:32)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at 
org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:328)
at 
org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:139)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:67)
at 
org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:133)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:4804)
at org.jboss.cache.TreeCache.get(TreeCache.java:3040)
at org.jboss.cache.TreeCache.get(TreeCache.java:3021)
at 
org.jahia.services.cache.JahiaTreeCache.getCacheEntry(JahiaTreeCache.java:285)
at org.jahia.services.cache.JahiaTreeCache.get(JahiaTreeCache.java:151)
at 
org.jahia.registries.JahiaFieldDefinitionsRegistry.getDefinition(JahiaFieldDefinitionsRegistry.java:114)

Most of the other threads were waiting for the lock <0x8f731118> to be 
released. After about 20 minutes we did another thread dump and the picture was 
still the same. Thread TP-Processor17 did not move and was still - waiting on 
<0x8f700048> and blocking all other threads with lock <0x8f731118>. What can we 
do about that?

Greetings,
Benjamin Papez

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955748#3955748

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955748

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-06 Thread [EMAIL PROTECTED]
All it needs actually is to re-compile the 4.0.4 source using the either 
JBossCache 1.3 or 1.4.CR2 release. So if you can check out the latest 4.0 cvs 
and build it (it has 1.4.CR1 already), you will be all set.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955743#3955743

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955743

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-07-06 Thread [EMAIL PROTECTED]
It is in 1.4.CR2 under sourceforge for the JBoss Cache download.

http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=102339&release_id=428151

Look into the examples directory.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955742#3955742

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955742

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Global caching

2006-07-05 Thread jboss2005_01
Hello everybody,


I've searching around for the last two weeks trying to find a solution for the 
following set-up. What I would like to achieve is a set-up where 4 JBoss 
instances work together in a clustered environment. Two nodes are actually 
serving client requests while two other nodes are being hot-standby being 
Apache working as software loadbalancer. This works just great and is up and 
running. So no difficulties concerning this matter.

Now I would like to extends the configuration by setting up a fifth JBoss 
instance running the default configuration that needs to serve like a 
centralized, cluster-wide cache. And this is where difficulties appear. 
Browsing  the Wiki has showed me (due to two articles written by Manik Surtani) 
that I need to set-up a TreeCache on this fifth machine together with a 
TcpCacheServer. Each node then synchronizes with the global cache by using the 
TcpDelegatingCacheLoader. The TreeCache on JBoss instance 5 can then be backed 
by a JDBCCacheLoader to persist the cached data.

As described in this article, I have installed a default JBoss instance wich I 
extended with jboss-cache.jar and jgroups.jar in it's default lib folder to 
provice caching functionality. I'm using JBossCache 1.3.0 together with the 
JGroups version provided with JBoss 4.0.2 on a JBoss 4.0.2 configuration. In 
fact, all my JBoss nodes are also running 4.0.2. I configured both the 
TreeCache and the TcpCacheServer in a HttpCache-service.xml file (located 
below) and copied this one to the deploy folder together with a mysql-ds.xml 
file because my TreeCache uses the JDBCCacheLoader.

A first strange thing appeared when starting the AS. I got an error message 
stating that the datasource was not bounded alltough it is available in the 
deploy folder. As far as I know, xxx-ds.xml files are always deployed before 
xxx-service.xml files under normal deployment order configuration. Can anyone 
explain what the reason for this behaviour might be? Anyway I solved it by 
using a deploy.last folder that contains my xxx-service.xml file which solved 
the problem.

A second problem I have is with the TcpCacheServer. As soon as this service is 
started by the AS, it seems to freeze. The web-console in fact is blocking, so 
I dont' have the possibility to do anything with the default JBoss 
configuration. Does anyone have the same behaviour in this circumstances? If 
so, did anyone found a solution for this one. I know I must be doing something 
wrong within this set-up but I can't figure out what. Any help would be greatly 
appreciated off course and any assistance for finding a solution would result 
in a neat article within the Wiki describing this entire configuration.

Below some of the configuration files I used within my attempt to set-up this 
configuration.
The JBoss instance serving as cache has the following service definition file 
called HttpCache-service.xml


  | 
  | 
  | 
  | 
  | 
  | jboss:service=Naming
  | jboss:service=TransactionManager
  | 
  | org.jboss.cache.JBossTransactionManagerLookup
  | 
  | PESSIMISTIC
  | 
  | REPEATABLE_READ
  | 
  | LOCAL
  | 
  | TRUE
  | 
  | 5000
  | 
  | 
  | 
  | TRUE
  | /
  | FALSE  

  | 
  | 
org.jboss.cache.loader.JDBCCacheLoader
  | 
  | 
cache.jdbc.datasource=java:/HttpCacheDS
  | 
  | 
true
  | 
false
  | false
  | 
  | 
  | 
  | 
  | 
  |
   
  | jboss.cache:service=HttpCache-->   
   
  | ${jboss.bind.address:localhost}
  | 7500
  | 
  | 
  | 
  | 

Each JBoss cluster node (running the all configuration) has a modified 
tc5-cluster-service.xml file that should (if I understand everything correct) 
use the global cache to synchronize with:


  | 
  | 
  | 
  | 
  | 
  | jboss:service=Naming
  | jboss:service=TransactionManager
  | 
  | org.jboss.cache.JBossTransactionManagerLookup
  | 
  | REPEATABLE_READ
  | 
  | LOCAL
  | 
  | 1
  | 
  | false
  | 
  | false
  | 
  |  

[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-07-05 Thread sphinxmember
Hi ,

Got it working with both Pojo and Tree Cache.
I didnt notice that it was throwing this exception on the admin server
org.jboss.cache.statetransfer.StateTransferGenerator_1241] - failed initialing 
state transfer byte[]
java.lang.NoClassDefFoundError: org/jboss/invocation/MarshalledValueOutputStream


After putting the relevant jar in the classpath , the second member of the 
cache cluster replicated the state on its startup.

Thanks a lot.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955633#3955633

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955633

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-07-05 Thread sphinxmember
Thanks for the clarification.

Can you tell me the location for these examples for downloading them.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955604#3955604

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955604

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-05 Thread MarcReis
Sorry to bother again, but I do have one more question.
Is there any workaround that I can implement into the 4.0.4.GA source, so that 
when I build a version it will work with 1.4 ?
I had a look at the JBossCache sources (TreeCache, EvictionPolicy, 
RegionManager, Region, Eviction,...) and at the hole org.jboss.ejb3.cache.* 
source, but I dont really see how I could do a work around.
I first thought just using the 1.4 Cache sources in the JBoss sources when 
building would resolve the issue, but I guess there is more to it ;-). So I 
tried to see If I could some how get behind what I would need to do at the 
PassivationTreeCache, but I dont get it yet.

Thanks !

Marc

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955560#3955560

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955560

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Remoting On Existing POJO Channel

2006-07-05 Thread Shorrockin
I'm currently developing a standalone APP that needs a mechanism by which 
remote methods can be executed on individual servers in the cluster. 

My initial attempt at this was to use the JGroups RpcDispatcher, but when I 
used this class starting up other clusters in the node resulted in an exception 
with a message which reads:
org.jboss.cache.CacheException: Initial state transfer failed: 
Channel.getState() returned false 

(removing the construction of the RpcDispatcher fixes the problem)

Fair enough, I figue this isn't supported with JBossCache so I'm trying to 
determine how it is suggested I do this. It appears that all the 
callRemoteMethod calls in Tree cache have been deprecated and the comment which 
reads "this is due to be moved to an interceptor." doesn't lead me to a clear 
replacement.

My questions are as follows:
1) Should JGroups RpcDispatcher work?
2) If not, what approach should I take to build this type of framwork that 
utilizes the channel that JBossCache is sitting on?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=391#391

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=391

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-05 Thread MarcReis
Thank you Ben !

Sincerly 
Marc

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955385#3955385

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955385

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: No ClassLoaders found

2006-07-05 Thread javajedi
anonymous wrote : I presume this is the default version of JBoss Cache that 
comes with 4.0.3.SP1? 

Yes.

anonymous wrote : Does your code use Hibernate directly or is this EJB3 entity 
bean related?

It's using Hibernate directly.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955382#3955382

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955382

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-07-04 Thread [EMAIL PROTECTED]
Yes, for aopc, you will need this XML.

BTW, I have refactored the PojoCache examples to weave out the unnessary 
dependecies. There is now a separate PojoCacheTasks.xml (for Ant targets) that 
a user can take to customize to your own project setting mor easily. Feedback 
is welcome when you have a chance to try it out in the CR release.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955366#3955366

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955366

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-07-04 Thread [EMAIL PROTECTED]
Marc,

I have found out why. Please go to this ejb3 post for details.

http://www.jboss.com/index.html?module=bb&op=viewtopic&t=85914

Thanks,

-Ben

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955313#3955313

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955313

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: can I replace a stateful session bean with JBoss cache?

2006-07-04 Thread [EMAIL PROTECTED]
It depends on your application.  JBoss Cache is not a drop-in replacement for 
stateful session beans in any way.  If all your SFSBs do is maintain back-end 
state for your applets, then they could be replaced with a cache service 
(clustered or not) but you will still need some remoting to alow your applet to 
talk to your cache tier.  With EJBs you get this for free, since EJBs are 
remote objects anyway.

Perhaps you could use a stateless session bean to manage the remote 
conversation, and this stateless bean could, on the server side, talk to the 
cache layer.

HTH,
Manik

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955252#3955252

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955252

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - can I replace a stateful session bean with JBoss cache?

2006-07-03 Thread ameelin
a) We have an app with an applet interface.  At periodic intervals the applet 
goes to server and gets updated data and repaints.
On the server side now,  there is a stateful session bean that holds the object 
data painted by applet.  Whenever there is a change to the data of objects held 
by stateful bean, then the object referrred to by stateful session bean is 
updated.  Can I reap a lot of benefits if I move from stateful to JBoss 
cache(generally speaking)

b) The above described is an existing system...and I want to suggest JBoss 
cache to client (in lieu of stateful session beans)and hence was looking for an 
article or write-up that compares stateful and JBoss cache...is there one?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955105#3955105

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955105

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: treecache transactions not as expected

2006-07-03 Thread deep_soul_1999
I believe the issue is solved - but its only from my 1st impression (which is 
enough for me for the moment)
There are multiple ways to read the content of the cache and some dont support 
the isolation levels.
If you use cacheInstance.printDetails() you would get all the cache content - 
commited and uncommited. Of course you should use cacheInstance.get(...) 
methods that seems to support the isolation levels.

I think it should be well documented that printDetails (and maybe other methods 
- even "debugging" methods) does not support the isolation levels.

take care all.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955050#3955050

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955050

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: treecache transactions not as expected

2006-07-03 Thread deep_soul_1999
"[EMAIL PROTECTED]" wrote : Would http://jira.jboss.com/jira/browse/JBCACHE-407 
apply to your problem?

Hi manik, thanks for your quick reply,
I dont think it is direcly related to my problem as i am not doing any rollback 
in my testcase. Also, I dont have a problem with nodes but with keys ( which i 
believe is a different case in rollback anyway).

My issue is a really a basic classic scenario of a reader/write with 
READ_COMMITED/SERIALIZEABLE isolation level: I dont expect the reader to know 
of the values before the writer commits.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955037#3955037

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955037

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: treecache transactions not as expected

2006-07-03 Thread [EMAIL PROTECTED]
Would http://jira.jboss.com/jira/browse/JBCACHE-407 apply to your problem?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955021#3955021

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955021

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: treecache transactions not as expected

2006-07-03 Thread deep_soul_1999
More information regarding my issue:
(+) The unexpected results happens even when configured as SERIALIZABLE.
(+) I am using jbosscache 1.3.0 so the following issue should have been fixed: 
http://jira.jboss.com/jira/browse/JBCACHE-285 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955013#3955013

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955013

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - treecache transactions not as expected

2006-07-03 Thread deep_soul_1999
Hi all,
I am trying to use tree-cache transactional feature, and it does not working as 
my expectation [perhaps i got it all wrong...]. any help would be appreciate. I 
will try to simplify the issue.
I start the cache with the following properties:
LOCAL
PESSIMISTIC
READ_COMMITED
(standalone or inside oc4j - both not working)

I have 2 theads: reader and writer. The reader runs in a loop that displays all 
the cache content. The writer start a transaction that puts 2 new nodes in the 
cache. I use debug to stop the writer after putting the 1st node (but before 
commit). and then i notice that the reader already knows of the existance of 
that new node. I expected the reader not to read that node till the commit (in 
the writer thread).

any help would be appreciate.
thanks.




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955009#3955009

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955009

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: No ClassLoaders found

2006-07-03 Thread [EMAIL PROTECTED]
I presume this is the default version of JBoss Cache that comes with 4.0.3.SP1?

Does your code use Hibernate directly or is this EJB3 entity bean related?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955005#3955005

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955005

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Row Level Locking without Transactions

2006-07-03 Thread [EMAIL PROTECTED]
Essentially, calling methods starting with _ are internal and will not trigger 
aspects such as replication, etc.

In future releases (from 2.0.0) these methods will be internalised and not be 
accessible from the client API.

I normally don't recommend the DummyTransactionManager that comes with JBoss, 
but if you are looking for a very simplistic TM to effectively 'batch up' 
requests, this may be a solution.

Keep in mind that the DummyTransactionManager is not supported or recommended 
for production use though.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955003#3955003

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955003

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: How to start the Gossip Server ?

2006-07-01 Thread [EMAIL PROTECTED]
Download the src; look into build.xml, there is a gossip-service target there.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954832#3954832

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954832

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - No ClassLoaders found

2006-06-30 Thread javajedi
JBoss 4.0.3 sp1

I just tried to turn on the JBoss TreeCache in Hibernate.  When Hibernate tries 
to place an entry in the cache, I get a ClassNotFoundException.  It appears 
that the TreeCache can't find the classes that are inside of my ear.  I am 
using the jboss.cache:service=EJB3EntityTreeCache cache.

2006-06-30 19:46:33,077 ERROR [org.jboss.ejb.plugins.LogInterceptor] 
RuntimeException in method: public abstract java.util.Set 
MyClass.getFoo(Bar,boolean):
  | org.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: 
java.lang.ClassNotFoundException: No ClassLoaders found for: Foo; - nested 
throwable: (java.lang.IllegalArgumentException: 
java.lang.ClassNotFoundException: No ClassLoaders found for: Foo)
  | at org.hibernate.cache.TreeCache.put(TreeCache.java:81)
  | at 
org.hibernate.cache.StandardQueryCache.put(StandardQueryCache.java:81)
  | at 
org.hibernate.loader.Loader.putResultInQueryCache(Loader.java:2119)
  | at org.hibernate.loader.Loader.listUsingQueryCache(Loader.java:2063)
  | at org.hibernate.loader.Loader.list(Loader.java:2021)
  | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:392)
  | at 
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:333)
  | at 
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
  | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1109)
  | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  | at MyClass.getFoo(MyClass.java:123)
  | at MyClass.getFoo(MyClass.java:112)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
  | at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
  | at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
  | at 
org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:54)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
  | at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
  | at 
org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:264)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
  | at org.jboss.ejb.Container.invoke(Container.java:873)
  | at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
  | at 
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
  | at $Proxy143.getFoo(Unknown Source)
  | at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
  | at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  | at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
  | at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
  | at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  | at javax.servlet.http.HttpServl

[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-06-30 Thread sphinxmember
Ok... I will try it and then discuss the outcome.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954769#3954769

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954769

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-06-30 Thread sphinxmember
Thats what even I was assuming

The example under annotated50 has aoppath element under aopc target which 
specifies the path for jboss-aop.xml.

Is it necessary to provide this XML just as a directive to the aopc to check 
for the new annotation marker
@org.jboss.cache.aop.annotation.PojoCacheable

I am using JBossCache-1.3.0.SP2

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954724#3954724

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954724

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Translate the documents to Chinese

2006-06-30 Thread [EMAIL PROTECTED]
Also, see 
http://fisheye.jboss.com/viewrep/~raw,r=1.1/JBoss/JBossCache/docs/i18n.txt  for 
a guide to internationalising the docs.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954708#3954708

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954708

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Translate the documents to Chinese

2006-06-30 Thread [EMAIL PROTECTED]
+1.  And you get lots of kudos on the docs and the jboss cache website as a 
contributor. :-)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954707#3954707

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954707

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Translate the documents to Chinese

2006-06-30 Thread [EMAIL PROTECTED]
No, I don't think so. I have had Xiaogang Cao and his team at hibernate.org.cn 
translating my PojoCache article. But I don't believe the whole doc is 
translated.

Send me an email (ben dot wang at jboss dot com) if you decide to go ahead. I 
can do the review for you. :-)

-Ben

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954683#3954683

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954683

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Translate the documents to Chinese

2006-06-30 Thread templar.ding
Hi all, I don't know if these documents have been translated to Chinese already 
or not. If there is no Chinese version, I'm going to translate them.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954612#3954612

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954612

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: How to start the Gossip Server ?

2006-06-29 Thread chhajed
Thanks bela for the quick reply.

I did download the JGroups source 2.3, but did not find the gossip-service 
target that you had metioned. I downloaded it from 
http://sourceforge.net/project/showfiles.php?group_id=6081

Have I missed anything ?

"Deploy the SAR into JBoss.."
Are you talking about the JBoss server here ? If yes, I'm using Tomcat server. 
How should I deploy it in tomdcat ? 

Thanks,
Amit

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954589#3954589

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954589

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Inhertance problems

2006-06-29 Thread [EMAIL PROTECTED]
In that case, can you send me your test such that I can take a look? ben do 
wang at jboss dot com.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954576#3954576

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954576

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-06-29 Thread [EMAIL PROTECTED]
In this case, it may be easier to troubleshoot with just TreeCache.

For the TransactionManagerLookUpClass, can you change to 
GenericTransactionManagerLookup? such that it can handle the WL tm properly?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954575#3954575

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954575

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Pojo Cache and annotations

2006-06-29 Thread [EMAIL PROTECTED]
Not for the release 1.3 and 1.4. 

In 2.0, it has additional interceptos and introduction that requires runtime 
presence of the aop xml file but that is supposed to be internal (e.g., hiding 
away from the user).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954573#3954573

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954573

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Pojo Cache and annotations

2006-06-29 Thread sphinxmember
HI,

I am using JDK1.5
For Pojo Cache with annotations , Is the jboss-aop.xml required even if I use 
aopc for compile time generation of aop classes.

Thanks 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954471#3954471

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954471

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-06-29 Thread sphinxmember
Yes the Tree Cache also produced the same error.

true
3


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954461#3954461

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954461

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Inhertance problems

2006-06-29 Thread gshriki
Yep,
Just tried that, and it's working...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954297#3954297

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954297

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Inhertance problems

2006-06-29 Thread [EMAIL PROTECTED]
Hmmn, I do have the test case in the distro that covers this though. Did you 
try just using Person instance to see if the replication works?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954256#3954256

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954256

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Repeatable Reader - are readlocks actually obtained?

2006-06-29 Thread [EMAIL PROTECTED]
Yes, I believe getObject never obtains a lock from the root. Only the 
inidividual update will trigger the appropriate lock.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954254#3954254

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954254

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-29 Thread [EMAIL PROTECTED]
On the first problem of your requirement, Brian has pretty much cover it. The 
point is, if you don't care much about the exisiting POJO, then you can do 
putObject on either node. Just to make sure, to do getObject() before you start 
doing POJO update, e.g.,


  | pojoA = cacheA.getObject("/test");
  | pojoA.setBlah(xx); // should work
  | 

or

  | pojoB = cacheB.getObject("/test");
  | pojoB.setBlah(xx); // should work
  | 

As for the first basic problem, I'd recommend that you try out the examples 
that come with the distribution. You can simply try it out and then modify from 
there to see if that works for you.

If it works, then probably you need to create a test case and send it to me to 
look at. We can do it via Jira.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954253#3954253

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954253

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: How to start the Gossip Server ?

2006-06-29 Thread [EMAIL PROTECTED]
1. Download the JGroups source
2. Execute the gossip-service target, which will create a gossip-router.sar
3. Deploy the SAR into JBoss, this will create a GossipRouter as an MBean, 
managed by JBoss

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954252#3954252

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954252

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - How to start the Gossip Server ?

2006-06-29 Thread chhajed
I'm a newbie. I was wonder if you could let me know how should I start the 
gossip server from the JBossCache ?

Thanks a ton,
Amit Chhajed

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954250#3954250

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954250

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Inhertance problems

2006-06-28 Thread gshriki
Hi,

I've got the following classes:

public class Person {
  | protected String first_name;
  | protected String last_name;
  | ...

public class User extends Person {
  | protected String username;
  | protected String password;
  | protected Device device;
  | ...

public class Device {
  | protected String vendor;
  | protected String modelID;
  | ...

When duplicating a User, I get the right values for the Device members, and the 
local variables of User. The inherited values of Person are not being 
duplicated.

I'm running the application on JDK5.0, with the -javaagent parameter 
-javaagent:d:\java\JBC14\lib-50\jboss-aop-jdk50.jar

The jboss-aop.xml:

  | 
  |
  |
  | 

Any help will be appreciated.

Thanks!
   Gilad.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954237#3954237

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954237

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-28 Thread mbenner
Hi.  Yeah, if I do:

cacheA.putObject("/test", pojoA);
pojoA1 = cacheB.getObject("/test");

pojoA1 would be null.  With 1.4, however, pojoA1 is showing up, but its empty 
(the values I assign to it before putting it in cacheA aren't there).  Very odd 
behavior, especially since I see the correct values in the logs.

I'll try your suggestion about calling getObject() before putObject().  
Crossing fingers...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954204#3954204

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954204

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-28 Thread [EMAIL PROTECTED]
So if you do:

cacheA.putObject("/test", pojoA); // pojo attached on cache A

pojoA1 = cacheB.getObject("/test");

pojoA1 is null?  You've definitely got something weird going on then.  That's 
just basic stuff.  Not sure what to say about that :(  Hopefully Ben will have 
some idea.

Well, let's just pretend that issue is solved. :-)  Re: the JBCACHE-674 problem 
Ben mentioned with calling: 

cacheA.putObject("/test", pojoA);
cacheB.putObject("/test", pojoB);

A workaround should be to just do this:

cacheA.getObject("/test"); 
cacheA.putObject("/test", pojoA);

cacheB.getObject("/test");
cacheB.putObject("/test", pojoB);

If you call getObject() on the 2nd cache before replacing the object, that's 
enough to put the cache into a state where it detects that an object 
replacement has happened. (Of course you call getObject() on both caches, 
because you don't know which one will be the "2nd" cache).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954197#3954197

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954197

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-28 Thread mbenner
Ben and Brian,

First off, I'm sorry for the typo in my previous response.  When running my 
assertEquals() tests, I was actually running it on the re-retrieved POJO 
objects (cachedPojoA, updatedPojoA, and updatedPojoB).  Thank you for catching 
that typo. :)

Good to know that doing a putObject() from both nodes isn't supported.  That 
explains part of the problem I'm seeing, but unfortunately not all.  If I 
follow the regular usage pattern, as you described:

cacheA.putObject("/test", pojoA); // pojo attached on cache A
  | 
  | pojoA1 = cacheB.getObject("/test");
  | 
  | pojoA.setBlah(xx); // will have problem here
  | print(pojoA1); //will get updated.

pojoA1 won't exist on cacheB (I'll get a null value in this test).  In the 
logs, I'll see the object and values coming over to CacheB, but it won't 
actually get set into CacheB.   

As for the reason I'm doing a putObject() from both nodes ... each night, the 
servers corresponding with CacheA and CacheB restart (various reasons behind 
this) in about a 30 second staggered fashion.  For this particular 'dailySpend' 
data, we need to restore it from the database on server startup (lazy loading 
isn't really an option here).  One of the two servers needs to load it from the 
database at startup, and because I'm never entire sure which one will complete 
its startup first, I'm just having them both load the data from the DB.  I'm 
also afraid to code one server to be the primary DB loader (e.g., CacheA) and 
the other to just retrieve the data across the network (e.g., CacheB) from the 
other node because, if CacheA went down permanently, I'd have no way of loading 
the data from the DB.  I'm not sure if there's a way around this (any 
suggestions would be appreciated) - I looked into your CacheLoaders, but they 
didn't seem to fit.  Perhaps I'm missing something??

Anyway, I still need figure out why replicated values aren't getting persisted 
on the various nodes. :)  I'm going to try JBoss Cache 1.4 and see if that give 
me any different results.  Could this be a configuration issue??

Thanks,
Michael

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954127#3954127

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954127

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: PojoCache: why are final/static fields not replicated?

2006-06-28 Thread jeyrich
Oh yes, the documentation makes it clear that those are not replicated; I was 
just curious about the reasoning behind that (a customer asked and I couldn't 
come up with entirely satisfactory answers).

For the static case, I agree that this shouldn't be the default. But as with 
final, in simple cases it could be desirable to have the option. As for how to 
store it, I think most people would expect that multiple POJOs shared the same 
static instance just as it would be without the cache. In my thinking, this 
wouldn't have to be handled differently from the case where many POJOs 
reference the same object non-statically. Are regions used for more than 
eviction? If not, I think the referencing POJOs could just be evicted as usual, 
and the sole static object instance could be kept somewhere else, separate from 
the regions containing the referencing POJOs (__internal__:?).

But I'm just asking. "Nobody has needed it yet and it would need some more 
thought, so we are working on more pressing issues. If you think you need it, 
request the feature in JIRA and if enough people want it, we'll look into it" 
would be a perfectly satisfying answer for me. I just wanted to know if there 
are known reasons that make it (practically) impossible to support this.

Thanks for your comments.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954061#3954061

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954061

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Repeatable Reader - are readlocks actually obtained?

2006-06-28 Thread irabinovitch
Is this the case in all current versions of PojoCache?  1.3.x and 1.4.x ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954055#3954055

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954055

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: PojoCache: why are final/static fields not replicated?

2006-06-28 Thread [EMAIL PROTECTED]
It is stated in the documentaiton that currently neither final, transient, or 
static fields are replicated. 

To replicate static is really case dependent since it it a global variable. 
Question is then how do we store it internally if there are multiple POJOs 
stored in the cache? And this has implication such as region, etc.

As for final, I can make it configurable if there are enough use cases such 
that it can be treated as mutable.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953985#3953985

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953985

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: PojoCache: why are final/static fields not replicated?

2006-06-28 Thread jeyrich
Thanks for the quick answer.

Concerning final, I see that it makes no sense replicating final fields that 
point to immutable objects (e.g. Strings). But when the referenced object is 
mutable I might want to replicate changes to it, too.

Objects are mapped into the cache by reachability, but objects referenced by 
final fields aren't, so I have to do this manually.

I think I have seen that when I do a putObject(), fields containing Collections 
are replaced with AOP Proxies. This of course would be a problem with a final 
field; but why disallow it for other kinds of objects?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953955#3953955

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953955

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: PojoCache: why are final/static fields not replicated?

2006-06-28 Thread [EMAIL PROTECTED]
final fields cannot be modified, so why replicate them ?
However, static fields *should* probably be replicated, what is the current 
behavior ? Ben, Brian ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953947#3953947

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953947

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - PojoCache: why are final/static fields not replicated?

2006-06-28 Thread jeyrich
Hi,

can anybody give me a rationale for not replicating final and static fields in 
PojoCache? I can think of some scenarios where there could be problems, but I'm 
not sure why it is not even offered as an option.

I couldn't find an explanation in the documentation, on the wiki, or in the 
forums.

Anyone care to enlighten me? I don't want to complain, just understand.

Thanks very much,
Joern

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953930#3953930

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953930

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Weblogic 91 and POJO Cache

2006-06-27 Thread [EMAIL PROTECTED]
Is the TreeCache one also produced the same error as in PojoCache, for the 
state transfer portion?

In additio, what is your initital state transfer timeout setting?

E.g.,

 2

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953874#3953874

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953874

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread [EMAIL PROTECTED]
michael,

Sorry that it wasn' clear before but I probably know where is the problem. You 
are doing:


  | cacheA.putObject("/test", pojoA); // pojo attached on cache A
  | 
  | cacheB.putObject("/test", pojoB); // pojo attached on cache B as well
  | 
  | pojoA.setBlah(xx); // will have problem here
  | 

Any reason doing simultaneous pojo putObject from both nodes? This is a problem 
that currently PojoCache don't handle. I have opened a Jira (JBCACHE-674) to 
track this.

Alternative is to use different fqns for different POJOs. Remember that POJO 
lifetime is not supposed to be short-lived, otherwise, PojoCache won't be 
effective. 

Just to confirm, the regular usage:


  | cacheA.putObject("/test", pojoA); // pojo attached on cache A
  | 
  | pojoA1 = cacheB.getObject("/test");
  | 
  | pojoA.setBlah(xx); // will have problem here
  | print(pojoA1); will get updated.
  | 
will work, correct?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953869#3953869

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953869

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread [EMAIL PROTECTED]
No worries about long posts if the problem is complex :-)  I was just too lazy 
to read all the details.

I'm not sure if this was just a typo in the forum post, but in what you posted 
the variable you assign when you call getObject() is not the one you are using 
in your assertions.  "cachedPojoA" is never used again, and the call to 
"pojoA.setDailySpend(128.0)" is on an object no longer in the cache.

I think this was a typo, but want to be sure.

Even if it wasn't a typo that wouldn't explain why "assertEquals(1, 
pojoA.dailySpend);" fails.  Nor the anomaly of why adding .5 is OK but a direct 
set is not.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953856#3953856

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953856

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread mbenner
Hi Brian,

Thanks for your response (and sorry for the verboseness of the previous posts). 
=)  

I'm actually getting the object from the cache each time using the getObject() 
call.

// Put object in CacheA and then replace it in CacheB
  | MerchantDailyAccount pojoA = new MerchantDailyAccount(1); // dailySpend=1
  | cacheA.putObject("/test", pojoA);
  | 
  | MerchantDailyAccount pojoB = new MerchantDailyAccount(900); // 
dailySpend=900
  | cacheB.putObject("/test", pojoB);
  | 
  | 
  | // Re-retrieve the object from CacheA
  | MerchantDailyAccount cachedPojoA = cacheA.getObject("/test");
  | 
  | // This test always fails for me.  The value of dailySpend in pojoA 
  | // actually turns out to be 0, the default value in the object
  | assertEquals(1, pojoA.dailySpend);
  | 
  | 
  | // Then update the object on CacheA
  | pojoA.setDailySpend(128.0);
  | 
  | 
  | // Re-retrieve the POJOs from CacheA and CacheB
  | MerchantDailyAccount updatedPojoA = cacheA.getObject("/test");
  | MerchantDailyAccount updatedPojoB = cacheB.getObject("/test");
  | 
  | 
  | assertEquals(128.0, pojoA.dailySpend); // this one will pass
  | assertEquals(128.0, pojoB.dailySpend); // this one will always fail.  
dailySpend will equal 900

I see the correct values being passed from CacheA to CacheB in the logs (and 
vice versa).  The values just aren't being populated in the objects.

The really odd thing that I can consistently produce is that instead of 
updating the dailySpend by calling setDailySpend() (as in the code above), if I 
just increment the value by 0.50, for example, via an internal method in 
MerchantDailyAccount, it'll actually change the value to 900.5, which is what I 
would expect.  So, it seems the replicated values are actually getting across, 
they just aren't getting assigned to the fields in the object.

I'm going to try JBoss Cache 1.4 and see if that fixes it.  Otherwise, I'm 
stumped.

Thanks!
Michael


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953837#3953837

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953837

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread [EMAIL PROTECTED]
I'm late to this thread, so please forgive if I miss something stated earlier 
in all of the above :-)

First, the "Suppressing invocation" message is completely normal.  The cache 
itself (as opposed to the interceptor stack) doesn't actually do anything on a 
commit() call, so the CallInterceptor just logs the message you see and 
discards the call.

Second, when you are comparing your objects, where are you getting them from?  
Do you hold a reference to an existing object, or do you get the object from 
the cache?  If you put a *different* object in the cache under an existing Fqn, 
this doesn't *update* the existing object, it *replaces* it.  Therefore, if 
other code holds a reference to the old object, it shouldn't expect to see the 
new object's  values.

Example unit test code to illustrate my point:


  | MerchantDailyAccount pojoA = new MerchantDailyAccount(1);
  | cacheA.putObject("/test", pojoA);
  | 
  | MerchantDailyAccount pojoB = new MerchantDailyAccount(128);
  | cacheB.putObject("/test", pojoB); 
  | 
  | // pojoB REPLACED pojoA in the cache, so pojoA should 
  | // not have pojoB's dailySpend value
  | 
  | assertEquals(1, pojoA.dailySpend);
  | 
  | // Get the object from cacheA
  | MerchantDailyAccount replacedA = cacheA.getObject("/test");
  | 
  | assertEquals(128, replacedA.dailySpend);
  | 
  | // Do an update of the existing object, not a replacement
  | pojoB.setDailySpend(128.5);
  | 
  | assertEquals(128.5, replacedA.dailySpend);
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953831#3953831

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953831

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread mbenner
So, I tried what you suggested, and here's what I see in the logs.  In 
particular, I'm seeing a message on Server B (the server replicated to) that 
says:  

Suppressing invocation of method 
commit(GlobalTransaction:<192.168.1.174:33972>:1) on cache.

Could this be the problem, and if so, what could possibly cause this?  I've 
included the entire set of log statements below.


27 Jun 2006 13:48:55,107 DEBUG[] 
org.jboss.cache.interceptors.PessimisticLockInterceptor - 
PessimisticLockInterceptor invoked for method 
prepare(GlobalTransaction:<192.168.1.174:33972>:1, 
[_put(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, dummy, 
dummy, true), _put(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, 
AOPInstance, [EMAIL PROTECTED], true), 
_put(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, 
__jboss:internal:class__, class com.gifts.business.MerchantDailyAccount, true), 
_put(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, 
{test_double=0.0, test_boolean=true, testDouble=0.0, testString=null, 
test_int=0, testBoolean=false, testInteger=0}, true), 
_remove(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, dummy, 
true)], 192.168.1.174:33972, false)
27 Jun 2006 13:48:55,107 DEBUG[] 
org.jboss.cache.interceptors.PessimisticLockInterceptor - bypassed locking as 
method prepare() doesn't require locking
27 Jun 2006 13:48:55,108 DEBUG[] org.jboss.cache.interceptors.CallInterceptor - 
Suppressing invocation of method 
prepare(GlobalTransaction:<192.168.1.174:33972>:1, 
[_put(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, dummy, 
dummy, true), _put(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, 
AOPInstance, [EMAIL PROTECTED], true), 
_put(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, 
__jboss:internal:class__, class com.gifts.business.MerchantDailyAccount, true), 
_put(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, 
{test_double=0.0, test_boolean=true, testDouble=0.0, testString=null, 
test_int=0, testBoolean=false, testInteger=0}, true), 
_remove(GlobalTransaction:<192.168.1.174:33972>:1, /test/dailySpend, dummy, 
true)], 192.168.1.174:33972, false) on cache.
27 Jun 2006 13:48:55,108 DEBUG[] org.jboss.cache.interceptors.TxInterceptor - 
Are we running a 1-phase commit? false
27 Jun 2006 13:48:55,108 DEBUG[] org.jboss.cache.interceptors.TxInterceptor - 
Finished remote prepare GlobalTransaction:<192.168.1.174:33972>:1
27 Jun 2006 13:48:55,134 DEBUG[] org.jboss.cache.interceptors.TxInterceptor - 
(192.168.1.184:33307) call on method 
[commit(GlobalTransaction:<192.168.1.174:33972>:1)]
27 Jun 2006 13:48:55,134 DEBUG[] org.jboss.cache.interceptors.TxInterceptor - 
Got gtx from method call GlobalTransaction:<192.168.1.174:33972>:1
27 Jun 2006 13:48:55,135 DEBUG[] org.jboss.cache.interceptors.TxInterceptor - 
Found local [EMAIL PROTECTED], global 
TX=GlobalTransaction:<192.168.1.174:33972>:1
27 Jun 2006 13:48:55,135 DEBUG[] org.jboss.cache.interceptors.TxInterceptor -  
executing commit(GlobalTransaction:<192.168.1.174:33972>:1)() with local TX 
[EMAIL PROTECTED] under global tx GlobalTransaction:<192.168.1.174:33972>:1
27 Jun 2006 13:48:55,135 DEBUG[] org.jboss.cache.transaction.DummyTransaction - 
processing beforeCompletion for [EMAIL PROTECTED], 
handlers=[TxInterceptor.RemoteSynchronizationHandler(gtx=GlobalTransaction:<192.168.1.174:33972>:1,
 [EMAIL PROTECTED])]
27 Jun 2006 13:48:55,135 DEBUG[] org.jboss.cache.interceptors.TxInterceptor - 
Running beforeCompletion on gtx GlobalTransaction:<192.168.1.174:33972>:1
27 Jun 2006 13:48:55,135 DEBUG[] org.jboss.cache.transaction.DummyTransaction - 
processing afterCompletion for [EMAIL PROTECTED], 
handlers=[TxInterceptor.RemoteSynchronizationHandler(gtx=GlobalTransaction:<192.168.1.174:33972>:1,
 [EMAIL PROTECTED])]
27 Jun 2006 13:48:55,135 DEBUG[] org.jboss.cache.interceptors.TxInterceptor - 
calling aftercompletion for GlobalTransaction:<192.168.1.174:33972>:1
27 Jun 2006 13:48:55,136 DEBUG[] org.jboss.cache.interceptors.TxInterceptor - 
Running commit phase.  One phase? false
27 Jun 2006 13:48:55,136 DEBUG[] org.jboss.cache.interceptors.TxInterceptor -  
running commit for GlobalTransaction:<192.168.1.174:33972>:1
27 Jun 2006 13:48:55,136 DEBUG[] 
org.jboss.cache.interceptors.ReplicationInterceptor - 
IsLocalCommitOrRollback=false
27 Jun 2006 13:48:55,136 DEBUG[] 
org.jboss.cache.interceptors.PessimisticLockInterceptor - 
PessimisticLockInterceptor invoked for method 
commit(GlobalTransaction:<192.168.1.174:33972>:1)
27 Jun 2006 13:48:55,136 DEBUG[] 
org.jboss.cache.interceptors.PessimisticLockInterceptor - committing cache with 
gtx GlobalTransaction:<192.168.1.174:33972>:1
27 Jun 2006 13:48:55,136 DEBUG[] 
org.jboss.cache.interceptors.PessimisticLockInterceptor - releasing lock for 
/test/dailySpend (write owner=GlobalTransaction:<192.168.1.174:33972>:1)
27 Jun 2006 13:48:55,136 DEBUG[] 
org.jboss.cache.interceptors.PessimisticLockInterceptor - rele

[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread MarcReis
The SFSB should be on its way to you ! 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953759#3953759

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953759

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread [EMAIL PROTECTED]
Please send me your "Hello World" sfsb then. ben dot wang at jboss dot com. I 
will give it a try to see what is different.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953644#3953644

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953644

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread MarcReis
Strange, I just tried it with an 4.0.4CR2 Out-of-the-Box's "all" and the 
1.4.0Cr1 and a "HelloWorld" SFSB and up the error came.
 I for this I did use a 4.0.4CR2 that has been out for a while, files are dated 
first of April 06... not that I am missing something here. The sources that I 
use to compile the modified version of the AS are mainly dated May 22.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953637#3953637

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953637

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-27 Thread [EMAIL PROTECTED]
I dont think 1.4CR2 is that different. Can you try it out from AS4.0-ejb3 out 
of the box though. That should tell you right away.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953627#3953627

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953627

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Replicated field values not 'sticking' in clustered POJO

2006-06-27 Thread [EMAIL PROTECTED]
Hmmn... looks like replication is happening and you have field replication as 
well.

How about you do it the regular way: starting A and B, then do a putObject on A 
then do a getObject from B?

Check the log file as well.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953625#3953625

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953625

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Hibernate 2nd lvl Cache for EJB3

2006-06-26 Thread MarcReis
Yes, I have a modified \deploy\ejb3.deployer\META-INF\jboss-service.xml so that 
we can use the http-invoker-servlet.
This is the changed line:
...
  | servlet://mc0430-116:8080/servlet-invoker/ServerInvokerServlet
  | ...
  | 
Also we have modified the 

  | "org.jboss.ejb3.stateful.StatefulClusteredProxyFactory" and
  | "StatefulRemoteProxyFactory" 
  | "org.jboss.ejb3.stateless.StatelessClusteredProxyFactory" and 
  | "StatelessRemoteProxyFactory" 
  | 
  | so that they allow the usage of the host name rather than the ip address 
(this is mainly one line seting the String clientBindUrl befor passing it to 
the InvokerLocator).
  |  And some other minor changes that though, are not used in this example or 
fiddel with ejb3 (InvokerLocator has an extra variable and slight changes and 
added a new LoadBalancingPolicy).
  | Besides this, the only not "out-of-the-box" files are one "*-ds.xml" for 
the DB-Source, the "servlet-invoker.war", the tomcat libs copied to the /lib 
folder for the http invoker to work and the "ojdbc14.jar" for jdbc to the DB. 
So its actually very minimalistic at the moment. I'll also try 1.4.0.CR2 and 
see what it says to this.
  |  
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953621#3953621

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953621

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


  1   2   3   4   5   6   7   8   9   10   >