It all looks pretty good.

One small point (and this is not causing your problem). You can simply call 
getBaseRequest() to
get your SJRequest in your client-side plugin. No need to go to CommandCentral.

Send me your project or give me access to your archive and I'll try testing it out 
myself. As I've
said, I've never fully tested some of the stuff you're using, so there could be some 
bugs in
there.

--Rob


--- Matthew Johnston <[EMAIL PROTECTED]> wrote:
> I was successful at deploying my custom object to SJDeploymentDescriptor and 
> performing a maptype on it in your new connectToServer method.
> 
> No errors or exceptions on both the server and client side.
> 
> I think my object is coming thru or I should've seen an exception, however, 
> my object is not coming thru with any values that were assigned to it from 
> the server side.
> 
> I've included an example of what I'm doing, maybe I'm doing it the wrong way 
> or calling the wrong method???
> 
> example:
> 
> Client side:
> 
> public void actionPerformed(GUIContext context) {
>         //context.displayErrorMessage("Start", true);
> 
>         CommandCentral oCommand = CommandCentral.getInstance();
> 
>         SJRequest request = getBaseRequest();
> 
>         SJResponse response = null;
> 
>         //context.displayErrorMessage("Begin request to archive = " + 
> request.getArchiveName(), true);
> 
>         try{
>             response = sendRequest(PluginSpecs.PLUGIN_GET_LINKED_LABELS, 
> request);
>             //context.displayErrorMessage("Request sent!", true);
>         }
>         catch(SourceJammerConnectionException ex)
>         {
>             //throw new LinkedLabelClientException(ex.getMessage());
> 
>             context.displayErrorMessage("connect Error - " + 
> ex.getMessage(), true);
>         }
>         catch(GUICommandException ex)
>         {
>             context.displayErrorMessage("command Error - " + 
> ex.getMessage(), true);
> 
>             //throw new LinkedLabelClientException(ex.getMessage());
>         }
>         catch(Exception ex)
>         {
>             context.displayErrorMessage("general Error - " + 
> ex.getMessage(), true);
> 
>             //throw new LinkedLabelClientException(ex.getMessage());
>         }
> 
>         LinkedLabelList linkedlabellist = 
> (LinkedLabelList)response.objectValue(PluginSpecs.KEY_LINKED_LABEL_LIST);
> 
>         LinkedLabelControllerDialog dlgLinkedLabelController = new 
> LinkedLabelControllerDialog(
>             oCommand.getRootAppFrame() , linkedlabellist);
>         dlgLinkedLabelController.showDialog(oCommand.getRootAppFrame());
>     }
> 
> 
> server side:
> 
> public void actionPerformed(SJRequest request, SJResponse response, 
> ArchiveContext arch) {
> 
> //create simple instance of linkedlabellist and put the object to the 
> response object for testing
> 
>         LinkedFile linkedfile = new LinkedFile("FileName1.ext");
>         LinkedLabel linkedlabel = new LinkedLabel("LabelNameFromServer", 
> linkedfile);
>         LinkedLabelList linkedlabellist = new LinkedLabelList(linkedlabel);
> 
> 
>         response.putObject(PluginSpecs.KEY_LINKED_LABEL_LIST, 
> linkedlabellist);
>     }
> 
> _________________________________________________________________
> Express yourself with the new version of MSN Messenger! Download today - 
> it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 



        
                
__________________________________
Do you Yahoo!?
Yahoo! Domains � Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer 


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
SourceJammer-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sourcejammer-devel

Reply via email to