如何从PHP调用EJB会话bean? [英] How to call a EJB session bean from PHP?
问题描述
不是真的。如果可以进行CORBA调用,大多数容器支持CORBA作为一个远程EJB通话协议,但我不会推荐它。
你会有更好的运气将EJB会话Bean调用暴露为SOAP Web服务,或者简单地使用Servlet进行外观调用,并将其作为特殊Web服务进行调用。
现在,如果您在Java EE服务器中运行PHP(Resin相信可以运行PHP),那么您可能可以调用可调用EJB方法的Java调用。
但是,坦白说,网络服务或特设网站外观可能是您获得成功的最好而且最快捷的途径,假设您被允许撰写。
Is there any way to call an EJB session bean from PHP? Are there any specific functions to do that?
Not really. If you can make CORBA calls, most container support CORBA as a protocol to talk to a remote EJB, but I wouldn't recommend it.
You'd have better luck exposing the EJB Session Bean call as a SOAP Web Service, or simply facade it with a Servlet and invoke that as an ad hoc web service.
Now, if you're running PHP within a Java EE server (Resin I believe can run PHP), then you might be able to invoke a Java call that can call an EJB Method.
But, frankly, the web service or ad hoc web facade is likely your best, and quickest path to success, assuming you're allowed to write them.
这篇关于如何从PHP调用EJB会话bean?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!