Re: Re: Re: converting a geronimo ejb-jaxws app to jonas
"Guillaume Sauthier (OW2)" <[email protected]> Wed, 22 Jun 2011 09:49:54 +0200
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
The XML snippet you mention should be located in META-INF/ejb-jar.xml.
But, as you may know, with EJB3, this file is optional and the container
discover the bean by itself.
So as long as the default properties are ok for you, simply drop that file
:)
The jaxws spec do not enforce a standard mechanism to let the user
specify/customize the endpoint URL where the @Webservice will be available.
So each application server provide its own "proprietary" mechanism. For
geronimo, URL customization takes place in META-INF/open-ejb-jar.xml where
in JOnAS, it is located in META-INF/easybeans.xml
Do you have the 'jaxws' jonas service started ?
Check your ${jonas.base}/conf/jonas.properties and the jonas.services
property
You should see a trace like the following where you can find the endpoint
URL:
CXFWSEndpoint.displayInfos : POJO endpoint
'org.ow2.jonas.tutorial.jaxws.quote.QuoteReporterPOJO' available at
'http://localhost:53886/quote/QuoteReporterService'
--G
2011/6/22 Ryan Zoerner <[email protected]>
> Hi Guillaume,
>
> I am having problems with the following lines in my ejb-jar.xml file:
>
> <enterprise-beans>
> <session>
> <ejb-name>jaxws-converter-ejb</ejb-name>
>
> <service-endpoint>org.apache.geronimo.examples.jaxws_ejb.jax_ws_converter.Converter
> </service-endpoint>
>
> <ejb-class>org.apache.geronimo.examples.jaxws_ejb.jax_ws_converter.ConverterBean
> </ejb-class>
> <session-type>Stateless</session-type>
> <transaction-type>Container</transaction-type>
> </session>
> </enterprise-beans>
>
> Are these lines supposed to be in the easybeans.xml file then? (is that
> what you were describing in your email?)
>
> The server, in eclipse, reports that it is deployed, but when I look for it
> at http://localhost:port/@WebService:serviceName/@WebService:name?wsdl, I
> do not find it. However, I will look for the deployment location item in the
> log and see if it is there instead.
>
> Thank you.
>
> Ryan Zoerner
>
>
> On Tue, Jun 21, 2011 at 3:57 AM, Guillaume Sauthier (OW2) <
> [email protected]> wrote:
>
>> Hi Ryan
>>
>> In fact, if you don't want to customize the URL, you have nothing to do.
>> Just place your EjbJar in deploy/ and you're done.
>> You should see a trace in the console's log that tells you where the
>> endpoint has been deployed.
>>
>> In you want more control on the URL, then you should use the
>> META-INF/easybeans.xml that is an equivalent to open-ejb-jar.xml.
>> Something like this should do the trick (I'm not sure of the namespace):
>> <easybeans xmlns="http://org.ow2.easybeans.deployment.ejb">
>> <ejb>
>> <session>
>> <ejb-name>NAME OF YOUR BEAN</ejb-name>
>> <endpoint-address>CUSTOM URL</endpoint-address>
>> </session>
>> </ejb>
>> </easybeans>
>>
>>
>> http://jonas.ow2.org/JONAS_5_1_0/doc/doc-en/html/jaxws_developer_guide.html
>>
>> --G
>>
>>
>> 2011/6/21 Ryan Zoerner <[email protected]>
>>
>>> Hello,
>>>
>>> I have a geronimo ejb-jaxws demo that I would like to deploy on Jonas. I
>>> am wondering how. Is there a link to some standard set of instructions? Or,
>>> could someone just tell me what files I need to use to replace ejb-jar.xml
>>> and openejb-jar.xml files. Is it that simple, or is it much more
>>> complicated? The EJB JAXWS xml that was on the ow2 site has all sorts of
>>> port information in it, which I would like to stay away from explicitly
>>> stating. Is there something with less information in it which focuses only
>>> on bare-bones deployment?
>>>
>>> The sample app is found here:
>>>
>>>
>>> https://cwiki.apache.org/GMOxDOC30/developing-a-jax-ws-ejb-stateless-session-bean-web-service.html
>>>
>>> Thank you.
>>>
>>> Ryan Zoerner
>>>
>>>
>>
>>
>