You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Hai-Dang Pham <hd...@rim.com> on 2009/02/03 21:30:45 UTC
Help with Geronimo EJB Clustering
Hi,
I am trying to run an EJB clustering example as described at
http://cwiki.apache.org/GMOxDEV/test-drive-geronimo-ejb-clustering.html.
Each time I deploy my ejb.jar file the WADI clustering is not enable (e.g.
it is not a dependency of my ejb.jar as listed using Geronimo Console
Dependency viewer).
I am pretty sure I have an assembling issue. I don't know how to tell
Geronimo A/S that my ejb.jar requires openejb-clustering-wadi module. I
have added a geronimo-opejnejb.xml as described in the link. Do I have to
add an ejb-jar.xml? an openejb-jar.xml? an application.xml? If so what
should those files look like? Can somebody help me out?
Tx,
Hai-Dang
--
View this message in context: http://www.nabble.com/Help-with-Geronimo-EJB-Clustering-tp21818256s134p21818256.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Help with Geronimo EJB Clustering
Posted by Gianny Damour <gi...@optusnet.com.au>.
Hi Hai-Dang,
You have quite a number of vendor Deployment Descriptor there :) tThe
openejb-jar.xml DD is unnecessary in this case (it hides the geronimo-
openejb.xml DD). So, simply remove it and redeploy your module.
WADI for OpenEJB is currently broken and I will certainly take the
time to fix the integration - so it is supported but limited by my
throughput. The internals of the stateful EJB container changed after
the initial WADI integration. An instance cache is now used to store
and retrieve stateful instances when they are accessed. You will need
to trace through an EJB invocation to identify the root cause of the
problem.
If you want to debug this problem, then please feel free to let us
know your progress and ask for help if you are stuck. If you are not
able to fix the problem, then I will have a look in a couple of weeks
after having completed some other activities.
Thanks,
Gianny
On 05/02/2009, at 4:02 AM, Hai-Dang Pham wrote:
>
> Hi Gianny,
>
> Tx you for the reply. I have included <wadi:openejb-clustering-
> wadi>
> but when I deploy my EJB I don't see openejb-clustering-wadi as a
> dependency. If you see below I have included my ejb.jar structure
> and the
> file I used. Can you see if I did anything wrong?
>
> Also I would like to inquire on the state of WADI for openEJB, is
> this still
> actively supported? Is OpenJPA going be the recommended
> persistence scheme
> for EJB? You mentioned that WADI and openEJB integration is
> broken, can you
> give me a hint where it is broken, I can maybe help out to fix
> it... Is it
> the Geronimo's EJB deployer that is broken?
>
> Regards,
>
> Hai-Dang
>
>
>
> EJB.jar directory structure:
>
> META-INF/
> META-INF/MANIFEST.MF
> org/
> org/superbiz/
> org/superbiz/counter/
> META-INF/ejb-jar.xml
> META-INF/geronimo-openejb.xml
> META-INF/openejb-jar.xml
> org/superbiz/counter/CounterImpl.class
> org/superbiz/counter/CounterLocal.class
> org/superbiz/counter/CounterRemote.class
> META-INF/maven/
> META-INF/maven/org.superbiz/
> META-INF/maven/org.superbiz/simple-stateful/
> META-INF/maven/org.superbiz/simple-stateful/pom.xml
> META-INF/maven/org.superbiz/simple-stateful/pom.properties
>
>
> DD files:
>
> ejb-jar.xml:
>
> <ejb-jar>
> <description>jBoss test application </description>
> <display-name>Test</display-name>
> <enterprise-beans>
> <session>
> <ejb-name>CounterImpl</ejb-name>
> <ejb-class>org.superbiz.counter.CounterImpl</ejb-class>
> <session-type>Stateful</session-type>
> <transaction-type>Container</transaction-type>
> </session>
> </enterprise-beans>
> </ejb-jar>
>
>
> geronimo-openejb.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ejb-jar xmlns="http://geronimo.apache.org/xml/ns/j2ee/ejb/
> openejb-2.0"
>
> xmlns:wadi="http://geronimo.apache.org/xml/ns/openejb-clustering-
> wadi-1.2">
> <environment>
> <moduleId>
> <groupId>org.codehaus.wadi</groupId>
> <artifactId>wadi-openejb</artifactId>
> <version>2.0-SNAPSHOT</version>
> <type>jar</type>
> </moduleId>
> </environment>
> <wadi:openejb-clustering-wadi>
> <wadi:deltaReplication>false</wadi:deltaReplication>
> </wadi:openejb-clustering-wadi>
> </ejb-jar>
>
>
> openejb-jar.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <openejb-jar
> xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
> xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"
> xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0"
> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <sys:environment>
> <sys:moduleId>
> <sys:groupId>grouptest</sys:groupId>
> <sys:artifactId>ejb-wadi-example</sys:artifactId>
> <sys:version>1.0</sys:version>
> <sys:type>jar</sys:type>
> </sys:moduleId>
> </sys:environment>
> </openejb-jar>
>
>
>
>
> Gianny Damour-2 wrote:
>>
>> Hi Hai-Dang,
>>
>>
>> This is weird. if you have an element
>>
>> <wadi:openejb-clustering-wadi>
>>
>> in your geronimo-openejb.xml plan and if you can successfully
>> distribute the EJB module then this means that the config
>>
>> org.apache.geronimo.configs/openejb-clustering-builder-wadi/2.2-
>> SNAPSHOT/car
>>
>> is installed and up-and-running - otherwise you would not have been
>> able to distribute the module as an error would have been reported.
>>
>>
>> Clustered EJB module should have
>>
>> org.apache.geronimo.configs/openejb-clustering-wadi/2.2-SNAPSHOT/
>> car
>>
>> as a parent module.
>>
>>
>> Anyway, I just checked the sample with the latest Geronimo version
>> and I can tell you that the WADI clustering integration is currently
>> broken. It is unlikely that it will be fixed in the near future as I
>> am working on an OpenJPA distributed caching implementation. You may
>> want to check on the OpenEJB user list, users at openejb dot apache
>> dot org, whether or not they have an alternate EJB clustering
>> solution which can be easily enabled w/i Geronimo.
>>
>> Thanks,
>> Gianny
>>
>> On 04/02/2009, at 7:30 AM, Hai-Dang Pham wrote:
>>
>>>
>>> Hi,
>>>
>>> I am trying to run an EJB clustering example as described at
>>> http://cwiki.apache.org/GMOxDEV/test-drive-geronimo-ejb-
>>> clustering.html.
>>> Each time I deploy my ejb.jar file the WADI clustering is not
>>> enable (e.g.
>>> it is not a dependency of my ejb.jar as listed using Geronimo
>>> Console
>>> Dependency viewer).
>>>
>>> I am pretty sure I have an assembling issue. I don't know how to
>>> tell
>>> Geronimo A/S that my ejb.jar requires openejb-clustering-wadi
>>> module. I
>>> have added a geronimo-opejnejb.xml as described in the link. Do I
>>> have to
>>> add an ejb-jar.xml? an openejb-jar.xml? an application.xml? If so
>>> what
>>> should those files look like? Can somebody help me out?
>>>
>>> Tx,
>>>
>>> Hai-Dang
>>> --
>>> View this message in context: http://www.nabble.com/Help-with-
>>> Geronimo-EJB-Clustering-tp21818256s134p21818256.html
>>> Sent from the Apache Geronimo - Users mailing list archive at
>>> Nabble.com.
>>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Help-with-
> Geronimo-EJB-Clustering-tp21818256s134p21834775.html
> Sent from the Apache Geronimo - Users mailing list archive at
> Nabble.com.
>
Re: Help with Geronimo EJB Clustering
Posted by Hai-Dang Pham <hd...@rim.com>.
Hi Gianny,
Tx you for the reply. I have included <wadi:openejb-clustering-wadi>
but when I deploy my EJB I don't see openejb-clustering-wadi as a
dependency. If you see below I have included my ejb.jar structure and the
file I used. Can you see if I did anything wrong?
Also I would like to inquire on the state of WADI for openEJB, is this still
actively supported? Is OpenJPA going be the recommended persistence scheme
for EJB? You mentioned that WADI and openEJB integration is broken, can you
give me a hint where it is broken, I can maybe help out to fix it... Is it
the Geronimo's EJB deployer that is broken?
Regards,
Hai-Dang
EJB.jar directory structure:
META-INF/
META-INF/MANIFEST.MF
org/
org/superbiz/
org/superbiz/counter/
META-INF/ejb-jar.xml
META-INF/geronimo-openejb.xml
META-INF/openejb-jar.xml
org/superbiz/counter/CounterImpl.class
org/superbiz/counter/CounterLocal.class
org/superbiz/counter/CounterRemote.class
META-INF/maven/
META-INF/maven/org.superbiz/
META-INF/maven/org.superbiz/simple-stateful/
META-INF/maven/org.superbiz/simple-stateful/pom.xml
META-INF/maven/org.superbiz/simple-stateful/pom.properties
DD files:
ejb-jar.xml:
<ejb-jar>
<description>jBoss test application </description>
<display-name>Test</display-name>
<enterprise-beans>
<session>
<ejb-name>CounterImpl</ejb-name>
<ejb-class>org.superbiz.counter.CounterImpl</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
geronimo-openejb.xml:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://geronimo.apache.org/xml/ns/j2ee/ejb/openejb-2.0"
xmlns:wadi="http://geronimo.apache.org/xml/ns/openejb-clustering-wadi-1.2">
<environment>
<moduleId>
<groupId>org.codehaus.wadi</groupId>
<artifactId>wadi-openejb</artifactId>
<version>2.0-SNAPSHOT</version>
<type>jar</type>
</moduleId>
</environment>
<wadi:openejb-clustering-wadi>
<wadi:deltaReplication>false</wadi:deltaReplication>
</wadi:openejb-clustering-wadi>
</ejb-jar>
openejb-jar.xml:
<?xml version="1.0" encoding="UTF-8"?>
<openejb-jar
xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"
xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0"
xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
<sys:environment>
<sys:moduleId>
<sys:groupId>grouptest</sys:groupId>
<sys:artifactId>ejb-wadi-example</sys:artifactId>
<sys:version>1.0</sys:version>
<sys:type>jar</sys:type>
</sys:moduleId>
</sys:environment>
</openejb-jar>
Gianny Damour-2 wrote:
>
> Hi Hai-Dang,
>
>
> This is weird. if you have an element
>
> <wadi:openejb-clustering-wadi>
>
> in your geronimo-openejb.xml plan and if you can successfully
> distribute the EJB module then this means that the config
>
> org.apache.geronimo.configs/openejb-clustering-builder-wadi/2.2-
> SNAPSHOT/car
>
> is installed and up-and-running - otherwise you would not have been
> able to distribute the module as an error would have been reported.
>
>
> Clustered EJB module should have
>
> org.apache.geronimo.configs/openejb-clustering-wadi/2.2-SNAPSHOT/car
>
> as a parent module.
>
>
> Anyway, I just checked the sample with the latest Geronimo version
> and I can tell you that the WADI clustering integration is currently
> broken. It is unlikely that it will be fixed in the near future as I
> am working on an OpenJPA distributed caching implementation. You may
> want to check on the OpenEJB user list, users at openejb dot apache
> dot org, whether or not they have an alternate EJB clustering
> solution which can be easily enabled w/i Geronimo.
>
> Thanks,
> Gianny
>
> On 04/02/2009, at 7:30 AM, Hai-Dang Pham wrote:
>
>>
>> Hi,
>>
>> I am trying to run an EJB clustering example as described at
>> http://cwiki.apache.org/GMOxDEV/test-drive-geronimo-ejb-
>> clustering.html.
>> Each time I deploy my ejb.jar file the WADI clustering is not
>> enable (e.g.
>> it is not a dependency of my ejb.jar as listed using Geronimo Console
>> Dependency viewer).
>>
>> I am pretty sure I have an assembling issue. I don't know how to tell
>> Geronimo A/S that my ejb.jar requires openejb-clustering-wadi
>> module. I
>> have added a geronimo-opejnejb.xml as described in the link. Do I
>> have to
>> add an ejb-jar.xml? an openejb-jar.xml? an application.xml? If so
>> what
>> should those files look like? Can somebody help me out?
>>
>> Tx,
>>
>> Hai-Dang
>> --
>> View this message in context: http://www.nabble.com/Help-with-
>> Geronimo-EJB-Clustering-tp21818256s134p21818256.html
>> Sent from the Apache Geronimo - Users mailing list archive at
>> Nabble.com.
>>
>
>
>
--
View this message in context: http://www.nabble.com/Help-with-Geronimo-EJB-Clustering-tp21818256s134p21834775.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Help with Geronimo EJB Clustering
Posted by Gianny Damour <gi...@optusnet.com.au>.
Hi Hai-Dang,
This is weird. if you have an element
<wadi:openejb-clustering-wadi>
in your geronimo-openejb.xml plan and if you can successfully
distribute the EJB module then this means that the config
org.apache.geronimo.configs/openejb-clustering-builder-wadi/2.2-
SNAPSHOT/car
is installed and up-and-running - otherwise you would not have been
able to distribute the module as an error would have been reported.
Clustered EJB module should have
org.apache.geronimo.configs/openejb-clustering-wadi/2.2-SNAPSHOT/car
as a parent module.
Anyway, I just checked the sample with the latest Geronimo version
and I can tell you that the WADI clustering integration is currently
broken. It is unlikely that it will be fixed in the near future as I
am working on an OpenJPA distributed caching implementation. You may
want to check on the OpenEJB user list, users at openejb dot apache
dot org, whether or not they have an alternate EJB clustering
solution which can be easily enabled w/i Geronimo.
Thanks,
Gianny
On 04/02/2009, at 7:30 AM, Hai-Dang Pham wrote:
>
> Hi,
>
> I am trying to run an EJB clustering example as described at
> http://cwiki.apache.org/GMOxDEV/test-drive-geronimo-ejb-
> clustering.html.
> Each time I deploy my ejb.jar file the WADI clustering is not
> enable (e.g.
> it is not a dependency of my ejb.jar as listed using Geronimo Console
> Dependency viewer).
>
> I am pretty sure I have an assembling issue. I don't know how to tell
> Geronimo A/S that my ejb.jar requires openejb-clustering-wadi
> module. I
> have added a geronimo-opejnejb.xml as described in the link. Do I
> have to
> add an ejb-jar.xml? an openejb-jar.xml? an application.xml? If so
> what
> should those files look like? Can somebody help me out?
>
> Tx,
>
> Hai-Dang
> --
> View this message in context: http://www.nabble.com/Help-with-
> Geronimo-EJB-Clustering-tp21818256s134p21818256.html
> Sent from the Apache Geronimo - Users mailing list archive at
> Nabble.com.
>