Problems with calling COM+ components from BizTalk 2004 Orchestration
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Problems with calling COM+ components from BizTalk 2004 Orchestration




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problems with calling COM+ components from BizTalk 2004 Orchestration  
Detlef Hahn


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11:06 PM

Hi,

I want to call a method in a COM+ component.
Even though I mark the class as Serializable I still get the following
error:

TxOrchestration1.odx(256): a non-serializable object type
'ComPlusLib.ComPlus ComPlusVar' can only be declared within an atomic scope
or service

How do I call a managed COM+ component (ServicedComponent) from a BizTalk
2004 orchestration ?

TIA
Detlef Hahn

Here is the code snippet for the COM+ component:
namespace ComPlusLib
{

[Guid("0C885210-ED4C-48aa-BF11-266FE56FF7BE")]
public interface IMyInt
{
void Test(XmlDocument doc);
}

[Guid("8F72A130-75A0-4512-A55B-292587150FC4")]
[JustInTimeActivation(true)]
[Transaction(TransactionOption.Required)]
[Serializable]
public class ComPlus : ServicedComponent  , IMyInt
{

public void Test(XmlDocument doc)
{
//...
}

}
}







[ Post a follow-up to this message ]



    Re: Problems with calling COM+ components from BizTalk 2004 Orchestration  
Todd Sussman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11:06 PM

If you reference any other .dll's that are not serializable, the assembly
you created, will not be seralizable either.  If you use a long running
transaction for your orchestration, you can then use an atomic scope for
declaring and calling your .dll.

Todd

"Detlef Hahn" <Detlef.Hahn@ComputerGarden.se> wrote in message
news:%23uTZf77iEHA.596@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I want to call a method in a COM+ component.
> Even though I mark the class as Serializable I still get the following
> error:
>
> TxOrchestration1.odx(256): a non-serializable object type
> 'ComPlusLib.ComPlus ComPlusVar' can only be declared within an atomic
> scope
> or service
>
> How do I call a managed COM+ component (ServicedComponent) from a BizTalk
> 2004 orchestration ?
>
> TIA
> Detlef Hahn
>
> Here is the code snippet for the COM+ component:
> namespace ComPlusLib
> {
>
> [Guid("0C885210-ED4C-48aa-BF11-266FE56FF7BE")]
> public interface IMyInt
> {
>  void Test(XmlDocument doc);
> }
>
> [Guid("8F72A130-75A0-4512-A55B-292587150FC4")]
> [JustInTimeActivation(true)]
> [Transaction(TransactionOption.Required)]
> [Serializable]
> public class ComPlus : ServicedComponent  , IMyInt
> {
>
>  public void Test(XmlDocument doc)
>  {
>  //...
>  }
>
> }
> }
>
>







[ Post a follow-up to this message ]



    Re: Problems with calling COM+ components from BizTalk 2004 Orchestration  
Devdutt Patnaik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11:06 PM

You are using a non-serializable class XmlDocument in your component.
Is there any particular reason why the method call can't be done in an
atomic scope? Is it a very time-consuming method?

"Detlef Hahn" <Detlef.Hahn@ComputerGarden.se> wrote in message
news:%23uTZf77iEHA.596@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I want to call a method in a COM+ component.
> Even though I mark the class as Serializable I still get the following
> error:
>
> TxOrchestration1.odx(256): a non-serializable object type
> 'ComPlusLib.ComPlus ComPlusVar' can only be declared within an atomic
scope
> or service
>
> How do I call a managed COM+ component (ServicedComponent) from a BizTalk
> 2004 orchestration ?
>
> TIA
> Detlef Hahn
>
> Here is the code snippet for the COM+ component:
> namespace ComPlusLib
> {
>
>  [Guid("0C885210-ED4C-48aa-BF11-266FE56FF7BE")]
>  public interface IMyInt
>  {
>   void Test(XmlDocument doc);
>  }
>
>  [Guid("8F72A130-75A0-4512-A55B-292587150FC4")]
>  [JustInTimeActivation(true)]
>  [Transaction(TransactionOption.Required)]
>  [Serializable]
>  public class ComPlus : ServicedComponent  , IMyInt
>  {
>
>   public void Test(XmlDocument doc)
>   {
>   //...
>   }
>
>  }
> }
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:39 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register