Please provide guide line
by Brajesh Patel
Hello all,
Please provide beginner guide for learn hibernate.
Thanks in advance.
--
Thanks
Brajesh Patel
14 years, 2 months
Infinispan DirectoryProvider for Hibernate Search
by Sanne Grinovero
Hi all,
this was planned long time ago and is now being requested often,
especially on the Infinispan forum and irc.
As Search might have to manage several indexes, these can all be
stored in the same cache, or in different caches;
In both cases the cache or CacheManager should be reused, and so the
different DirectoryProvider implementations should
be able to get a reference to the CacheManager.
In case this is stored in JNDI, this should be trivial, but when it's
not we might need to manage the CacheManager lifecycle and
have a global configuration file for it.
The Infinispan Directory was designed to work with Search, so it's all
about dependencies and configuration; these are the steps needed:
1) create a module
- needed to introduce the Infinispan dependency and Java6.
- it could be loaded using the FQN for the moment, and later on we
could think about a SPI to plugin "short names"
2) define how a single Infinispan CacheManager's lifecycle should be
handled when JNDI is not used
[as noticed here: http://community.jboss.org/thread/155875]
- The initialize(..) method of the DirectoryProvider should pass a
reference to a started CacheManager,
I see we have now a BuildContext passed in, could we use this to
pass a reference to a loosely coupled CacheManager?
- the SearchFactory should start a cacheManager before the DirectoryProviders
- it should stop the cachemanager
- we should enable a configuration property to name the Infinispan
configuration file
3) In case JNDI is used, provide needed configuration for it (name?)
This provides a usable distributed index, but then other components
should be integrated:
* Share the cachemanager used for the index with the one eventually
setup as second level cache
* Share Infinispan's JGroups channel with the JGroups backend of
Hibernate Search to setup master/slave configurations
* Share Hibernate's database as a cachestore for the index
I'm in need of ideas about how to integrate the lifecycle of the
CacheManager, if someone could help on that I could assemble some of
the other pieces.
Cheers,
Sanne
14 years, 2 months
Fwd: Topic reply notification - "Could not register synchronization for container transaction"
by Sanne Grinovero
Hi Emmanuel,
do you have any clue about this issue in the forum thread mentiond below?
I thougth they might be missing the transactionmanager registration, but a)
I'd expect a different exception b)there's no mention of Glassfish in the
Hibernate core documentation.
Is it possible that in glassfish it's not allowed to start a transaction at
all in a user created thread?
Cheers,
Sanne
---------- Messaggio inoltrato ----------
Da: "Hibernate Forums" <do-not-reply(a)jboss.org>
Data: 28/set/2010 15:24
Oggetto: Topic reply notification - "Could not register synchronization for
container transaction"
A: "s.grinovero" <sanne.grinovero(a)gmail.com>
Hello s.grinovero,
You are receiving this notification because you are watching the topic,
"Could not register synchronization for container transaction" at
"Hibernate Community". This topic has received a reply since your last
visit. You can use the following link to view the replies made, no more
notifications will be sent until you visit the topic.
If you want to view the newest post made since your last visit, click the
following link:
https://forum.hibernate.org/viewtopic.php?f=9&t=1004515&p=2436306&e=2436306
If you want to view the topic, click the following link:
https://forum.hibernate.org/viewtopic.php?f=9&t=1004515
If you want to view the forum, click the following link:
https://forum.hibernate.org/viewforum.php?f=9
If you no longer wish to watch this topic you can either click the
"Unsubscribe topic" link found at the bottom of the topic above, or by
clicking the following link:
https://forum.hibernate.org/viewtopic.php?uid=48308&f=9&t=1004515&unwatch...
--
Hibernate Community Forum
http://forum.hibernate.org/
14 years, 2 months