Thank you, this clarifies a lot. I'll try and let you know results.
Richter
Aaron Mulder escreveu:
>Oh dear, I need simpler examples I guess. Though I am trying to
>streamline the JMS chapter as we speak -- I just need to get the
>console portlet done for it. :)
>
>Anyway, for the most portable approach, you should have both the
>ActiveMQ RAR and the plan in your EAR, and then your application.xml
>should have a reference to the RAR and your geronimo-application.xml
>should have a reference to the RAR and the plan. Something like:
>
>META-INF/application.xml:
><application
> xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"
> version="1.4">
> <module>
> <web>
> <web-uri>my-web-app.war</web-uri>
> <context-root>/my-web-app</context-root>
> </web>
> </module>
> <module>
> <connector>activemq-ra-3.2.1.rar</connector>
> </module>
></application>
>
>META-INF/geronimo-application.xml:
><application
> xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0"
> configId="MyApplication">
> <module>
> <connector>activemq-ra-3.2.1.rar</connector>
> <alt-dd>jms-resource-plan.xml</alt-dd>
> </module>
></application>
>
>EAR contents:
>/my-web-app.war
>/activemq-ra-3.2.1.rar
>/jms-resource-plan.xml
>/META-INF/application.xml
>/META-INF/geronimo-application.xml
>
>Finally, note that Chaoter 7 (JMS resource) in my book has not been
>updated to 1.0 yet so the syntax in the plan is a bit off. The most
>important thing would be (satrt with, say, Example 7.2) to change the
>parentId to geronimo/activemq-broker/1.0/car instead of the one that
>starts with org/apache.
>
>Thanks,
> Aaron
>
>On 1/23/06, Edson Carlos Ericksson Richter
><edson.richter@brinformatica.srv.br> wrote:
>
>
>>I'm almost lost.
>>
>>I've created a EAR project on Eclipse using Geronimo plugin. Everything
>>is fine. I added my web app as part of this EAR. I managed to get EAR
>>deployed and app run (JDBC working, security auth working), all as if I
>>deployed the original WAR.
>>
>>I added a jms-resource-plan.xml on root of EAR (EarContent folder under
>>Eclipse), and no errors was shown when deploy. As content for
>>jms-resource-plan.xml, I used sample on Aaron Mulder book.
>>
>>But when I open Console, my jms connection factory don't appear, neither
>>Queue or Topics.
>>
>>I think I missed something.
>>
>>Someone could point what is the structure for EAR? More preciselly,
>>where to put what?
>>And if some reference between several .xml files are needed, who they are?
>>
>>There is a step-by-step or a how-to for JMS under Geronimo that I could
>>follow just to test and learn? Sorry, but Aaron book goes to deep into
>>Geronimo internals, that make things confuse to developer who whises
>>just to develop a simple sender-receiver jms tests...
>>
>>Thanks,
>>
>>Richter
>>
>>
>>David Jencks escreveu:
>>
>>
>>
>>>On Jan 22, 2006, at 9:43 AM, Edson Carlos Ericksson Richter wrote:
>>>
>>>
>>>
>>>>Is possible to create JMS resources directly in geronimo-web.xml or
>>>>is needed to create them as separate RAR, and then connect inside
>>>>geronimo-web.xml?
>>>>
>>>>
>>>you need to use a separate jms plan. One convenient way to deploy
>>>both your war and the jms resources together is to use what I call a
>>>"synthetic ear" which is basically a geronimo-application.xml plan
>>>that includes the geronimo-web and geronimo-resource plans as
>>>"external" modules. There's an example in configs/uddi-tomcat where
>>>a web app and database are combined.
>>>
>>>thanks
>>>david jencks
>>>
>>>
>>>
>>>>Tkx,
>>>>
>>>>Richter
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>
>
|