cancel
Showing results for 
Search instead for 
Did you mean: 

EJB 3 Client

Former Member
0 Kudos

Hi,

I would like to use a EJB 3 Java Client with the ConvertEjb, not a JSP, what all I have to todo?

regards,

Igor

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi Igor,

If I get it right, you want to create a standalone Java client that calls the Converter bean from the sample application that comes with this preview package, correct?

OK, if so I should say that currently EJB 3 business interfaces are not exposed to such standalone clients, i.e. they can be only accessed from standard Java EE clients by means of dependency injection (@EJB annotation) or JNDI lookups of explicitly declared ejb-refs. The lookup from standalone clients will be available and accordingly documented in the next release of SAP NetWeaver Application Server.

However, there is still the option to use the EJB 2.x-style Home interfaces with your EJB 3 beans in order to achieve this right now. Please refer to the following article for more information:

<a href="http://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/0736159e-0301-0010-9ea4-c63d83d0797b">Accessing EJB Applications Using JNDI</a>

Although its target is the SAP NetWeaver 04 release, the instructions provided there are still applicable to the Java EE 5 Edition.

Hope that helps a bit!

-Vladimir

sid-desh
Advisor
Advisor
0 Kudos

Hi Vladimir,

What about running application clients. Any thoughts on that.

Regards

Sidharth

Answers (1)

Answers (1)

sid-desh
Advisor
Advisor
0 Kudos

Hi Berchtold,

Please refer to <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/55e7d51e-0e01-0010-7b84-a95ee55eadeb">this</a> link. Although it is a document about Java Messaging it gives an idea how to call EJB's from standalone java programs.

You will have to include following two jars in your classpath:

1. sap.comtcjeclientlibimpl.jar

2. sap.comtcexception~impl.jar

The procedure to call EJB's from Application Client 5 projects has been described <a href="http://java.sun.com/javaee/5/docs/tutorial/doc/EJB3.html">here</a>.

However i dont know how appliction clients are run on the server once they are packaged in EAR file.

I am sure somebody will update this thread will all the relevant information.

Regards

Sidharth