Re: Doesn't see all prototypes model?!
Re: Doesn't see all prototypes model?!
- Subject: Re: Doesn't see all prototypes model?!
- From: Chuck Hill <email@hidden>
- Date: Thu, 16 Dec 2004 16:21:19 -0800
Classpath issue. The framework is not getting loaded. Check the path in
Appname.woa/Contents/Windows/CLSSPATH.TXT. Check that the jar for the FW
is really there. Check that the .eomodeld file really is under the
Resources directory in the model.
Chuck
At 06:11 PM 16/12/2004 -0600, James Cicenia wrote:
>This only sees the main model.. not the one in the framework... it only
>loops once.
>
> public void appendJdbcUrl(String additionalUrl) {
> String newDatabaseTag = databaseTagFromUrl(additionalUrl);
> if (newDatabaseTag != null) {
> EOPrototypeSwitcher switcher = new
>EOPrototypeSwitcher(newDatabaseTag.toUpperCase());
> System.out.println("Database Tag: "+newDatabaseTag);
> jdbcUrls.setObjectForKey(additionalUrl, newDatabaseTag);
>
> for (Enumeration en =
>EOModelGroup.defaultGroup().models().objectEnumerator();
>en.hasMoreElements();) {
> EOModel theModel = (EOModel) en.nextElement();
> NSMutableDictionary dict = new
>NSMutableDictionary(theModel.connectionDictionary());
> String oldUrl = (String) dict.objectForKey("URL");
> String replacementUrl = (String)
>jdbcUrls.objectForKey(databaseTagFromUrl(oldUrl));
> if (replacementUrl != null) {
> dict.setObjectForKey(replacementUrl, "URL");
> theModel.setConnectionDictionary(dict);
>
> System.out.println("Override EOModel URL. New url is: "
> + theModel.connectionDictionary().objectForKey(
> "URL"));
> }
> switcher.updatePrototypes(theModel);
> EOFJDBCConnectionAnalyzer analyzer = new
>EOFJDBCConnectionAnalyzer(theModel.connectionDictionary());
> }
> }
> }
>
>any thoughts?
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Webobjects-dev mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
e.net
>
>This email sent to email@hidden
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden