Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Expert One-on-One J2EE Design and Development
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Expert One-on-One J2EE Design and Development
This is the forum to discuss the Wrox book Expert One-on-One J2EE Design and Development by Rod Johnson; ISBN: 9780764543852
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert One-on-One J2EE Design and Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 24th, 2003, 07:23 PM
Registered User
 
Join Date: Sep 2003
Location: Carlsbad, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Business Delegate Pattern for Accessing Remote EJB

First let me say this is one of the best books on practical software engineering I have every encountered. I love this book and am completely sold on the framework code provide for building J2EE applications.

I have successfully implemented a Remote EJB which extends AbstractStatelessSessonBean and deployed it on JBOSS 3.0.8. I have written a Java application that successfully accesses and uses this Remote EJB. It uses a brute force means of accessing my Remote EJB.

I have taken the steps to utilize the Business Delegate Pattern as described on pages 423-425. I have create a Business Delegate Interface and a Business Delegate object that implements this interface and extends AbstractRemoteStatelessSessionServiceLocator. However, I am unable to make this work. My Business Delegate object never seems to get the callback on the afterPropertiesSet() method.

My intuition tells me I am missing an Application Context, also part of the infrastructure, for my Java application. My understanding is the Application Context infrastructure will allow me to configure my components for run-time access in the infrastructure. I'm at a real loss at the moment.

Any advice on this matter will be greatly appreciated. Thanks in advance.

Sincerely,
Matthew Lumsden

PS The book does a good job describing the use of the framework for web applications but is lacking when it comes to utilizing it elsewhere.
Reply With Quote
  #2 (permalink)  
Old September 25th, 2003, 03:31 PM
Registered User
 
Join Date: Sep 2003
Location: Carlsbad, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My intuition was correct. An Application Context must be instantiated and appropriate configuration must be provided. I instantiated a FileSystemXMLApplicationContext and provided an XML configuration file to it. This was indeed the missing link.

Good luck to others going down this path. Hope this will help save you some time.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing a remote sqlserver Through Proxy Server? mizimizi Classic ASP Databases 0 July 23rd, 2006 05:49 AM
DirectoryInfo.GetFiles(pattern): search pattern fo arif_1947 VS.NET 2002/2003 1 October 19th, 2004 11:59 PM
Accessing a remote web site Ray Pinnegar Access VBA 2 July 24th, 2003 08:34 PM
Error 7399 when accessing REMOTE .mdb VerdaFolio SQL Server 2000 2 July 9th, 2003 01:42 PM



All times are GMT -4. The time now is 08:53 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.