You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Andreas Bohnert <ab...@weberhofer.at> on 2006/11/08 16:39:42 UTC
[Axis2]: where to put ? Can't call an ejb from inside
a service!
hi,
I'm using axis2 0.95 (with geronimo) and I try to call a local ejb from
inside my service.
to resolve the ejb reference I normally put a <ejb-ref> or
<ejb-local-ref> to the web.xml if I call from a webapplication or to the
ejb-jar.xml, if I call from another ejb.
but now I have an aar file with no deployment descriptor! service.xml
seems to be not the right place ...
well, I could put it to the axis2.war, but I don't want to mess it up
with service specific stuff.
Is there a nice way todo it?
thanks for your help,
andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2]: where to put ? Can't call an ejb from
inside a service!
Posted by Andreas Bohnert <ab...@weberhofer.at>.
thank you martin for your thoughts.
I have to try this one. looks interresting. I would not ever hit on that!
andreas
Martin Gainty schrieb:
> Hello Andreas-
> described inside the xsd (in Axis 1.x used to be wsdl / and is now <ApplicationName>-Axis2.xml as in this example
>
> <xsd:schema
> targetNamespace="http://java.sun.com/xml/ns/j2ee"
> xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
>
> you can construct complexTypes based on underlying j2ee referenced objects as in this example
>
> <xsd:complexType name="descriptionType">
> <xsd:simpleContent>
> <xsd:extension base="j2ee:xsdStringType">
> <xsd:attribute ref="xml:lang"/>
> </xsd:extension>
> </xsd:simpleContent>
> </xsd:complexType>
>
> Later on we can define our own individual elements based on previously described j2ee:descriptionType as in this example..
>
> <xsd:element name="description"
> type="j2ee:descriptionType"
> minOccurs="0"
> maxOccurs="unbounded"/>
>
> Anyone else?
> M-
> This e-mail communication and any attachments may contain confidential and privileged information for the use of the
> designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
> this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its
> contents
> ----- Original Message -----
> From: "Andreas Bohnert" <ab...@weberhofer.at>
> To: <ax...@ws.apache.org>
> Sent: Wednesday, November 08, 2006 10:39 AM
> Subject: [Axis2]: where to put <ejb-local-ref>? Can't call an ejb from inside a service!
>
>
>> hi,
>>
>> I'm using axis2 0.95 (with geronimo) and I try to call a local ejb from
>> inside my service.
>>
>> to resolve the ejb reference I normally put a <ejb-ref> or
>> <ejb-local-ref> to the web.xml if I call from a webapplication or to the
>> ejb-jar.xml, if I call from another ejb.
>>
>> but now I have an aar file with no deployment descriptor! service.xml
>> seems to be not the right place ...
>> well, I could put it to the axis2.war, but I don't want to mess it up
>> with service specific stuff.
>>
>> Is there a nice way todo it?
>>
>> thanks for your help,
>> andreas
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2]: where to put ? Can't call an ejb from inside a service!
Posted by Martin Gainty <mg...@hotmail.com>.
Hello Andreas-
described inside the xsd (in Axis 1.x used to be wsdl / and is now <ApplicationName>-Axis2.xml as in this example
<xsd:schema
targetNamespace="http://java.sun.com/xml/ns/j2ee"
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
you can construct complexTypes based on underlying j2ee referenced objects as in this example
<xsd:complexType name="descriptionType">
<xsd:simpleContent>
<xsd:extension base="j2ee:xsdStringType">
<xsd:attribute ref="xml:lang"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
Later on we can define our own individual elements based on previously described j2ee:descriptionType as in this example..
<xsd:element name="description"
type="j2ee:descriptionType"
minOccurs="0"
maxOccurs="unbounded"/>
Anyone else?
M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its
contents
----- Original Message -----
From: "Andreas Bohnert" <ab...@weberhofer.at>
To: <ax...@ws.apache.org>
Sent: Wednesday, November 08, 2006 10:39 AM
Subject: [Axis2]: where to put <ejb-local-ref>? Can't call an ejb from inside a service!
> hi,
>
> I'm using axis2 0.95 (with geronimo) and I try to call a local ejb from
> inside my service.
>
> to resolve the ejb reference I normally put a <ejb-ref> or
> <ejb-local-ref> to the web.xml if I call from a webapplication or to the
> ejb-jar.xml, if I call from another ejb.
>
> but now I have an aar file with no deployment descriptor! service.xml
> seems to be not the right place ...
> well, I could put it to the axis2.war, but I don't want to mess it up
> with service specific stuff.
>
> Is there a nice way todo it?
>
> thanks for your help,
> andreas
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>