Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Invoking Commands in J2EE

Thread Tools

Invoking Commands in J2EE

Jim Fisher
Posts: n/a
I am searching for a way to invoke command classes (Command Pattern)
that utilizes Stateless Session Bean (SLSB) technology.

The two approaches I have come up with are:

1) Create a single SLSB and pass in a lookup name that matches to a
command class from which the SLSB can use to create and invoke the
command class reflectively. This assumes the command classes would be
cached and managed in a configured pooled once loaded.

2) Create a SLSB for each command class.

I would prefer not to use Option 1, because I would like to avoid using
*reflection* for such a common invocation. In addition, the management
of command objects creates another problem already solved by the J2EE

Considering Option 2, I would like something more convenient than
creating a SLSB for each command.

Hence, I would like to come up with a wrapper around SLSB that would
enable the programmer to write POJO command classes and focus on the
app code.

I am also aware of code gen and declarative programming options in 3rd
party tools and what is coming in JDK 1.5. Thus, I am searching for a
true SLSB wrapper.

Any ideas?
Reply With Quote

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating ActiveXobject in mozilla, invoking shell commands. Mohd Ebrahim ASP .Net 2 07-12-2010 08:21 AM
invoking system commands from a perl script vabby Perl Misc 10 03-13-2007 06:55 PM
Invoking Unix commands from a Python app Rob Cowie Python 5 12-17-2005 02:04 PM
Need Help Differentiating Bad Commands From Incomplete Commands Tim Stanka Python 1 08-02-2004 02:08 AM
Re: man pages for C commands (GCC commands) Ben Pfaff C Programming 4 06-28-2003 06:21 PM