Justin,

> I am in a very similar situation here.
Very interesting.. are you using U2,RedBack and ColdFusion?
What is your current setUp?.. Hope you are NOT using COM..YUCK!.

Well.. RedBack has 2 programming environments(UniBasic and UniJ).
Regardless of the above, you can talk to RedBack via a JavaBean
native interface and ColdFusion. I am at home..dont have the code with me..


Below is the Brief Java Code
Hope this helps.

Joe Eugene

public class RedBackObject{

  RedBeans.Connection redConn;
  RedBeans.RedObject rObj;

  public void openObj(String objCon,String objName) throws
RedBeans.RbException{

        redConn = new RedBeans.Connection(objCon);
        rObj = new RedBeans.RedObject(redConn, objName);
        rObj.open();

  }//end openObj()


  public void setProperty(String strKey, String strValue){
        rObj.setProperty(strKey, strValue);
  }//end setProperty()

  public void callMethod(String redMethod) throws RedBeans.RbException{

    rObj.callMethod(redMethod);// call RedBack Object Method

  }//end call Method

  public String getPropertyString(String propName){
        redResultString = rObj.getProperty(propName);
        return redResultString;
  }//end getPropertyString()


  public void closeObj(){
   redObjCon=null;
   redObjName=null;
   redConn=null;
   rObj=null;
  }//end closeObj

}//end

CF Code..
<cfscript>
rbo = createObject("Java","RedBackObject");
rbo.openObj("rbo Account in rgi.ini","LIBRARY:OBJECT");
rbo.setProperty("FirstName","Hello");
rbo.callMethod("someMethod");
str=rbo.getProperty("propertyName");
</cfscript>
<cfdump var="#str#">


----------------------------------------------------------------------------
---

> -----Original Message-----
> From: Justin Balog [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 23, 2003 5:26 PM
> To: '[EMAIL PROTECTED]'
> Subject: OL [cfc dev] - JavaBean interface to red back
>
>
> Joe,
>
> I am in a very similar situation here.  Any chance I might be able to look
> at the JB interface to the Red Back Objects?  That's really very
> interesting. Just curious how you have that working.
>
> Thanks,
>
> Justin

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to