Click here to Skip to main content
15,889,808 members
Home / Discussions / COM
   

COM

 
QuestionQuestion regarding path - dumb question.... Pin
1.21 Gigawatts11-Jul-08 1:19
1.21 Gigawatts11-Jul-08 1:19 
AnswerRe: Question regarding path - dumb question.... Pin
Baltoro19-Jul-08 7:44
Baltoro19-Jul-08 7:44 
GeneralRe: Question regarding path - dumb question.... Pin
1.21 Gigawatts20-Jul-08 19:43
1.21 Gigawatts20-Jul-08 19:43 
AnswerRe: Question regarding path - dumb question.... Pin
Luc Pattyn19-Jul-08 8:17
sitebuilderLuc Pattyn19-Jul-08 8:17 
GeneralRe: Question regarding path - dumb question.... Pin
1.21 Gigawatts20-Jul-08 19:43
1.21 Gigawatts20-Jul-08 19:43 
Questionredefinition Enum member on IDL file [modified] Pin
iman_kh10-Jul-08 7:27
iman_kh10-Jul-08 7:27 
AnswerRe: redefinition Enum member on IDL file Pin
Vi210-Jul-08 19:11
Vi210-Jul-08 19:11 
QuestionEnlisting IBM Websphere MQ Series in COM+ transaction Pin
Daniel Jansson10-Jul-08 1:52
Daniel Jansson10-Jul-08 1:52 
Hi guys, I have some serious problems with com+ and the ibm mq series.
I have a windows service with a com+ defined class (inherits ServicedComponent,
has [Transaction(TransactionOption.RequiresNew)] and [AutoComplete(true)] on the
method.

The problem is that the mq series part never rolls back in case of any errors,
the other transactions works perfectly fine.

When it comes to the mq connection, I have set up the enviroment to use server-
bindings (a requirement for using transactions)
MQEnvironment.properties[MQC.TRANSPORT_PROPERTY] = MQC.TRANSPORT_MQSERIES_BINDINGS;

and the connection / send looks like this (stripped):
queueManager = new MQQueueManager(queueManagerName, channel, host);
queueManager.Connect();
...
sendOptions = new MQPutMessageOptions();
sendOptions.Options += MQC.MQRO_NEW_MSG_ID + MQC.MQRO_COPY_MSG_ID_TO_CORREL_ID;
sendOptions.Options += MQC.MQGMO_SYNCPOINT;
...
queue = queueManager.AccessQueue(queueName, MQC.MQOO_OUTPUT + MQC.MQOO_FAIL_IF_QUIESCING);
queue.Put(msg, sendOptions);
queue.Close();

Do I have to do anything in perticular in the transaction-based method for this to work?

Scaled down, it looks lite this:
[AutoComplete(true)]
function void DoWork()
{
  try
  {
    send_message_on_mqqueue();
    do_some_db_work();
    ContextUtil.SetComplete();
  }
  catch (Exception)
  {
    ContextUtil.SetAbort();
  }
}

Any help, thoughts or suggestions are appreciated!
QuestionDLL - Firing an event - Exception Pin
lgatcodeproject10-Jul-08 0:27
lgatcodeproject10-Jul-08 0:27 
AnswerRe: DLL - Firing an event - Exception Pin
Ju@ncho10-Jul-08 5:00
Ju@ncho10-Jul-08 5:00 
QuestionThe application has failed to start.... Pin
Sergey24-Jul-08 2:16
Sergey24-Jul-08 2:16 
AnswerRe: The application has failed to start.... Pin
Ju@ncho4-Jul-08 3:03
Ju@ncho4-Jul-08 3:03 
GeneralRe: The application has failed to start.... Pin
Sergey24-Jul-08 4:22
Sergey24-Jul-08 4:22 
GeneralRe: The application has failed to start.... Pin
Ju@ncho4-Jul-08 4:44
Ju@ncho4-Jul-08 4:44 
GeneralRe: The application has failed to start.... Pin
Sergey24-Jul-08 8:39
Sergey24-Jul-08 8:39 
GeneralRe: The application has failed to start.... Pin
Ju@ncho7-Jul-08 2:56
Ju@ncho7-Jul-08 2:56 
GeneralRe: The application has failed to start.... Pin
User 24844377-Jul-08 6:16
User 24844377-Jul-08 6:16 
GeneralRe: The application has failed to start.... Pin
Scot Brennecke9-Jul-08 14:17
professionalScot Brennecke9-Jul-08 14:17 
QuestionC++ ATL DLL Addin for Windows Mail is blocked by Vista's DEP Pin
dolly4-Jul-08 1:36
dolly4-Jul-08 1:36 
AnswerRe: C++ ATL DLL Addin for Windows Mail is blocked by Vista's DEP Pin
Scot Brennecke9-Jul-08 14:14
professionalScot Brennecke9-Jul-08 14:14 
QuestionExporting function using raw COM Pin
sandy_103-Jul-08 19:36
sandy_103-Jul-08 19:36 
AnswerRe: Exporting function using raw COM Pin
_AnsHUMAN_ 3-Jul-08 19:40
_AnsHUMAN_ 3-Jul-08 19:40 
GeneralRe: Exporting function using raw COM Pin
sandy_103-Jul-08 19:46
sandy_103-Jul-08 19:46 
AnswerRe: Exporting function using raw COM Pin
Vitaly Tomilov3-Jul-08 22:13
Vitaly Tomilov3-Jul-08 22:13 
QuestionHow to instantiate an .net object with parameterized constructor in VB6? Pin
Saranya B3-Jul-08 19:07
Saranya B3-Jul-08 19:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.