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 ]
|