[jboss-user] [EJB 3.0 Users] - 5.1 - @PersistenceUnit fails to resolve in Servlet when EJB
JBoss AS 5.1 Servlet code: public class Servlet extends HttpServlet { | | @PersistenceUnit | private EntityManagerFactory emf; | | I created a persistence.xml file and included it a separate EJB .jar file in a .ear file. Things were working fine until I added some EJBs in the persistence.xml containing .jar, and this error started coming up: | 11:34:43,802 ERROR [StandardContext] Context [/mlp] startup failed due to previous errors | java.lang.IllegalArgumentException: Container org.jboss.web.tomcat.service.tomcatinjectioncontai...@1662fdd failed to resolve persistence unit null | at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:135) | at org.jboss.injection.PersistenceUnitHandler.loadXml(PersistenceUnitHandler.java:75) | Is there some reason the persistence unit is lost when EJBs are declared within the same .jar file? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4256063#4256063 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4256063 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Microcontainer Users] - Re: Injecting bean instances in Servlets/EJBs
Thanks for the info. I want my Web Beans. Really bad. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4256075#4256075 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4256075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Microcontainer Users] - Injecting bean instances in Servlets/EJBs
Looked over the documentation but I didn't really see any explanation or recommendation for how deployed beans are supposed to be accessed through Servlet deployments. Is JNDI the suggested way? Is there support for @javax.annotation.Resource tags for accessing your own beans? (I wonder how JBoss AS implements @Resource...) JNDI might be okay. If so, how can I be sure the Servlet is initialized AFTER my bean is? I guess I'm really after something like what Web Beans promises, which is integration of POJOs/dependency injection with JEE. As an aside, I don't really see any code sharing between Microcontainer, Seam/Web Beans, which is odd, considering the functionality is in many ways similar. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4256047#4256047 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4256047 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Unable to consume more than 777, 000 messages
The solution I have used in the past is to create a new JMS session for every message I want to acknowledge separately. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4247985#4247985 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247985 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Unable to consume more than 777, 000 messages
The solution I have used in the past is to create a new JMS session for every message I want to acknowledge separately. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4247986#4247986 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247986 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Log4j is not outputting to my application specific log f
One possible problem is including (another) log4j.jar in your application deployment. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4238349#4238349 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4238349 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to prevent CSRF (Cross Site Request Forgeries)
If you're using Seam, read this: http://seamframework.org/Documentation/CrossSiteRequestForgery View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4238350#4238350 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4238350 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Migration from Weblogic - Datasource/ConnectionPool
There's XA connection pool examples in the docs directory for Oracle. They probably have all the correct settings you describe. If not, filing a JIRA would be helpful. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4238351#4238351 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4238351 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: SSO session destroyed using a4j:poll
Not really a beginner's question, I would think. Maybe the a4j:poll doesn't extend the life of the session? For instance, do you see any issue when the session cannot expire? You can try the ajax4jsf forums. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4238352#4238352 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4238352 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: snippet of code for eviction policy
Not sure (haven't checked) but I think there might be some step you're missing in activating the region and eviction policy. If you have debug on, you should be seeing some sort of periodic logging indicating it's working. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4234190#4234190 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4234190 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: ExpirationPolicy not working
The set time to live doesn't really work. If you follow the docs, you have to set a key on the node with the time you want it to expire. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4227353#4227353 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4227353 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: How to configure region based caching use multiple cac
No, use separate caches. Nice thing is, though, you can use a single transaction for multiple instances. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4225509#4225509 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4225509 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: How to subclass JDBCCacheLoader
One thing that came to mind was to add a general configuration set that would allow Node key values to be mapped into specific table columns. (Sort of a poor man's JPA.) Data would be therefore stored in a way that was easily accessible and managed by your DBA. But really the only practical use I considered would be for managing timestamps of data. But instead of writing code, one thing you could consider is simply adding a update timestamp column to the cache loader's table, which is populated through a trigger. Then a background process run by your DBA could cull the data as necessary. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4223792#4223792 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4223792 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: True Structure of Cache Node?
Although it may seem strange to store a single value in a Node, fortunately, JBoss Cache is designed to be somewhat efficient at storing a single name-value pair in a Node instance. So try and stick with [1]. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4222461#4222461 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4222461 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Feature request for eviction policies
Thinking outloud: Using a listener to dynamically add regions sounds fine, although each region has its own overhead, that is storage and CPU costs. Maybe 1000s of regions is fine, but what about 1 or more? And you might want to consider what happens when a region is empty, i.e. consider how region de-allocation works. It might be easier to extend and/or implement your own eviction policy that tracks regions. I would probably prototype and test your solution than go to the trouble to implement a new eviction strategy, however. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4221713#4221713 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4221713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: FIFO Ordering
Manik, There should be some way to create FIFO nodes using a different implementation of Node Factory. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4211958#4211958 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4211958 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JBossCache 1.4.0.SP1 And WebSphere 6.0.2.31 in cluster
If you're using TCP, you need either a gossip server or to list the initial members in your configuration. Think about it! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4209767#4209767 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4209767 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: ObjectName with invalid character
What's in your cache-config.xml file? As an aside, probably JBoss should escape that character. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4202284#4202284 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4202284 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Using DataType Object as a Key to JBoss Cache
I would advise having the cache key immutable, that is all fields final etc. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4202285#4202285 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4202285 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Clean Hibernate Second Level Cache
You should use the Hibernate API to evict the entries. Don't access the underlying cache directly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4201179#4201179 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4201179 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBMCacheLoader location property
The earlier cache loader probably should be fixed, filed as JBCACHE-1447. For JDBM is the size of the datafile never decreases. This may be an issue to some people but in practice it's probably okay as empty space is eventually reused. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4192261#4192261 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4192261 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBM Performance with Jboss Cache
FileCacheLoader performance sucks for many small nodes. It works okay with big nodes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4191911#4191911 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4191911 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBMCacheLoader location property
My bad. But on the bright side at least having an extra directory around doesn't hurt. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4191912#4191912 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4191912 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBM Performance with Jboss Cache
It's not bad. It's used for a lot of open source apps. But it lacks all of the transaction features of Sleepycat. I recommend you use it with ASYNC on if possible. One thing I've seen is that JBoss Cache sort of has a goofy implementation of put() where all the data has to be loaded from the cache loader before it's replaced. So do a remove() then put() if possible. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4191452#4191452 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4191452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Cache corrupted by 64bit windows member
You're getting an EOF, meaning somebody in your cluster is cutting the connection to your system. It might just be a network connectivity issue. Look at the logs on the other machines (TRACE) and see what's triggering the disconnect, if it indeed is within the cache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4187814#4187814 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4187814 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Cache corrupted by 64bit windows member
I doubt that's the case. All the Java IO classes write the same number of bytes regardless of the underlying architecture. I've never heard otherwise since I started using JDK 1.0. If you're patient, feel free to run Wireshark and see if the Windows 64 bit machine is sending anything weird. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4187830#4187830 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4187830 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Do you prefer a tree or a plain map API for your project
I contributed a class that creates a Map style view... not sure it's really that optimized or not. I wrote it since I thought it might integrate better with our own API but nobody here seems to care either way. Here's the API: anonymous wrote : | K, V MapK, V org.jboss.cache.util.Caches.asMap(NodeK, V node) | Returns a Map, where map keys are named children of the given Node, and values are kept under a single key for this node. The map may be safely concurrently modified through this Map or externally, and its contents reflect the cache state and existing data of the Node. This means that ConcurrentModificationException is never thrown and all methods are thread safe. | | The map is not serializable. | | Usage note: As a single node is used for every key, it is most efficient to store data for a single entity (e.g. Person) in a single object. | | Also, when using a CacheLoader for storage, keys used must be valid as part of the Fqn used in calls. Generally speaking, simple string values are preferred. | | Parameters: | node node in a cache to wrap | Returns: | a Map representation of the cache | The problem with the JBoss Cache API (IMHO) is having a Map per node. Having a single Object per node would have worked out almost as well to most end users and would have simplified internal development for the product. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4187589#4187589 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4187589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - CacheLoader performance bad when replacing data
There used to be a TreeCache.putData(Map m, boolean erase) operation at some point which I thought was optimized, but in reality there's only put(Map) and put(K, V) type operations that do merges. I'm trying to simply store a bunch of associations which should overwrite any existing data, and I'm getting bad performance, since every put() operation forces a read. Even the clearData operation forces a read. Any hints? There is a Node.replaceAll but requires loading the node first. I'd like to see Cache.replaceAll() operation at some point. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4187084#4187084 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4187084 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Buddy migration and removal
I guess the problem is does cache2 know that the data migrated? I think a cache listener would work, but the docs aren't too clear on this. node created works but since the event doesn't contain any data as part of the event, I suspect the migrated timestamp might not be available. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4187083#4187083 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4187083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Buddy migration and removal
I was trying to get timed removal to work with buddy replication: JBCACHE-1435 So instead of using an eviction policy, I wrote my own timer to remove nodes from the cache. It works fine except when the data gets migrated from one cache to the other. In which case, the data copied to cache2 has no timer active to force removal. Essentially we have: 1. cache1.put(X, Y) 2. cache2.get(X) // returns Y, thanks to migration 3. cache1.remove(X) (from timer) 4. cache1.get(X) // returns Y Here's what I got: | 4328 INFO [main] - ___ service ___ | JBossCacheService#1 state=STARTED cache=/ null | /min null | /500500 null | /5005001042 {V={MDN=5005000958 MIN=5005001042 IP=127.0.0.42 CID= null}} | /_BUDDY_BACKUP_ null | /192.168.0.9_1832 null | /mdn null | /500500 null | /5005000958 {V=5005001042} | [EMAIL PROTECTED] | 4328 INFO [main] - ___ service2 ___ | JBossCacheService#3 state=STARTED cache=/ null | /_BUDDY_BACKUP_ null | /192.168.0.9_1830 null | /min null | /500500 null | /5005001042 {V={MDN=5005000958 MIN=5005001042 IP=127.0.0.42 CID= null}} | /mdn null | /500500 null | /5005000958 {V=5005001042} | [EMAIL PROTECTED] | 4547 INFO [main] - ___ wait for remove ___ | 5094 DEBUG [pool-1-thread-1] JBossCacheService - remove 5005001042 | 7547 INFO [main] - ___ service ___ | JBossCacheService#1 state=STARTED cache=/ null | /min null | /500500 null | /_BUDDY_BACKUP_ null | /192.168.0.9_1832 null | /min null | /500500 null | /5005001042 {V={MDN=5005000958 MIN=5005001042 IP=127.0.0.42 CID= null}} | /mdn null | /500500 null | /5005000958 {V=5005001042} | /mdn null | /500500 null | [EMAIL PROTECTED] | 7547 INFO [main] - ___ service2 ___ | 7547 INFO [main] - | JBossCacheService#3 state=STARTED cache=/ null | /min null | /500500 null | /5005001042 {V={MDN=5005000958 MIN=5005001042 IP=127.0.0.42 CID= null}} | /_BUDDY_BACKUP_ null | /192.168.0.9_1830 null | /min null | /500500 null | /mdn null | /500500 null | /mdn null | /500500 null | /5005000958 {V=5005001042} | [EMAIL PROTECTED] | Suggestions? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4186786#4186786 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4186786 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Buddy migration and removal
It looks like the eviction issue was fixed, but what's the solution to this problem if you use timed removal? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4186787#4186787 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4186787 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: advice on cache (mis)use for transaction log store
I would probably start with a configuration that is close to your ideal. A prototype, I suppose. Then you could be more specific about what you need. Something that would work but perhaps not ideally, for your first round, is to configure a synchronous replicated cache with a async cache loader, say the BerkeleyDB or JBPM. Add in some eviction. And you'd get something close to what you need. 3.2 will have better replication strategy. Having sync put and async removal is a feature maybe you could raise in JIRA? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4185811#4185811 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4185811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Found Bug with Hibernate, TreeCache and Cacheloader, if
The CacheLoader is designed to persist the state of the cache, but when using Hibernate, it's the database itself that holds state. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4184547#4184547 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4184547 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Found Bug with Hibernate, TreeCache and Cacheloader, if
Don't use a cache loader with JBoss Cache, if JBoss Cache is used as a Hibernate 2nd level cache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4184281#4184281 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4184281 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Bug with commit
Don't use a cache loader with the Hibernate cache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4182008#4182008 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4182008 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JBoss Cache 2.x with Hibernate 3.3
Use this property name, e.g. | hibernate.cache.region.factory_class=org.hibernate.cache.jbc2.MultiplexedJBossCacheRegionFactory | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4181584#4181584 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181584 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Question regarding JDBCCacheloader
If you disable the async option, you should see the stack trace from your code or whatever's calling the write. What JBoss version are you using? It seems strange you'd run out of DB connections, unless you're leaking, which could happen with really old JBoss versions, e.g. 3.2.3. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4181147#4181147 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181147 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Question regarding JDBCCacheloader
Looks like you're running out of connections on a put(), not a get(). Are writes more frequent than reads? This would be an anti-pattern. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4181062#4181062 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181062 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Start JBossCache MBeans in a Web Service Project
There's no standard way to create stuff in a .war except through a servlet init(). You can use a startup servlet to create a cache, but for JBoss it's best to use a sar. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4181063#4181063 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181063 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: TimeoutException in a READ_ONLY Cache Entity
Data is written to the cache when it's being loaded... do you know what thread Timer-9,5,jboss is doing? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180193#4180193 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180193 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Takes much time to Startup - 1.4.0.SP3
Don't restart? Why not set the params really low (50,25,25) and see where that gets you... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180194#4180194 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180194 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Resident Nodes evicted in heavy load conditions
A couple of thoughts: If losing data is undesirable, then disable eviction. If eviction is required but losing data is undesirable, use a cache loader. If eviction is happening sooner than you expect, then don't sent max nodes and set a minimum time to live for nodes. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4179422#4179422 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4179422 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Setting up JBoss 4.2.2 so MDBs can subscribe to Topic on
You don't need to set the provider URL if you're connecting locally. I'm pretty sure that providerUrl and JmsProviderAdapterJNDI aren't needed. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4179467#4179467 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4179467 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Discovery time of a clustered cache ?
There's JGroup settings to indicate the discovery time. See: http://docs.jboss.org/jbossas/jboss4guide/r4/html/jbosscache.chapt.html View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4177924#4177924 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4177924 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: deployment of ear containing jars + sar
Add the jars to the META-INF/Manifest of the .ear file. Be doubly sure have Classpath: in there. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4176279#4176279 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4176279 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Custom Eviction Policy and JDBC Cache loader
For JBC 1.4 (used in JBoss 4.2), you can still write a custom eviction policy that does a remove. Extend the existing EvictionPolicy-implementing class and override the public void evict(Fqn fqn) method. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4175186#4175186 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4175186 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossMQ] - Re: Auto-delete unretreived messages?
Set message expiration? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4172960#4172960 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4172960 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Clumsy JDBC configuration 2.2.0.CR7
Could you file a JIRA issue with specific configuration orderings as a test case? http://jira.jboss.com/ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4172869#4172869 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4172869 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Option to remove persistent data is a valid use case
The eviction class design is a bit clunky. There's a thread on the design forum about this. Feel free to contribute some thoughts on this if you like. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4168251#4168251 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4168251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Compensation for network latency of sync'd DB
Your protocol fix sounds like a pretty good solution, although I would be worried if certain messages (not related to invalidation) were held up. Could you submit your FIXED_DELAY protocol as patch? https://jira.jboss.org/jira/browse/JGRP It's not required but may be good to have your code examined by the experts. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167671#4167671 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167671 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Option to remove persistent data is a valid use case
Since you use the LRU policy, you would extend LRUPolicy, say call it LRURemovePolicy, and override the evict() method. Then put this class in with class name: | attribute name=EvictionPolicyConfig | config | ... | attribute name=policyClass...LRURemovePolicy/attribute | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167756#4167756 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Option to remove persistent data is a valid use case
In your eviction configuration, you can set the EvictionPolicyClass and define what the method does: | public abstract class BaseEvictionPolicy implements EvictionPolicy { | |/** | * Evict the node under given Fqn from cache. | * | * @param fqn The fqn of a node in cache. | * @throws Exception | */ |public void evict(Fqn fqn) throws Exception |{ | cache_.evict(fqn, false); |} | You could override this method to remove the data instead. Maybe there should be a flag as you suggest? If you can create a good patch and test case, generate a JIRA issue and attach the patch. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167452#4167452 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Compensation for network latency of sync'd DB
What would be wrong with setting an eviction policy on the cluster so that entries are evicted older than 5 seconds? That would probably be the easiest to configure. Though, your delay approach would probably work. Just be sure to have the removal action queued and take place in a separate thread. Some sort of batched remove might work faster. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167454#4167454 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167454 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Stress Tests
The best use of JBossCache is primarily for data read frequently but written rarely...according to the docs. Consider testing using an actual application scenario. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167456#4167456 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167456 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Best use of Jboss Cache Implementation
In JBoss Cache, usually you use FQN as the key and you'd put the content and groups under a single Node instance. Using a single instance is okay as long you'd like the locking, replication, and cache loading behavior to be the same for all data in that cache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4165414#4165414 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4165414 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Storing a snapshot of TreeCache to disk?
You should be able to instantiate the BdbjeCacheLoader instance and call methods to load the data. You may need to set up some dummy instances (e.g. TreeCache) since the loader goes to it for configuration information. To generate a backup, use loadEntireState and output the contents to disk. Restore using storeEntireState. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4165418#4165418 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4165418 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: File system cache size limitation
That's not supported. But you could have a secondary process that scanned and deleted directories that were over a certain age. Though, it'd be risky I think. I think the JDBC cache loader and others cache loaders could do a better job tracking creation/modification time to allow a secondary process to prune data. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4165420#4165420 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4165420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: File system cache size limitation
One way to do this in a safe way is to create your own keys that indicate the modification and/or creation time of that node. Iterate over all the JBoss Cache nodes and purge anything too old. Unfortunately, you do end up having to visit (and load) all the data in the cache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4165425#4165425 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4165425 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: Illegal state of the rollinglogged PM just after server
Rolling Logged is not official supported and probably was always experimental when it was available. What's your JBoss version? You're probably on your own here. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4155842#4155842 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4155842 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss Scheduler problem
Try renaming audit-service.xml to jboss-service.xml ... You might also want to change the file extension to .sar from .jar as well. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4152149#4152149 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4152149 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Logging into separate Files
You can use a thread local, e.g. MDC and filter on that, assuming the library is going to be run from the same application's threads. Search for MDC filter in google. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4150837#4150837 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4150837 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Is it possible to combine CORBA with JBoss messaging
But maybe you could use Corba from an MDB? I don't know if that's technically the messaging system talking to legacy code. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4149335#4149335 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4149335 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Have a node wait for JMS message - Problem
Not sure I can help. But I think in a JEE context you shouldn't be using a JMS message listener. But probably it's not valid to receive JMS messages either. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4145210#4145210 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4145210 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Cache server(s) and client(s)?
Take a look at: http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/2.0.0.GA/JBossCache-UserGuide/en/html_single/index.html#d0e3122 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4144074#4144074 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4144074 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Cache server(s) and client(s)?
Also: http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/2.0.0.GA/JBossCache-UserGuide/en/html_single/index.html#cl.tcp View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4144075#4144075 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4144075 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Performance of JBoss Cache
Performance benchmarks are a case of it depends and so you're better off doing your own analysis and generating your own numbers. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4142223#4142223 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4142223 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Failed to boot JBoss:java.lang.NullPointerException
The boot path must not be including some element, such as the path to the .properties file loaded by org.jboss.Version View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4141484#4141484 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4141484 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: FileCacheLoader failing with EOFException with fix
If you trace through, you'll notice the writing to disk doesn't happen during when write lock is obtained, but actually when the transaction commits. What probably should happen is the writes happen during the prepare phase to dot files, perhaps named with the JGroups address, and during the commit phase the files are renamed. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4138341#4138341 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4138341 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: jboss scheduler losing time
What's going on is the time taken to run the task is added on to that period. I suggest you use this instead: http://wiki.jboss.org/wiki/Wiki.jsp?page=QuartzSchedulerIntegration which is more reliable and has cron-like scheduling features and is more robust. Or, you could come up with a bug+patch that fixes the drift. It'd be an easy feature to add. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4138373#4138373 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4138373 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: I don't Think I am doing this Correct
I think this is more a JPA/Hibernate question. You need to explicitly tell Hibernate to use the cached results using a query hint. I'd use a named query, though. You'd do: | @NamedQuery( | name=findXXX, | query=from xxx, | [EMAIL PROTECTED](name=org.hibernate.cacheable, value=true), | @QueryHint(name=org.hibernate.cacheRegion, value=com.xyz} | ) | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4137563#4137563 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4137563 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: FileCacheLoader failing with EOFException with fix
It looks like the original code did not close the ObjectOutputStream, rather it closed the underlying file stream, which isn't correct. Could you file a JIRA issue and link to this post? By the way, I think the FileCacheLoader is documented as not so production worthy. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4137267#4137267 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4137267 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Replication setting per region
I don't see why you couldn't subclass the replication interceptors to simply ignore certain FQN. Unfortunately, it's not that straightforward to set up your own interceptor chain. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136854#4136854 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
It's funny that a packet with bela in it would cause somebody's program to crash. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136855#4136855 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136855 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Random 1.6gb object allocation attempt when using tcppin
My immediate thought it is there is some packet being received that has a bad size value, which is why a 1.6GB buffer might have been allocated. Maybe you could patch the code that allocates that array to throw an exception when a certain size limit is reached? I'd also try to run tcpdump and try and capture the offending packet if possible. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136239#4136239 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBOSS Cache vs Gigaspaces
Why don't you play with the demo and check out the code? http://jbosscache.blogspot.com/2008/01/gui-demo-for-jboss-cache.html I've never used Gigaspaces but looking at the documentation it seems to have a different feel than importing a .jar file and working with configuration keys. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135020#4135020 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135020 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Define CacheLoader for different Regions
No, you're only allowed one cache loader per cache instance. You can of course create multiple cache instances in your application. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4134016#4134016 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4134016 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: New Bie JBoss Cache Replication
Here's the thing. Machine 1 might store 10, but then if you call Machine 2, it might store 0. What you need to do is more like: | Integer count = (Integer)cache.get(/a/b/c, Key1); | if (count == null) // initialize |count = 0; | count = count + 1; | cache.put(/a/b/c, Key1, count); | But there's a potential race condition here. Use pessimistic locking and transactions to ensure this is atomic. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4132286#4132286 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4132286 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: JBoss cache + Mobicents. I cant start the cache
Make sure jboss-aop-2.0.0-X.jar is in your classpath. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4131562#4131562 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4131562 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: LRU Eviction Policy is clearing the entire cache after M
See this: | http://labs.jboss.com/file-access/default/members/jbosscache/freezone/docs/2.1.0.CR1/userguide_en/html/eviction_policies.html#d0e3423 | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4131253#4131253 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4131253 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: What is returned by getMembers()?
org.jgroups.Address instances View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4129553#4129553 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4129553 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: tx completion STATUS_UNKNOWN
My advice would be to: 1. Check out JBoss Cache from SVN and get it to build. 2. Take a look at TxInterceptor.java line 1243 or so. Try to get it to work. 3. You can configure the unit test suite to use your TX manager, see if you can't get it to work with Atomikos. 4. Unfortunately I don't see a way to configure the TxInterceptor. Create a JIRA issue and explain you want to configure this behavior. Actually, it seems like you can mark a method as @Inject and JBoss Cache will inject a configuration object. Not sure if there's any XML that pertains to the TX interceptor. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4129314#4129314 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4129314 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to use
Remember to include the messageListenerInterface annotation property, e.g.: @MessageDriven(activationConfig = { @ActivationConfigProperty( ... }, messageListenerInterface=MessageListener.class ) What's the full exception stack trace on deployment?u View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4124645#4124645 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4124645 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Fails to run on Jboss4.2.2
Take a look here: http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration I would first check you aren't deploying two copies of the same class. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4124197#4124197 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4124197 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: failed setting transient state - in a Tree Cache Cluster
What JVM are you using? Have you tried the Sun JVM? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4124214#4124214 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4124214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: Recover Exception after Rollback in JMS
It's not really supported. If you want to do this, one way is to create a new message (copy?), using a non-transacted JMS connection and send it back to the same queue (or a separate queue) with the exception. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4122392#4122392 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122392 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Using joda time in entites
I would create two methods. Create public getter/setters as @Transient that use JODA, create protected getter/setters that return java.util.Date marked with @Column. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4122398#4122398 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122398 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: CacheLoaderInterceptor behavior
Take a look at the AsyncCacheLoader. I implemented a configuration key that changed the default behavior of the put and remove operations. If you can come up with a decent patch, create a JIRA issue, attach the patch and link the issue to this forum URL. You may also be asked to provide some documentation. Probably put(k,v) and remove should lose their return value, and if the value is of interest, a user can use get(k) anyway. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121141#4121141 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121141 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: EAR verification
Deployment in JBoss goes through the JMX MBean MainDeployer. There's a method (operation) called deploy which takes a URL and I believe should return error status when deployment fails or not. If not there is another method that will check for deployment errors. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121152#4121152 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121152 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: mbean and timer
Don't implement the Schedulable interface if you want two different methods called. I would create two scheduler mbeans which call your mbean methods through JMX. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4121151#4121151 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121151 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Fqns in 3.0.0
String plus java.lang.Number is okay. Not sure Boolean and Char are necessary. I would definitely remove null in FQN since this is supported, though probably not uniformly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4118118#4118118 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118118 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Using JBossCache on a Java Persistence with Hibernate st
I have found it's really hard to see if you are actually using the cache. I see this in your config: | property name=hibernate.cache.use_second_level_cache value=false/ | Which doesn't seem right. Try turning on debugging in hibernate and JBoss cache and see what's going on. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4114342#4114342 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114342 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: improve s:cache performances
And a hint: I would probably turn on debug logging for Seam and JBoss Cache, then access the page after you're certain it has been cached then look at the progression of time stamps. You can often discern the call flow and find the hot spots. You eviction configuration seems a little aggressive. Lots of short TTLs. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4114346#4114346 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114346 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: message persistence in a clustered environment
I think it'd work if you use a separate schema owner or different table names for this. I pretty sure it would not work with shared tables. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113043#4113043 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113043 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Re: Unable to browse messages in queue LRUCache error
JBoss version? Just wondering if this might have been fixed already. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113045#4113045 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113045 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: jboss sheduler issue
Is it because your scheduler is deployed before the EJB is deployed? You may want to add a depends to your scheduler so it appears after jboss initializes it. Also, always post your stack traces. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112779#4112779 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112779 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Management Application
If you have a subscription they probably provide fancy tools for this. But for poor people and poor businesses, you can use farmed deployments, remote JMX access (write your own tools), use twiddle.sh, etc. There's a lot you can do by accessing the deployment manager through JMX. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112780#4112780 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: startService and stopService problem.
Does DeviceMBean extend ServiceMBean? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112778#4112778 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112778 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Mbean with custom authentification / authorization for m
For remote access, you'd configure the security for the console. http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoISecureTheJMXConnection This will authenticate a remote connection, take username+password and create a principal. For fine-grained authentication, enable this interceptor: http://jsourcery.com/api/sourceforge/jboss/4.0.4/org/jboss/jmx/connector/invoker/AuthorizationInterceptor.html Which, once configured, can instantiate an object and call this method: | public void authorize( Principal caller, Subject subject, String objectname,String opname) | I don't believe there's a tutorial... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112787#4112787 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112787 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Mbean with custom authentification / authorization for m
Er, not console I mean RMI adapter. Anyway, take it step by step... first get login to work, then add the interceptor. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4112789#4112789 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Why won`t fix JBCACHE-622?
I'm guessing you have to have your application wait for cache start-up to complete before accessing the cache. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111352#4111352 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111352 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user