-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok here is something that you're going to run into, and I hope in 
advance that the WiTango folks will not get mad at me for saying this, 
because in effect it's not their fault they didn't design it this way, 
they inherited it.

In WiTango 4 it is simply not possible to pass an instantiated bean to 
another bean, especially a connection in one to another.  I ran into 
this issue when I was writing CoreSpin (a massive Tango app 80% driven 
by beans).  While the documentation says you can, you can't.  They never 
implemented the JavaBean support correctly.  It was done half ass.

The workaround is for your java guy to write a bean which extends your 
GeocodeBean.  it's purpose is to handle all the data communication 
between WiTango and any other beans you need to deal with.  This means 
that WiTango only talks to this bean by sending it strings of what 
you're looking for, and that bean takes charge of instantiating the 
Geocode bean, instantiating the LBS bean, passing it the data, getting 
the data back, setting the data into a string and spitting it back to 
WiTango so that Tango knows how to deal with it.

Passing objects around in WiTango from one bean to the other just 
doesn't work.  you can't pass arrays either, and you also can't pass 
mixed types of variables... meaning you can't work with a method in your 
bean which has a mixture of Strings and ints like this:

public String foo(String a, int b)
{
... do stuff here ...
return theString;
}

First the WiTango editor will freak and show crap in the method, second 
the WiTango app server will CRASH.

I'm hoping all this stuff is taken care of in the T5 editor, but since I 
can't look at it and test it yet, I have NO IDEA what to expect.

R

On Thursday, August 1, 2002, at 11:16 AM, Clay Lehman wrote:

>
> Hi,
>
>> Forget external actions.
> Forgotten
>
> First, what is your java bean doing?
> On Sun platforms we have a LBS (Location Based Software) system that
> does things like return latitude / longitude when given an address. The
> bean I'm having trouble with makes the connection with the host (host
> name and port)and subsequent beans use the connection established by the
> connection bean. My 'javabeans' guy will probably be able to say this in
> a more accurate/technical way but he's not in quite yet.
>
> The GeocodeBean instantiates ok but since the connection to the LBS
> system has not happened the return values (lat/lon, status, etc.) are
> null, etc.
>
> Second do you have it packed in a jar with the META-INF that has the
> bean info with it?
>
> It is in a jar file - I don't know about the META-INF - I'll check when
> my guy comes in.
>
> I've been successful using <@URL> etc. with JSPs that call these same
> beans. I just want to do away with the JSPs.
>
>
> Clay Lehman
>
> -----Original Message-----
> From: Robert Sfeir [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 01, 2002 7:51 AM
> To: Multiple recipients of list witango-talk
> Subject: Re: Witango-Talk: JavaBeans help from the Tango Titans
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Also where did you put your java bean?  Did you add it to your classpath
>
> and restart the Tango app server?
>
> R
> On Thursday, August 1, 2002, at 10:35 AM, Clay Lehman wrote:
>
>> Hi,
>> With the help of several Tango Titans I've managed to solve all of my
>> XML challenges. Now for challenge #2: JavaBeans. I've been using the
>> Create Object Instance with call Methods and have a problem
>> 'instantiating' one of the beans - the errors are -808: Cannot create
>> native object and -622: The specified object instance could not be
>> created. Any ideas? I've tried another approach using External Actions
>> specifying 'Java Bean' but can't find sufficient documentation (re
> Path,
>> etc.). Suggestions?
>>
>> Thanks in advance,
>> Clay Lehman
>>
> ________________________________________________________________________
>> TO UNSUBSCRIBE: send a plain text/US ASCII email to
> [EMAIL PROTECTED]
>>                 with unsubscribe witango-talk in the message body
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (Darwin)
>
> iD8DBQE9SUr2K/1j/4sLi/ARArBgAJwK0QJCew/lEhnVXLhVY5waQKx+UwCcCk+/
> ODrf8MPMTr5m6SL6bccpQHQ=
> =BKjx
> -----END PGP SIGNATURE-----
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE9SVViK/1j/4sLi/ARAmN5AJ92nVbfY3AI3fbm9TQHdeGSUlV9UQCfVO9R
UyjGoRG0FX7APcbFKi9vRwI=
=trtO
-----END PGP SIGNATURE-----

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to