shahul hameed

Greenhorn
+ Follow
since Dec 12, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by shahul hameed


How to use Java Beans to shift the code from (Connection + statement + Result Set) + (HTML code) the JSP Page !
I have seen some technique to use collections and Iterator !
Can somebody please help !
23 years ago
Is there a free j2ee hosting available !
O.K. ! Atleast a paid service available !
I want to try out my goodies on the web (probably impress my 2-tier thinking Boss ! :rolleyes)

Thanks Madhu !
I am hitting the Clue !
Meanwhile ! Can you give me a sample xml descriptor for entity/BEA (Hmmm ! for a multitable scenario, if possible in Entity Beans otherwise a simple Single Table Object)
How the Container knows which table to look for the fields for CMP !
Where do you define it ?
How many descriptors for Entity Beans !
{only ejb-jar.xml + one for the container}
*********************************************************
How I get into this Trouble !
I did a Session Beans by looking at the Wrox Book ! It worked !
(Deployed on Jboss)
And then I did a Entity beans using Wrox !
Find that they have not bothered to give the xml descriptor (ejb-jar.xml)
Referred the Roman's Book ! They have a descriptor for BEA not for Jboss !
Went to Jboss site, they have a descriptor ! but not clear !

Madhu, Thanks.
You mean that I should the Wizard/tool in WebLogic to create the descriptors for the Entity Beans to deploy it in Jboss.
Also it implies that the table name goes in the descriptor.
Did I understand you correctly ?
Thanks for your help.

Can you elicit what to do with Jboss for the same issue !

Originally posted by skill123:
I don't know which Version/Vendor you are using but you associate the Table first and then Columns. I am quoting the example from WebLogic Docs:
(jdbc
tableName ejbAccounts
dbIsShared false
poolName demoPool
(attributeMap
; EJBean field Database column name
;


How the Container knows which table to look for the fields for CMP !
Where do you define it ?
How many descriptors for Entity Beans !
{only ejb-jar.xml + one for the container}
*********************************************************
How I get into this Trouble !
I did a Session Beans by looking at the Wrox Book ! It worked !
(Deployed on Jboss)
And then I did a Entity beans using Wrox !
Find that they have not bothered to give the xml descriptor (ejb-jar.xml)
Referred the Roman's Book ! They have a descriptor for BEA not for Jboss !
Went to Jboss site, they have a descriptor ! but not clear !


Does the Sun Exam Question has a Weightage !
If yes ! Where can I get the info !
If no ! If they ask ten questions (some random heavenly logic) on Garbage Collection ! what we will do ! {Dont say we have to anwser them}
Thanks in advance
We have a bunch of newbies trying to edge out a living using JSP ! But we have a doubt !
1. Do we get as much as freebies (Knowledge Resources)as ASP Code and Tips to do a fantastic Production site for JSP !
2. Why people dont use applet - Servlet - JDBC Model as much as JSP - Servlet - JDBC Model ! Is it because of reach with APplets behind firewalls
CAN SONEBODY SAY ! Forget ASP ! GO JSP !
Just need a Moral Push !

23 years ago

Originally posted by Tejas Kansara:
May be the version JDK1.3 which you are working on is not installed properly or must be incomplete. B'coz I had tried the same code on my machine and it working fine.



Thanks Tejas !
In the initial period of my java learning, I made a class with name "Class". It was causing the problem ! I removed and everything was O.K. !
Appreciate your help.
23 years ago

What may be the reason, that the following could not be compiled on my PC !
Classpath !
File missing !
import java.sql.*;
import java.util.*;
import java.io.InputStream;
public class ConnectMe {
public static void main (String args[]) {
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch (Exception e) {
System.out.println("Failed to load JDBC/ODBC driver.");
return;
}
}
}

The compiler error is

D:\jdk1.3\ConnectMe.java:11: cannot resolve symbol
symbol : method forName (java.lang.String)
location: class Class
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
^
1 error
Tool completed with exit code 1

Thanks in Advance !
23 years ago