[jboss-user] [Beginners Corner] - How to create a POJO at the the start of application and att
satya400
do-not-reply at jboss.com
Mon Sep 3 08:04:13 EDT 2007
How to create a POJO at the the start of application and attach it to JNDI automatically?
I am migrating an application from Tomcat to JBoss. In the current application setup, we have a POJO and it is loaded automatically by Tomcat and placed under JNDI ( with a prefix of java:comp/env/) because we have mentioned the bean reference in context.xml along with the required properties.
Is there a way to achieve this in JBoss? I tried to create .beans archive and included in .ear file. Now i could see that the bean is instantiated and all its setter methods are called (evident from log messages). How ever this bean is not placed under JNDI. Also i do not know how to access that instance!
Thanks
Satya
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080465#4080465
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080465
More information about the jboss-user
mailing list