We look it up using the component environment path name
(java:comp/env/jdbc/rollerdb).
You probably will need to create a jboss-web.xml file in the WEB-INF
dir. Within this you need to define a resource-ref at the right point
within that file. This is to form the association between the two names.
<jboss-web>
<!-- ... -->
<resource-ref>
<res-ref-name>jdbc/rollerdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:/RollerDS</jndi-name>
</resource-ref>
<!-- ... -->
</jboss-web>
See
http://docs.jboss.com/jbossas/admindevel326/html/ch3.chapter.html
--a.
[EMAIL PROTECTED] wrote:
Hi All,
I've been trying to get Roller working with my current system to no avail.
My latest effort has been to install using the instructions at
:http://www.jboss.ws/roller_jboss/index.html
In order to keep this short I won't repeat the steps here, but one of the
instructions said:
======================================
1. Finally, remove the following content from the Roller’s web.xml file
(i.e. C:\jboss_roller\jboss-3.2.5
\server\default\deploy\roller.ear\roller.war\WEB-INF\web.xml):
<!-- TOMCAT RESOURCE REF -->
<resource-ref>
<res-ref-name>jdbc/rollerdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
===================================
I did the above (I'm using Jetty anyway).
Thing is, I get the following error, repeated ad-infinitum:
something like "cannot connect to jdbc/rollerdb"
Obviously I need to define a connection between the jdbc/rollerdb and the
RollerDS that has been created for JBoss. Any suggestions how?
Any suggestions how to get around this issue?
Or is there another document I can look at?
Thanks a lot for your help in advance.
Cheers
Melroy
Melroy Drego
02-9466-7545
====================================================
"Give me a stock clerk with a goal and I'll give you a man who will make
history. Give me a man without a goal and I'll give you a stock clerk."
~ J.C. Penney, Founder of the J.C. Penney stores.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
------------------------------------------------------------------------
This e-mail is sent by or on behalf of the named sender identified above.
If:
(a) you do not wish to receive any e-mail marketing material from this
person in the future, please forward the contents of this email to
[EMAIL PROTECTED] with the word "unsubscribe" in the
subject box.
(b) you wish to unsubscribe from all central e-mail marketing lists
used by our business, please forward the contents of this e-mail to
[EMAIL PROTECTED] with the message "unsubscribe
from all central e-mail marketing lists" in the subject box.
If you do not forward the contents of this e-mail with your
unsubscription then it may not be able to be implemented.
The information contained in this e-mail communication may be
confidential. You should only read, disclose, re-transmit, copy,
distribute, act in reliance on or commercialise the information if you
are authorised to do so. If you are not the intended recipient of this
e-mail communication, please immediately notify us by e-mail to
[EMAIL PROTECTED], or reply by e-mail direct to the sender and then
destroy any electronic and paper copy of this message. Any views
expressed in this e-mail communication are those of the individual
sender, except where the sender specifically states them to be the views
of a member of the National Australia Bank Group of companies. Any
advice contained in this e-mail has been prepared without taking into
account your objectives, financial situation or needs. Before acting on
any advice in this e-mail, National Australia Bank Limited recommends
that you consider whether it is appropriate for your circumstances. If
this e-mail contains reference to any financial products, the National
recommends you consider the Product Disclosure Statement (PDS) or other
disclosure document before making any decisions regarding any products.
The National Australia Bank Group of companies does not represent,
warrant or guarantee that the integrity of this communication has been
maintained nor that the communication is free of errors, virus or
interference.