Piyush Daiya

Ranch Hand
+ Follow
since Jun 13, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Piyush Daiya

Hi,
The code is working fine with me.I have OC4J and jdk1.3.1_04.
What web container are u using?
Only changes i made in code are :-
changed form action in EmpData.jsp to
<FORM METHOD="POST" ACTION="Display.jsp">
and
changed form action in Data.jsp to
<FORM METHOD="POST" ACTION="Salary.jsp">
as all files are in same directory.But, it shouldnt matter.
HTH,
Piyush
21 years ago
JSP
Well,
There are many ways.To name a few:-
1) Self Learning
2) Take some courses.

For self learning here are some books which will be helpful:-
1) Mastering EJB by Ed Roman-2nd edition. This book is available as pdf also.goto the www.theserverside.com to download.
2)Enterprise JavaBeans by Richard Monson-Haefel.

HTH,
Piyush

Originally posted by Jody Seigle:

Is the java provided CORBA.ORB class really a fully functional implementation? -- Or does it require a vendor implementation?
If I only used the java provided ORB class I wasn't able to use the ORB once it was initialized. Every method call would freeze the applet.
I'm using sdk 1.4.1 and currently just using appletviewer on a local machine for all testing.
Thanks.


Well,
According to J2EE specification, only application clients are allowed to create and export a Corba Object, though other components can be clients of COrba Objects.
I dont know how much this will help, but Im pasting the J2EE specification below:-
***********************************************
J2EE.6.2.4.4 Java IDL
JavaIDL allows applications to access any CORBA object, written in any language,
using the standard IIOP protocol. The J2EE security restrictions typically prevent all
application component types except application clients from creating and exporting
a CORBA object, but all J2EE application component types can be clients of
CORBA objects.
A J2EE product must support JavaIDL as defined by chapters 1 - 8, 13, and 15
of the CORBA 2.3.1 specification, available at http://cgi.omg.org/cgi-bin/
doc?formal/99-10-07, and the IDL To Java Language Mapping Specification,
available at http://cgi.omg.org/cgi-bin/doc?ptc/2000-01-08.
J2EE applications need to use an instance of org.omg.CORBA.ORB to perform
many JavaIDL and RMI-IIOP operations. The default ORB returned by a call to
ORB.init(new String[0], null) must be usable for such purposes; an
application need not be aware of the implementation classes used for the ORB and
RMI-IIOP support.
.......
***********************************************

HTH,
Piyush
21 years ago
Yeap Ilja,
You are right.Analysis and Design are to be done iteratively.

Piyush

Originally posted by pradeep anandan:
Well it was a great to see so much response..
and I think We are not arriving to a conclusion as there is not enough information provided.
As I am in the learning curve of UML and I was just going through a Banking Application eg to make a UML
design of it.
And there I had a doubt of it.
As in RDBMS we have 2 different tables one for Acccount type and other Account and have a foreign key relationship
will the same is applied in OOPS where The rate of interest differs with the account type
Regards,
Pradeep


Hi Pradeep,
UML is just a notation/language to represent design or software object model.It is during analysis and design that you decide what relationships exists between two objects.And then after that u show relationship between objects using UML or any other notation.
For learning UML, UML Distilled by Martin Fowler is best book(IMHO).
For doing OOAD, u have to learn to think in terms of objects and not persistent information(like RDMS tables).For this I would suggest book, Applying UML and Patterns:An Introduction to OOAD and Unified Process by Craig Larman,2nd edition.It is very good book and helped me a lot in learning OOAD and UML.
HTH,
Piyush
Frank,
I agree with you.More needs to be known about the problem.But,I guess the person is in process of learning OOAD and must have chosen banking example and was asking suggestions.
We all tried to help him with information he provided us.

Piyush
Hi,

Try changing the lines
// register the output parameters
callableStmt.registerOutParameter(3, Types.CHAR); // exception type
callableStmt.registerOutParameter(4, Types.CHAR); // exception text

to
// register the output parameters
callableStmt.registerOutParameter(3, Types.VARCHAR); // exception type
callableStmt.registerOutParameter(4, Types.VARCHAR); // exception text

HTH,
Piyush

Originally posted by pradeep anandan:
I have a Account type class and Account class
where Account TYpe has differnet types of Accounts eg:Saving and Current
and Account class stores the account info like Account id,account type.
To get account type in account class what type of relationship should i show between 2 classes
1) Association or inheritance. and why
Regards,
Pradeep


Well,
As u have mentioned Pradeep, u want account type in account class i.e account type is attribute of account class.Hence the relationship you have to show is association.
Inheritance is type of generalisation relationship.(A Generalisation relationship is relationship among classes where one class shares the structure and/or behaviour of one or more classes).
Since, you havent mentioned anything about sharing structure or anything between Account or AccountType, inheritance is not the relationship between the classes.
Association relationships can be of Aggregation and Composition types.
HTH,
Piyush
Hi,
EJBObject is 1st created and then depending whether Bean instance is available or not ejbCreate() is called.Client can never access the bean directly, it makes calls on EjbOject.
Refer to Mastering EJB by Ed Roman for further details.
HTH,
Piyush
Thnx for links.

Piyush
21 years ago
Hi,
You should change the following statements:-
// retrieve the output parameters
String exceptionType = callStmt.getString(3).trim();
String exceptionText = callStmt.getString(4).trim();
to
// retrieve the output parameters
String exceptionType = callStmt.getString(1).trim();
String exceptionText = callStmt.getString(2).trim();
HTH,
Piyush
Hi,
You can go here for different types of drivers:-
http://studsys.mscs.mu.edu/~schwerm/TechInfo/jdbc/JDBCDriverTypes.html
For other questions, it really depends on how your realtime system is implemented.

HTH,

Piyush
Hi,
Could also specify the role of each product in your project?That would be helpful in telling you where likely changes need to be made.
At present,one thing i can think of is ur datasource information -->
url="jdbc racle:thin:@192.168.0.5:1521:testoracledb"
If you are using jdbc driver.
HTH,
Piyush
Hi,
You can find some useful info here --->http://www.javaworld.com/javaworld/jw-02-2001/jw-0223-extremescale.html
Although, the article is old but it has good info.
Here, you will find a white paper --> http://technet.oracle.com/tech/java/architect/j2ee_clustering.html

HTH,
Piyush