Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > BOOK: Expert One-on-One J2EE Design and Development
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 24th, 2003, 07:23 PM
Registered User
Join Date: Sep 2003
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.

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.
Old September 25th, 2003, 03:31 PM
Registered User
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

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.

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

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.