I'm about to write a new persistence manager (JDBCAttributePersistenceManager) 
for XMBeans in JBoss 3.2.6+ that persists attributes of an XMBean to a database 
(JDBC). 

The manager shall use a data source (standard JBoss data source) and this 
should be configured in the conf/jboss-service.xml under the 
AttributePersistenceManager. My initial problem is how I should be able to 
securely get a hold of a data source within my PersistenceManager class? 
Looking it up from the Context, as normally is the case, presents some 
problems. 

(The actual problem is that I cannot securely get a hold of a data source in my 
class since the data source has not been bound yet when the 
AttributePersistenceManager is invoking operations on my manager (i.e. load()). 
I've tried to make my .sar (a XMBean) be dependent on 
jboss.jca:service=DataSourceBinding,name=OracleDS but this will only make sure 
that my XMBean is started after the OracleDS is bound. Operations like load() 
is called early at JBoss startup. Also, I've tried making the 
AttributePersistenceManager to be dependent on the same data source, resulting 
in that JBDCAttributePersistenceManager is not yet started).

Anyone that can help me?

Regards
Carl


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3948295#3948295

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3948295


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to