Q&A

Q1:How can I use a DataSource connection configured in the WebLogic Server in my client application?
A1: DataSource connections in a WebLogic Server are added to the server's naming service. Thus, to use a DataSource connection in the client application, you should use the lookup() method of the Context object of the JNDI API. After obtaining the object reference from the context, you should typecast it to a DataSource type to use it in the client application.
Q2:How do I use JNDI for accessing Enterprise JavaBeans?
A2: You will be studying Enterprise JavaBeans in more detail in the next few days. The short answer is that when EJBs are deployed in WebLogic Server, they are registered in the naming service. Client applications can use the ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.