Russell wrote:
> Hi Toby ,
>
> No.
>
> I just called ejbcreate .
> I did not understand why it can find my datasource.
>
> below is my ejb-jar.xml and jaws.xml . Maybe you can find something
> weird in the xml file
Ah, you're using CMP. In that case you don't need the resource-ref
stuff, only the <datasource> tag in jaws.xml. Everything is working
fine, just remove the resource-ref bits to get rid of the warning.
You only use the resource-ref bits when you need to refer to the
datasource in your bean code.
Toby.
...
> Toby Allsopp wrote:
>
>> On Thu, Apr 19, 2001 at 11:08:27AM +0800, Russell wrote:
>>
>>> Hi Toby,
>>>
>>> I have did not see any DefaultDS in my jboss.jcml.
>>> And for second question , i did not why it can inserted record into
>>> table even i have the warning from jboss.
>>> Thanks
>>>
>>> Below is my jboss.jcml file :
>>
>> Yep, there's no DefaultDS there. That's fine, but it leaves the question of
>> why you're getting the right DataSource.
>>
>> Does your code say something like:
>>
>> DataSource ds = (DataSource) new InitialContext().lookup("java:/PostgresDS");
>>
>> by any chance?
>>
>> If not, what does it say?
>>
>> Toby.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user