Again, please CC the user list.  What exceptions are you getting...."I'm
getting exceptions" isn't very helpful.  Unfortunately I don't have any
examples of initializing Spring from a main method, however I'm sure someone
on the list does.

Chad

-----Original Message-----
From: Bak Attila (SDA) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 26, 2005 4:14 AM
To: Chad Brandon
Subject: Test Main for Spring

        public static void main(String[] args) {
                
                try{
                System.out.println("Started");
                BeanFactory factory = new XmlBeanFactory(new
FileInputStream("beanRefFactory.xml"));
                ClassPathXmlApplicationContext ctx =
(ClassPathXmlApplicationContext)factory.getBean("beanRefFactory");
                System.out.println("Finished");
                } catch(Exception ex)
                {
                        ex.printStackTrace();
                }
        }

Hi I would like to test the generated code. But I get exceptions when I
run the system. Can you tell me what I should modify in the
appContext.xml..
Like the dataSource, jndi etc.

Please help.

If you could send me a sample that contains Main (like the test above)
that would be really great!

Regards,
attila




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to