Re: 来自wealther的邮件
Simon Aquilina <[email protected]> Wed, 10 Dec 2008 00:44:09 +0100
| Newsgroups | gmane.comp.java.sun.connector |
|---|---|
| Message-ID | <[email protected]> |
--_b62e220e-5760-47d9-ba8c-5c79837d6f33_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by brmea-mail-1.sun.com id mB9NljVw006324 Hi QiJun Yang, Thank you again for your reply. I have checked the j2ee tutorial as you suggested. If I use this method then I would implement that code within the Message Driven Bean (MDB) endpoint.=20 However I see only one problem with the above design. Like that my Resource Adapter (RA) would call the MDB and the MDB would then call the Servlet. However in the Java EE 5 Tutorial, Chapter 35, About Resource Adapters (http://java.sun.com/javaee/5/docs/tutorial/doc/bncjy.html) there is a diagram which seems to indicate that the RA should be able to call the Web Components directly. Aren't servlets also Web Components? If yes then should't the RA be able to invoke a servlet directly by using the MessageEndpointFactory, with the difference that the Message Endpoint in this case would be the wanted servlet rather then an MDB. I do not know if my line of thought is clear enough. If not please do not hesitate to tell me and I will try to rephrase :) I will also take your suggestion and ask the question about an Adapter on the apache forum to see what they say as well. Again thank you very much for your interest and replies :) they are really apreciated. Best Regards, Simon J. Aquilina Date: Mon, 8 Dec 2008 14:09:54 +0800 From: [email protected] To: [email protected] Subject: =C0=B4=D7=D4wealther=B5=C4=D3=CA=BC=FE =20 =20 Hi Simon J. Aquilina, =20 First i am glad to receive your email again, and i am sorry for my poor w= ritten english to you, i can hardly descript my ideas in english. =20 if you want to access a servlet just like an ejb, such as a mdb. you can = just bind the servlet as an url resource to jndi service. there is an exa= mple in chapter 31 of j2ee tutorial at http://java.sun.com/j2ee/1.4/docs/= tutorial/doc/ =20 by the way, i don't know if there is an adapter you want. maybe you can f= ind some information at http://httpd.apache.org/. =20 Best Regards, QiJun Yang =20 [=B9=E3=B8=E6] 2008=C4=EA=D7=EE=CA=DC=B9=D8=D7=A2=C2=A5=C5=CC _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=3Dwindows+vista&mkt=3Den-US&form=3DQ= BRE =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D To unsubscribe, send email to [email protected] and include in the bo= dy of the message "signoff CONNECTOR-INTEREST". For general help, send emai= l to [email protected] and include in the body of the message "help". --_b62e220e-5760-47d9-ba8c-5c79837d6f33_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by brmea-mail-1.sun.com id mB9NljVw006324 <html> <head> <style> .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 10pt; font-family:Verdana } </style> </head> <body class=3D'hmmessage'> Hi QiJun Yang,<br><br>Thank you again for your reply. I have checked the j2ee tutorial as you suggested. If I use this method then I would implement that code within the Message Driven Bean (MDB) endpoint. <br><b= r>However I see only one problem with the above design. Like that my Resource Adapter (RA) would call the MDB and the MDB would then call the Servlet. However in the Java EE 5 Tutorial, Chapter 35, About Resource Adapters (http://java.sun.com/javaee/5/docs/tutorial/doc/bncjy.html) there is a diagram which seems to indicate that the RA should be able to call the Web Components directly. Aren't servlets also Web Components? If yes then should't the RA be able to invoke a servlet directly by using the MessageEndpointFactory, with the difference that the Message Endpoint in this case would be the wanted servlet rather then an MDB. I do not know if my line of thought is clear enough. If not please do not hesitate to tell me and I will try to rephrase :)<br><b= r>I will also take your suggestion and ask the question about an Adapter on the apache forum to see what they say as well. Again thank you very much for your interest and replies :) they are really apreciated.<br><br>= Best Regards,<br>Simon J. Aquilina<br><br><hr id=3D"stopSpelling">Date: M= on, 8 Dec 2008 14:09:54 +0800<br>From: [email protected]<br>To: sim085@HOT= MAIL.COM<br>Subject: =C0=B4=D7=D4wealther=B5=C4=D3=CA=BC=FE<br><br><div>&= nbsp;</div> <div> <div> Hi Simon J. Aquilina,</div> <div> </div> <div>First i am glad to receive your email again, and i am sorry for my p= oor written english to you, i can hardly descript my ideas in english.</d= iv> <div> </div> <div>if you want to access a servlet just like an ejb, such as a mdb. you= can just bind the servlet as an url resource to jndi service. there is a= n example in chapter 31 of j2ee tutorial at <a href=3D"http://java.sun.co= m/j2ee/1.4/docs/tutorial/doc/">http://java.sun.com/j2ee/1.4/docs/tutorial= /doc/</a></div> <div> </div> <div>by the way, i don't know if there is an adapter you want. maybe you = can find some information at <a href=3D"http://httpd.apache.org/">http://= httpd.apache.org/</a>.</div> <div> </div> <div>Best Regards,</div> <div>QiJun Yang</div></div><br><br>=20 <hr> <font style=3D"font-size: 12px; line-height: 15px;">[=B9=E3=B8=E6] </font= ><font style=3D"font-size: 12px; line-height: 15px;"></font><a style=3D"f= ont-size: 12px; line-height: 15px; color: blue; text-decoration: underlin= e;" href=3D"http://popme.163.com/link/003985_1010_7027.html">2008=C4=EA=D7= =EE=CA=DC=B9=D8=D7=A2=C2=A5=C5=CC</a><br /><hr />Discover the new Windows= Vista <a href=3D'http://search.msn.com/results.aspx?q=3Dwindows+vista&mk= t=3Den-US&form=3DQBRE' target=3D'_new'>Learn more!</a></body> </html> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D To unsubscribe, send email to [email protected] and include in the bo= dy of the message "signoff CONNECTOR-INTEREST". For general help, send emai= l to [email protected] and include in the body of the message "help". --_b62e220e-5760-47d9-ba8c-5c79837d6f33_--