You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Caio Zanchetti <ca...@gmail.com> on 2007/06/04 00:13:16 UTC

Re: Desktop apps with iBatis

Hello, tank you for reply.

Would be possible to post a some code that shows how to initialize this
application context?

My application must have an ApplicationContext object with loaded
definitions of applicationContext.xml file, is that correct?

I tried this two alternatives: To implement ApplicationContextAware class.
And load the definitions of applicationContext.xml file, through some
classes like GenericApplicationContext and XmlBeanDefinitionReader (working
together). But I did not get no success.

Regards,

-- 
Claudiomir G. Zanchetti (Caio)
Sun Certified Programmer for the Java 2 Plataform, Standard Edition 5.0
"Use com sabedoria a mente e energia para beneficiar ambos, você mesmo e os
outros." -Dr. Jigoro Kano

Re: Desktop apps with iBatis

Posted by Zoran Avtarovski <zo...@sparecreative.com>.
Have you seen this:

http://spring-rich-c.sourceforge.net/

Z.

> Hello, tank you for reply.
> 
> Would be possible to post a some code that shows how to initialize this
> application context?
> 
> My application must have an ApplicationContext object with loaded
> definitions of applicationContext.xml file, is that correct?
> 
> I tried this two alternatives: To implement ApplicationContextAware class.
> And load the definitions of applicationContext.xml file, through some
> classes like GenericApplicationContext and XmlBeanDefinitionReader (working
> together). But I did not get no success.
> 
> Regards,



Re: Desktop apps with iBatis

Posted by Caio Zanchetti <ca...@gmail.com>.
About the context, it worked fine, thank you!

But I have a new problem....
I would need to execute an sql statement created by the user. I will not
have this statement mapped in my xml file. How can I do that?

I would like to know to, how can I get the meta-data of a result (like the
getMetadata() in resultset object (JDBC))?


Thank's
Caio.





On 6/3/07, Chris Lamey <cl...@localmatters.com> wrote:
>
>  Hello,
>
> The spring docs are very well done, here's their example of creating a
> containter/context:
>
>
> http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-instantiation
>
> I've never needed anything beyond the Spring online docs and their source
> code, but there are a lot of Spring books out there you might want to look
> at.
>
> If you're starting from scratch on your project, then looking at the
> Spring Rich Client Platform is something I would encourage.
>
> Cheers,
> Chris
>
>
>
> -----Original Message-----
> From: Caio Zanchetti [mailto:caio.zanchetti@gmail.com<ca...@gmail.com>
> ]
> Sent: Sun 6/3/2007 4:13 PM
> To: user-java@ibatis.apache.org; Chris Lamey
> Subject: Re: Desktop apps with iBatis
>
> Hello, tank you for reply.
>
> Would be possible to post a some code that shows how to initialize this
> application context?
>
> My application must have an ApplicationContext object with loaded
> definitions of applicationContext.xml file, is that correct?
>
> I tried this two alternatives: To implement ApplicationContextAware class.
> And load the definitions of applicationContext.xml file, through some
> classes like GenericApplicationContext and XmlBeanDefinitionReader
> (working
> together). But I did not get no success.
>
> Regards,
>
> --
> Claudiomir G. Zanchetti (Caio)
> Sun Certified Programmer for the Java 2 Plataform, Standard Edition 5.0
> "Use com sabedoria a mente e energia para beneficiar ambos, você mesmo e
> os
> outros." -Dr. Jigoro Kano
>
>


-- 
Claudiomir G. Zanchetti (Caio)
Sun Certified Programmer for the Java 2 Plataform, Standard Edition 5.0
"Use com sabedoria a mente e energia para beneficiar ambos, você mesmo e os
outros." -Dr. Jigoro Kano

RE: Desktop apps with iBatis

Posted by Chris Lamey <cl...@localmatters.com>.
Hello,

The spring docs are very well done, here's their example of creating a containter/context:

http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#beans-factory-instantiation

I've never needed anything beyond the Spring online docs and their source code, but there are a lot of Spring books out there you might want to look at.

If you're starting from scratch on your project, then looking at the Spring Rich Client Platform is something I would encourage.

Cheers,
Chris


-----Original Message-----
From: Caio Zanchetti [mailto:caio.zanchetti@gmail.com]
Sent: Sun 6/3/2007 4:13 PM
To: user-java@ibatis.apache.org; Chris Lamey
Subject: Re: Desktop apps with iBatis
 
Hello, tank you for reply.

Would be possible to post a some code that shows how to initialize this
application context?

My application must have an ApplicationContext object with loaded
definitions of applicationContext.xml file, is that correct?

I tried this two alternatives: To implement ApplicationContextAware class.
And load the definitions of applicationContext.xml file, through some
classes like GenericApplicationContext and XmlBeanDefinitionReader (working
together). But I did not get no success.

Regards,

-- 
Claudiomir G. Zanchetti (Caio)
Sun Certified Programmer for the Java 2 Plataform, Standard Edition 5.0
"Use com sabedoria a mente e energia para beneficiar ambos, você mesmo e os
outros." -Dr. Jigoro Kano