You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by vidaniello <vi...@gmail.com> on 2014/11/22 14:03:42 UTC

.create method of BMP Entity 2.1EJB

The error throws in the class:

org.apache.openejb.core.entity.EntityContainer.createEJBObject

when invoke the method:

// invoke the ejbCreate which returns the primary key
primaryKey = ejbCreateMethod.invoke(bean, args);

called when i try to create a ne entity bean from the remote home object
obtained from lookup...





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: .create method of BMP Entity 2.1EJB

Posted by vidaniello <vi...@gmail.com>.
Resolved...
method 'ejbPostCreate' missing.

Thank you very much for the help!



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994p4673020.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: .create method of BMP Entity 2.1EJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
ejbPostCreate is mandatory for BMP so it seems the issue is on your side ;)


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-24 19:17 GMT+01:00 Romain Manni-Bucau <rm...@gmail.com>:
> add in BmpEntitybean:
>
> public void ejbPostCreate(String id) throws CreateException{
>         // no-op
>     }
>
> I didn't check yet if it was a bug or not but if it is it will be
> fixed tomrorrow on both snapshot, if not you just need to update your
> code ;)
>
>
>
> Romain Manni-Bucau
> @rmannibucau
> http://www.tomitribe.com
> http://rmannibucau.wordpress.com
> https://github.com/rmannibucau
>
>
> 2014-11-24 18:14 GMT+01:00 vidaniello <vi...@gmail.com>:
>> Yes, here on git
>>
>> https://github.com/vidaniello/EntityExample
>> <https://github.com/vidaniello/EntityExample>
>>
>>
>>
>> --
>> View this message in context: http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994p4673016.html
>> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: .create method of BMP Entity 2.1EJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
add in BmpEntitybean:

public void ejbPostCreate(String id) throws CreateException{
        // no-op
    }

I didn't check yet if it was a bug or not but if it is it will be
fixed tomrorrow on both snapshot, if not you just need to update your
code ;)



Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-24 18:14 GMT+01:00 vidaniello <vi...@gmail.com>:
> Yes, here on git
>
> https://github.com/vidaniello/EntityExample
> <https://github.com/vidaniello/EntityExample>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994p4673016.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: .create method of BMP Entity 2.1EJB

Posted by vidaniello <vi...@gmail.com>.
Yes, here on git

https://github.com/vidaniello/EntityExample
<https://github.com/vidaniello/EntityExample>  



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994p4673016.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: .create method of BMP Entity 2.1EJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
do you have it ready to run somewhere? ie on github for instance?


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-11-23 13:30 GMT+01:00 vidaniello <vi...@gmail.com>:
> I explained the situation better here , complete with source classes and
> stack error:
>
> http://stackoverflow.com/questions/27087706/bmp-entity-2-1-tomee-7-0-openejb-4-7-1
> <http://stackoverflow.com/questions/27087706/bmp-entity-2-1-tomee-7-0-openejb-4-7-1>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994p4673000.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: .create method of BMP Entity 2.1EJB

Posted by vidaniello <vi...@gmail.com>.
I explained the situation better here , complete with source classes and
stack error:

http://stackoverflow.com/questions/27087706/bmp-entity-2-1-tomee-7-0-openejb-4-7-1
<http://stackoverflow.com/questions/27087706/bmp-entity-2-1-tomee-7-0-openejb-4-7-1>  



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994p4673000.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: .create method of BMP Entity 2.1EJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Entity beans afe backed by jpa so you can need the javaagent
Le 22 nov. 2014 15:51, "vidaniello" <vi...@gmail.com> a écrit :

> I run it under eclipse, and i haven't openejb javaagent...
>
> The application server work for stateful and stateless bean example...
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994p4672996.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: .create method of BMP Entity 2.1EJB

Posted by vidaniello <vi...@gmail.com>.
I run it under eclipse, and i haven't openejb javaagent...

The application server work for stateful and stateless bean example...



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994p4672996.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: .create method of BMP Entity 2.1EJB

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

How do you run? Ie do you have the openejb javaagent?
Le 22 nov. 2014 14:34, "vidaniello" <vi...@gmail.com> a écrit :

> The error throws in the class:
>
> org.apache.openejb.core.entity.EntityContainer.createEJBObject
>
> when invoke the method:
>
> // invoke the ejbCreate which returns the primary key
> primaryKey = ejbCreateMethod.invoke(bean, args);
>
> called when i try to create a ne entity bean from the remote home object
> obtained from lookup...
>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/create-method-of-BMP-Entity-2-1EJB-tp4672994.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>