[JBoss Seam] - Re: seam-gen and type specific controls
by zeljko_t
"max.andersen(a)jboss.com" wrote :
| are you talking enums somehow detected via reverse engineering?
Oh, yeah. Already done.
MySQL "show columns" returns types among other things. enums are returned as "enum('firstValue','secondValue',...)"
With some parsing I can create list of possible values.
anonymous wrote :
| anonymous wrote :
| | * feed enum type with values using strategy
| |
|
| ? do not understand.
|
Instead of returning type name, I plan to return parametrized type instance filled with enum values.
anonymous wrote :
| anonymous wrote :
| | JDBCBinder should ask for Type instead of typeName String.
| |
| huh ? What difference would that make ?
|
I can create type instance and fill it with parameters.
anonymous wrote :
| anonymous wrote :
| | I already solved yes_no enums with specialized strategy. This covers like 90% of my enums.
| |
| please show code - much easier to understand what you are doing then ;)
|
I plan to put it in Jira after I'm finished, but I can also put draft version now, if you like. Basically I'm executing some MySql statements to fetch more meta data than I can get from the driver. It is similar to MySQL varchar primary key problem solution that I already sent.
anonymous wrote : what stopped the 10-50 tables ?
Missing support for composite keys in seam-gen.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002861#4002861
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002861
19 years, 3 months
[JBossCache] - Simple question: Clustering with FileCacheLoader
by cypherhat
I am using JBossCache in a WebSphere environment. I had been using a FileCacheLoader in LOCAL mode, although I hadn't set the CacheMode explicitly. So far, so good.
Now, I want to enable clustering. I still want to use a FileExtendedCacheLoader; but, I want to replicate data across two WebSphere instances (in the same WS cluster.) I searched the documentation for the appropriate configuration, and, I am unclear how much I have to configure.
I would expect that I'd have to add some configuration that allows each TreeCache to discover the other nodes in it's cluster. Thus, I see the ClusterConfig stanza in some example configurations.
Is it enough just to set the cache mode to REPL_SYNC (I want synchronous replication)?
Actually, a better way to ask this question is:
Here is my (very minimal) configuration. What do I have to add to enable clustering?
<?xml version="1.0" encoding="UTF-8"?>
| <config>
| <passivation>false</passivation>
| <preload>/nothing</preload>
| <cacheloader>
| <class>org.jboss.cache.loader.FileExtendedCacheLoader</class>
| <properties>location=/trp/GDU/cache</properties>
| <async>false</async>
| <shared>true</shared>
| <fetchPersistentState>false</fetchPersistentState>
| <purgeOnStartup>false</purgeOnStartup>
| </cacheloader>
| </config>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002856#4002856
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002856
19 years, 3 months