Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

23.10. Special components

Certain special Seam component classes are installable multiple times under names specified in the Seam configuration. For example, the following lines in components.xml install and configure two Seam components:
<component name="bookingDatabase"
          class="org.jboss.seam.core.ManagedPersistenceContext">
    <property name="persistenceUnitJndiName">java:/comp/emf/bookingPersistence</property>
</component>

<component name="userDatabase"
          class="org.jboss.seam.core.ManagedPersistenceContext">
    <property name="persistenceUnitJndiName">java:/comp/emf/userPersistence</property>
</component>
The Seam component names are bookingDatabase and userDatabase.
<entityManager> , org.jboss.seam.core.ManagedPersistenceContext
Manager component for a conversation scoped managed EntityManager with an extended persistence context.
  • <entityManager> .entityManagerFactory — a value binding expression that evaluates to an instance of EntityManagerFactory.
    <entityManager> .persistenceUnitJndiName — the JNDI name of the entity manager factory, default to java:/ <managedPersistenceContext> .
<entityManagerFactory> , org.jboss.seam.core.EntityManagerFactory
Manages a JPA EntityManagerFactory. This is most useful when using JPA outside of an EJB 3.0 supporting environment.
  • entityManagerFactory.persistenceUnitName — the name of the persistence unit.
See the API JavaDoc for further configuration properties.
<session> , org.jboss.seam.core.ManagedSession
Manager component for a conversation scoped managed Hibernate Session.
  • <session> .sessionFactory — a value binding expression that evaluates to an instance of SessionFactory.
    <session> .sessionFactoryJndiName — the JNDI name of the session factory, default to java:/ <managedSession> .
<sessionFactory> , org.jboss.seam.core.HibernateSessionFactory
Manages a Hibernate SessionFactory.
  • <sessionFactory>.cfgResourceName — the path to the configuration file. Default to hibernate.cfg.xml.
See the API JavaDoc for further configuration properties.
<managedQueueSender> , org.jboss.seam.jms.ManagedQueueSender
Manager component for an event scoped managed JMS QueueSender.
  • <managedQueueSender> .queueJndiName — the JNDI name of the JMS queue.
<managedTopicPublisher> , org.jboss.seam.jms.ManagedTopicPublisher
Manager component for an event scoped managed JMS TopicPublisher.
  • <managedTopicPublisher> .topicJndiName — the JNDI name of the JMS topic.
<managedWorkingMemory> , org.jboss.seam.drools.ManagedWorkingMemory
Manager component for a conversation scoped managed Drools WorkingMemory.
  • <managedWorkingMemory> .ruleBase — a value expression that evaluates to an instance of RuleBase.
<ruleBase> , org.jboss.seam.drools.RuleBase
Manager component for an application scoped Drools RuleBase. Note that this is not really intended for production usage, since it does not support dynamic installation of new rules.
  • <ruleBase> .ruleFiles — a list of files containing Drools rules.
    <ruleBase> .dslFile — a Drools DSL definition.

 
 
  Published under the terms of the Open Publication License Design by Interspire