users@glassfish.java.net

Re: Websphere 5.x to Glassfish App Conversion

From: <glassfish_at_javadesktop.org>
Date: Thu, 13 Nov 2008 07:13:43 PST

There are a number of reasons why...<BR>
1) The original code WORKS in Websphere and I am trying to use/preserve as much of the original code as possible.<BR>
2) The object "home" in the specific code you're talking about is not identified as a bean yet and is still a generic Object. Consequently, the create() method is not available to call directly on the object. In other words, home.create in this instance is not valid.<BR>
3) This code makes use of a common bean handler pattern that all the beans in the application extend, providing a centralized manner of creating them.
<BR><BR>
As to a typo, only typo was two ";" - the original code passes in the first element of a generic Class[] array - which should contain the class passed into the method we're working with. At least this is my interpretation of the existing code. Since it is not working in the manner I expect, I will spend a little time looking for why - but I'm more interested in getting the entire application working first... So, this may not get too much attention now that I've found a way (within each EJBean's own code, rather than through a central calling pattern) to initialize the required beans.
<BR><BR>
thanks for looking at the code,<BR>
Da Lizard
[Message sent by forum member 'loungelizard' (loungelizard)]

http://forums.java.net/jive/thread.jspa?messageID=316566