OK!

Sorry for the noise :-)

At home I have already the three lines of code that dig the bug in CMP2 :-)
Now I am at work

This is the other solution :-) The Right Solution

I'll send the patch to Dain...

        Claudio

> -----Original Message-----
> From: marc fleury [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 7:56 PM
> To:   Vesco Claudio; 'Andreas Schaefer'
> Cc:   [EMAIL PROTECTED]
> Subject:      RE: [JBoss-dev] MEJB transactions (invoke deploy)
> 
> 
> 
> |-----Original Message-----
> |From: [EMAIL PROTECTED]
> |[mailto:[EMAIL PROTECTED]]On Behalf Of Vesco
> |Claudio
> |Sent: Friday, March 22, 2002 10:11 AM
> |To: 'Andreas Schaefer'
> |Cc: [EMAIL PROTECTED]
> |Subject: RE: [JBoss-dev] MEJB transactions (invoke deploy)
> |
> |
> |Yes!
> |
> |I want to deploy a ear (which contains a module which contains a
> |CMP EJB) by
> |MEJB
> 
> Ok this has NOTHING to do with the MEJB, leave the MEJB at supports and
> clearly wanting to fix this at the MEJB level proves you are a reckless
> young man that doesn't think a second.
> 
> OK what you want to do is have the initialization of the Bean in the CMP
> engine (the deploy) CHECK for the presence of a transaction.  SO if the
> deployment is transactional (as done with a Required in MEJB) then you
> need
> to check for that transaction and only start if not present.
> 
> It is a fix in the CMP initialization code, and that is Dain's domain.
> 
> Claudio, you were right on the line that barf, really wrong on the MEJB
> solution, for penitence can you give Dain the 3 lines diff that achieves
> this behavior (only start transaction if not present in the initialization
> of the code from Dain)
> 
> marcf
> |
> |simple in java:
> |
> |mejb.invoke(new ObjectName("jboss.system:service=MainDeployer"),
> |     "deploy",
> |     new Object[] { new URL("file:<path-ear>") },
> |     new String[] { String.getName() });
> |
> |in jython :-))):
> |
> |import java, javax
> |
> |from javax.naming import *
> |from javax.management import *
> |from java.lang import *
> |from java.lang.reflect import *
> |
> |mejb = InitialContext().lookup("ejb/mgmt/MEJB").create()
> |ARGS = Array.newInstance(Object, 1)
> |SIGN = Array.newInstance(String, 1)
> |ARGS[0] = URL("file:<path-ear>")
> |SIGN[0] = URL.getName()
> |mejb.invoke(ObjectName("jboss.system:service=MainDeployer"),
> |"deploy", ARGS,
> |SIGN)
> |
> |I LOVE JYTHON :-)))
> |
> |:-)
> |
> |     Claudio
> |
> |PS: I am vEsco Claudio, Vasco is a famous italian singer :-)))
> |
> |> -----Original Message-----
> |> From:      Andreas Schaefer [SMTP:[EMAIL PROTECTED]]
> |> Sent:      Friday, March 22, 2002 6:56 PM
> |> To:        Vesco Claudio
> |> Cc:        [EMAIL PROTECTED]
> |> Subject:   Re: [JBoss-dev] MEJB transactions (invoke deploy)
> |>
> |> Hi Vasco
> |>
> |> > When I try to deploy an ear (better, an CMP entity) with MEJB I have
> an
> |> > exception in org.jboss.ejb.plugins.cmp.jdbc.JDBCStartCommand because
> |> this
> |> > class try to start a new transaction.
> |>
> |> What does this mean ? How you are going to deploy a CMP entity bean
> with
> |> MEJB ??
> |>
> |> Andy
> |>
> |
> |_______________________________________________
> |Jboss-development mailing list
> |[EMAIL PROTECTED]
> |https://lists.sourceforge.net/lists/listinfo/jboss-development

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to