BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Parameter names does not match

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise
View previous topic :: View next topic  
Author Message
Nikhil Shah
Guest





PostPosted: Thu Aug 18, 2005 3:46 pm    Post subject: Parameter names does not match Reply with quote




We have made an EJB with just ONE method namely CombineStrings.

There are ONLY 3 parameters (all string) in that EJB-method. They are named as Part1, Part2 and Part3. (Please see the EJB files pasted below)

The problem is as follows:

Now when we build the project it in JBuilder, the parameter names in the stubs and skeleton files CHANGES to arg0, arg1 and arg2 respectively.

Is there any way we build the stubs/skeletons so that parameter names DO NOT CHANGE?


Regards,

Nikhil Shah
(nikhilshah4 (AT) rediffmail (DOT) com)

Following are EJB files

Remote Interface File - CombineStringsDemo.java
------------------------------------------------------

public interface CombineStringsDemo extends javax.ejb.EJBObject
{
public java.lang.String CombineStrings(String part1, String part2, String part3) throws
RemoteException;
}


Interface Implementation file : CombineStringsDemoBean.java
----------------------------------------------------------------------------

public class CombineStringsDemoBean implements SessionBean
{
SessionContext sessionContext;
public void ejbCreate() throws CreateException
{
/***/
}

public void ejbRemove()
{
/***/
}

public void ejbActivate()
{
/***/
}

public void ejbPassivate()
{
/***/
}

public void setSessionContext(SessionContext sessionContext)
{
this.sessionContext = sessionContext;
}

public java.lang.String CombineStrings(String part1, String part2, String part3)
{
return part1 + part2 + part3;
}
}
Back to top
Kevin Dean [TeamB]
Guest





PostPosted: Fri Aug 19, 2005 2:25 am    Post subject: Re: Parameter names does not match Reply with quote



Nikhil Shah wrote:

Quote:
We have made an EJB with just ONE method namely CombineStrings.

There are ONLY 3 parameters (all string) in that EJB-method. They are
named as Part1, Part2 and Part3. (Please see the EJB files pasted
below)

The problem is as follows:

Now when we build the project it in JBuilder, the parameter names in
the stubs and skeleton files CHANGES to arg0, arg1 and arg2
respectively.

Is there any way we build the stubs/skeletons so that parameter names
DO NOT CHANGE?

No, there isn't. Parameter names are not actually encoded in the
compiled class; they're included as optional debugging information.
JBuilder's ParameterInsight, for example, reads this debugging
information when available to give you the parameter names but if it
doesn't find it then it simply omits the parameter names altogether.

The stub/skeleton generator reads class files, not source files, and
doesn't look at debugging information at all.

Is there any particular reason why you're interested in the stubs and
skeletons at all? I've been doing EJB for years and seldom use them.

--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.