Now that I read Michael Campbell's email I understand the problem, my
actual dao.xml file is this:
http://www.ibatis.com/dtd/dao-2.dtd";>
implementation="mil.osd.dmdc.deers.web.bwe.dao.jdbc.ControlTableDao"/>
value="jdbc:oracle:thin:@
Michael,
You are absolutely right. I did have an entry for JNDI. I added the
context for the standalone unit test application in my web application's
dao.xml. I'll try using a separate configuration file for my unit test
application.
Thanks,
Richard
Michael Campbell wrote:
On 9/27/05, Ric
Nathan,
Thanks for responding. Here is the file that I use to configure the
DaoManager.
http://www.ibatis.com/dtd/dao-2.dtd";>
value="jdbc:oracle:thin:@myhost:1521:mysid"/>
implementation="mil.osd.dmdc.deers.web.bwe.dao.jdbc.PlanManagerDao"/>
Well I am just guessing here but it appears that you have set up your
datasource as a jndi lookup.
We really need to see your config file to give a better solution.
Nathan
On Sep 27, 2005, at 5:19 PM, Yee, Richard K, CTR,, DMDCWEST wrote:
Hi,
I'm trying to use iBatis DAO in a standalone Jav
Michael,
thanks for replying. However, no, we are not using Spring. Just a class
that extends JUnit TestCase.
-Richard
Michael Campbell wrote:
On 9/27/05, Yee, Richard K, CTR,, DMDCWEST
<[EMAIL PROTECTED]> wrote:
Hi,
I'm trying to use iBatis DAO in a standalone Java class but am getting
Clinton,
At OpenSymphony a lot of projects,
including WebWork, use Confluence for documentation. We found the best practice
is to export the documentation to HTML and PDF just before every release and
then include those _exported_
pages on the website. This basically “tags” the documents s
On 9/27/05, Yee, Richard K, CTR,, DMDCWEST
<[EMAIL PROTECTED]> wrote:
> Hi,
> I'm trying to use iBatis DAO in a standalone Java class but am getting a
> JNDI NoInitialContext error when I try to configure the DaoManager. I am
> using a SIMPLE datasource and am specifying the username, driver, etc.
Hi,
I'm trying to use iBatis DAO in a standalone Java class but am getting a
JNDI NoInitialContext error when I try to configure the DaoManager. I am
using a SIMPLE datasource and am specifying the username, driver, etc. This
is the error:
Exception in constructor: testGetPcmFacility
(com.ibatis.d
On 9/27/05, Niels Beekman <[EMAIL PROTECTED]> wrote:
>
> You could try Proxool:
> http://opensource2.atlassian.com/confluence/oss/display/IBATIS/How+do+I+connect+using+a+user%27s+credentials
>
>
>
> I have never used it and it seems an inactive project, but you could try it…
proxool is active, it
I have been down that path, and used proxool to do it.
I would *not* recommend doing this.
It will be easier to change the procedures to allow passing in the user id.
We did something similar, in that we made them default to USER if a
user parameter is not passed in, and if the user is the iBATI
Thnx Niels...
Let me try it and give you the
feedback.
Vijai
- Original Message -
From:
Niels Beekman
To: user-java@ibatis.apache.org
Sent: Tuesday, September 27, 2005 2:36
PM
Subject: RE: Passing logged in Username
and password to iBATIS
You coul
Ack! Nevermind... This was another painful lesson in using someone else's config file. My co-worker had set
in the config file due to some needs with a different db he was working with. I
would complain that iBatis didn't give me any help, but I suppose that's exactly what that configuration is
You could try Proxool: http://opensource2.atlassian.com/confluence/oss/display/IBATIS/How+do+I+connect+using+a+user%27s+credentials
I have never used it and it seems an
inactive project, but you could try it…
Niels
From: Vijai Senthil
Padmanabhan Kalaiyarasi [mailto:[EMA
Hi,
I am working on a re-enginerring
project from Oracle forms to J2EE.
There are several DB procedures
using the USER variable of Oracle.
So I am forced to get a
connection for the logged in Username and password.
How can I tell the iBATIS to
execute my statements in
No helper class is needed. Larry's post is correct - getResourceAsReader reads from the classpath. If you do this:
Resources.getResourceAsReader("resources/daoConfig.xml");
Then make sure that this file exists:
.../web-inf/classes/resources/daoConfig.xml.
Jeff Butler
On 9/27/05, Carlos de l
Thanks for the idea... unfortunately it didn't work. Any other ideas?
The postgres install I'm using is "PostgreSQL 7.3.4-RH on i386-redhat-linux-gnu, compiled by GCC i386-redhat-linux-gcc
(GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)". I've tried the jdbc2 and jdbc3 jars that came with my local
What if we ditched the documentation altogether and started using the wiki as our primary documentation?
* We could update it quicker and easier
* Anyone could update it
* Confluence has a PDF export feature
Thoughts?
Clinton
On 9/27/05, Dan Bradley <[EMAIL PROTECTED]> wrote:
A couple suggestion
A couple suggestions that I think would really help on the documentation front:
1) Take all the documentation that's currently available only in PDF
and make it also available in an HTML format
2) Host the current API javadocs online
And then, of course, more user participation in the Wiki. Repl
Hi all,
I've been working with iBATIS and find it very good. The documentation
has not the same high quality like the framework. I wonder if there is
any document like e.g. iBATIS best practices.
I'm reading the Developer Guide (DevGuide.pdf). I miss figure 1 on page
three. Is it a converting pro
bufff! i dont know how to make it.
i never have been made one help class.
can you help me?
is one normal class? what returns this class.
can you help me please?
thanks
2005/9/27, Priyesh Mashelkar <[EMAIL PROTECTED]>:
There is one solution.
You will need a helper class in the resource package whi
There is one solution.
You will need a helper class in the resource package which
will read the file using the following code:
this.getClass().getResource("daoConfig.xml")
The helper class has to exist in the same package as the
xml file to be able to find the xml file.
Regards,
Priyesh
But i have one great problem.
i am using WSAD for develop the application.
i must to build one ear file for deploy it into the WAS.
i dont know the absolute path into the server for oput it into my xml files.
do you know any solution?
2005/9/27, Larry Meadors <[EMAIL PROTECTED]>:
This line is wr
This line is wrong:
Resources.getResourceAsReader("../../resources/daoConfig.xml");
Resources are absolute names based on the classpath. So, if you put
your daoConfig.xml file in a resources package, you would use this
instead:
Resources.getResourceAsReader("/resources/daoConfig.xml");
Larry
Hello i am new using ibatis.I am working, making, one j2ee applicaction.the packeages are:com.domain.resourcescom.domain.ibatis.sqlmapdao
in the sqlmapdao package i have one class, DaoConfig.java with this.
public static DaoManager getDaoManager(){DaoManager daoManager=null;try{Reader reader = Reso
Hello and thanks in advice
I'm using ibatis java 2.1.5.
I've found in the mail-archive a link to a map example that use
discriminator tag inside a resulMap
The file is named Documents.xml
I've tried to build an example over this map, but i'm getting errors
during the building of daoManager
25 matches
Mail list logo