java - How to expose an EJB3.0 session ejb for a desktop app in Weblogic 11g -



java - How to expose an EJB3.0 session ejb for a desktop app in Weblogic 11g -

since:

the @ejb doesn't work on desktop apps, because there's no container, weblogic doesn't expose through jndi names of ejb's (3.0), i didn't find in official documentation few days now,

does know how consume ejb desktop app?

i got hints have modify web.xml... web.xml, there's more of them , @ to the lowest degree of them break app.

clarification: have weblogic server running, not exposing ejb's within ear hosted on server. specifically, server not exposing names of ejb3.0 session beans, while expose names of other ejb2.1 names. how reference ejb3.0 objects, hosted on server, desktop app?

further clarification: weblogic not expose names of ejb3.0 within jndi, because specifications of ejb3.0 don't require it.

to reply own question (got after effort), expose ejb3.0 object through remote interface, in weblogic 11g server, these steps must taken:

this ejb-jar.xml says bean rolybean:

<enterprise-beans> <session id="session_roly"> <display-name>roly</display-name> <ejb-name>roly</ejb-name> <remote>com.medicon.server.rolyremote</remote> <ejb-class>com.medicon.server.rolybean</ejb-class> <session-type>stateless</session-type> </session> </enterprise-beans>

this weblogic-ejb-jar.xml (in same dir) says:

<wls:weblogic-enterprise-bean> <wls:ejb-name>roly</wls:ejb-name> <wls:jndi-name>roly</wls:jndi-name> </wls:weblogic-enterprise-bean>

these 2 deployment descriptors seem 2 places it's required specify exposure of ejb through jndi.

java ejb-3.0 weblogic11g

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -