QA

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 lookup() method in the JNDI API to access the EJBs.



Sams Teach Yourself BEA WebLogic Server 7. 0 in 21 Days
Sams Teach Yourself BEA WebLogic Server 7.0 in 21 Days
ISBN: 0672324334
EAN: 2147483647
Year: 2002
Pages: 339

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net