[JBoss-dev] Guessing datasource name

2006-02-01 Thread Bill Burke
In EJB3 I'm trying to guess the datasource MBean name so that I can 
create a dependency on it.  I do this based on the JNDI name passed into 
persistence.xml.  So, if the datsource is java:/DefaultDS I assume 
that there is a:


jboss.jca:service=DataSource,name=DefaultDS mbean available.

Is this a valid assumption?

Thanks,

Bill

--
Bill Burke
Chief Architect
JBoss Inc.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development


Re: [JBoss-dev] Guessing datasource name

2006-02-01 Thread Bill Burke



Adrian Brock wrote:

e.g. at least firebird has its own rar that is deployed this way.



Yes, this *exactly* where the user was complaining.  EJB3 assumes the 
Datasource MBean name.




Don't blame me for the different names, this is legacy rubbish
that dates back to 2.4.x

They should really all be just:
jboss.jca:service=ConnectionManager,name={jndiName}

If somebody doesn't use a -ds.xml (not recommended, but it
is the only way to use your own pool implementation) then who knows
what they called the MBean?...



Thanks,

Bill


--
Bill Burke
Chief Architect
JBoss Inc.


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development