Rookie ask: What is a plant?

  Abstract: Rookie ask: What is a plant? 


  EJB connection pool and the use of the time should be used factory class, which Big Brother can tell me what is the factory?    The more detailed the better explanation, thank you! 



  Is used to manufacture products, the specific reference to the factory design pattern mode 



  For example, in tomcat in the server.xml configuration file when the connection pool:    Type = "org.apache.catalina.UserDatabase" 
  Description = "User database that can be updated and saved" 
  Factory = "org.apache.catalina.users.MemoryUserDatabaseFactory" 
  Pathname = "conf / tomcat-users.xml" /> 
  Of which: factory = "org.apache.catalina.users.MemoryUserDatabaseFactory" is to do what is the use? 



  Halo, is not familiar with the java began with a tomcat. 
  First learn j2se Zailong web bar. 



  We have followed the paste:) 



  Passing, friendship up! 



  Passing, friendship up! 




  A design model, you can look at the design pattern java, I understand it is an interface, its own module abstract it, and then extends it 



  Passing, friendship up! 



  Passing, friendship up! 


  ↑ Back 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags:

Releated Java Articles

Comments

Leave a Reply