Hi,
if I'm right on the discussion,
the datasource is defined at ejb-jar.xml, for instance if you need more that one 
datasource, build a jar file for each datasource that contain the 
correct xml files and eventually the EBs.
With this approach we are able to connet to mySQL for the new application and to the 
AS/400 DB/2 for legacy data without any problem, using 
the same JNDI.


On Fri, 20 Apr 2001 07:40:10 +1200, Toby Allsopp wrote:

>On Thu, Apr 19, 2001 at 08:07:15PM +0100, Ijonas Kisselbach wrote:
>> Yeah no problem what so ever. The following works for BMP as well as CMP
>> beans.
>> 
>> Basically, all you need to do is specify different datasource resource
>> references in your ejb-jar.xml and jboss.xml files, e.g.:
>
>I'm fairly sure that this is only correct for BMP.  CMP uses jaws.xml to
>decide which DataSource to use, and I seem to recall that this element is
>not per-bean.  I don't know much about JBossCMP, so I might be wrong on that.
>
>Toby.
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>


<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Franco Biaggi">
<meta name="GENERATOR" content="Franco Biaggi">
</head>

<body>

<p>&nbsp; </p>

<table BORDER="1" COLS="1" WIDTH="452" BGCOLOR="#FFFF00">
  <tr>
    <td width="446"><font face="Comic Sans MS"><small><small><br>
    <font color="#3333FF"><a href="http://www.ticino.com/usr/fbiaggi/">Franco 
Biaggi</a></font><small><br>
    <font color="#3333FF"><a href="http://www.sisa.ch">SISA Studio Informatica 
SA</a></font><small><small><small> <br>
    </small></small></small><font color="#3333FF">R&amp;D 
Services</font><small><small><small>
    <br>
    </small></small></small><font color="#3333FF">Via Carvina 
1</font><small><small><small> <br>
    </small></small></small><font color="#3333FF">CH-6807 
Taverne</font><small><small><small> <br>
    </small></small></small><font color="#3333FF">Efax +1 801 705 
2839</font></small></small></small><br>
    </small></small></small><font color="#3333FF">Tel. +41 91 935 75 35&nbsp; Fax. +41 
91 935
    75 30</font></small></small></small><br>
    </small></small></small><font color="#3333FF">Sorry for my bad 
english...</font><small><small><small> <br>
</font></td>
  </tr>
</table>
</body>
</html>




_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to