Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A link to "how to write own resource factory" is needed!

 
Roman Rytov
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pls. help if someone know where to read about it.
 
Riaz Mohamed
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this
or i could send u some code which i had written u could understand it ..well one more thing do u want this for internationalization
http://java.sun.com/webservices/docs/ea1/tutorial/doc/WebApp8.html
regards
riaz
 
Roman Rytov
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I might have confued you by my question. Now I'm not sure I need what I asked (or it's possible). The point is the next. In a web-app descriptor you may specify that a servlet must be ran automatically with certain parameters. I wounder if in an ejb descriptor I may place certain records describing which class the server should instanciate to let my beens get objects from the newly created instances. Or simplier to say: if you define a DataSource type under env/jdbs entry then in runtime you may acquire through JNDI a new object then cast it to DataSource type and use it. It's up to the server to instanciate this factory. I want somthing similar but returning my objects. The question is which interface should my factory implement to satisfy conterner's requirements. Or such a possibility doesn't exist and I have to do all the job by my self?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic