Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Help with setting up remote facade w/ coldspring
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Josh Grauer  
View profile  
 More options Jun 8, 10:29 pm
From: Josh Grauer <jagge...@gmail.com>
Date: Mon, 8 Jun 2009 19:29:37 -0700 (PDT)
Local: Mon, Jun 8 2009 10:29 pm
Subject: Help with setting up remote facade w/ coldspring
My application is using ColdSpring 1.2 and Model-Glue Unity.  I have a
remoteFacade.cfc that I'd like to have ColdSpring setup on application
start.  What I've done is define the remoteFacade bean and set lazy-
init=false.  I also have it pass other required beans into the facade
using constructor arguments.  The problem I've run into is that if I
try to call a method within the facade that uses one of those other
beans it fails with error:

Element INSERTBEANNAMEHERE is undefined in a Java object of type class
[Ljava.lang.String;.

Here is how I have the remoteFacade bean configured in ColdSpring.xml:

<bean id="remoteFacade" class="MDS.model.remoteFacade" lazy-
init="false">
  <constructor-arg name="contentGateway"><ref bean="contentGateway" /

></constructor-arg>

</bean>

And here's how my remoteFacade.cfc looks:

<cfcomponent displayName="Remote Facade" output="false">

  <cffunction name="init" access="public" returnType="any"
output="false">
    <cfargument name="contentGateway" />
    <cfset VARIABLES.contentGateway = ARGUMENTS.contentGateway />
    <cfreturn this />
  </cffunction>

  <cffunction name="getTest" access="remote" returnType="any"
output="false">
    <cfreturn VARIABLES.contentGateway.getTest() />
  </cffunction>

</cffunction>

Any ideas why the contentGateway bean is not being injected into my
remoteFacade?  I've searched but I've mostly seen examples of having
ColdSpring auto generate a remote proxy, which I didn't want to do
because I have other methods that I want included in the facade that
can't be auto generated.

- Josh


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Mandel  
View profile  
 More options Jun 9, 1:53 am
From: Mark Mandel <mark.man...@gmail.com>
Date: Tue, 9 Jun 2009 15:53:02 +1000
Local: Tues, Jun 9 2009 1:53 am
Subject: Re: [coldspring-users] Help with setting up remote facade w/ coldspring

When remoting comes in, it creates a new instance of the defined CFC, so it
has no knowledge of ColdSpring at that point.

In a situation where I want to have a very specific API for my remote
facade, I create it with only public methods inside ColdSpring, and then use
ColdSpring to expose those methods through a RemoteFactoryBean, that way you
have full control of the API, but it is always ColdSpring aware.

Mark

--
E: mark.man...@gmail.com
W: www.compoundtheory.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josh Grauer  
View profile  
 More options Jun 9, 2:32 pm
From: Josh Grauer <jagge...@gmail.com>
Date: Tue, 9 Jun 2009 11:32:34 -0700 (PDT)
Local: Tues, Jun 9 2009 2:32 pm
Subject: Re: Help with setting up remote facade w/ coldspring
Ok, that makes sense.  I went in and changed the methods in
remoteFacade.cfc to public and then defined my remote proxy in
ColdSpring.  The only part I got tripped up on is the property
"beanFactoryName" that it asks for.  I have no idea what Model-Glue
has defined it as.  I saw an example on Ray Camden's blog that just
left that bit out, so I tried it without and it's working great.

Thanks for the quick response and help!

- Josh

On Jun 8, 10:53 pm, Mark Mandel <mark.man...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google