Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

vinod balaji

Ranch Hand
+ Follow
since May 18, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vinod balaji

Can any one help me in displaying Analog clock(GUI format) in JSF page
9 years ago
JSF
We can insert using the Index.. No problem with that..
Can we insert using the Field name using any PreparedStatement API ?
yes ofcourse,
but if i able to specify the field name, i can give the statements in any order..
Hello

Is it Possible to insert the value using the field , i couldnt find the suitable API for it

String Query = "Insert into tablename(GROUP_NAME,SOURCE) values (?,?)";


PreparedStatement ps = conn.prepareStatement(Query,Statement.RETURN_GENERATED_KEYS);
// Need something like the bekiw

ps.setValue(GROUP,"abc");
ps.setValue(SOURCE,"123");



ps.executeUpdate();
Hello
Is it possible to Insert the value in DB, using the field name. I couldnt able to find such Method in PreparedStatement..
Something like

String Query = "Insert into table(GROUP_NAME,SOURCE) values (?,?)";

PreparedStatement ps =conn.prepareStatement(Query,Statement.RETURN_GENERATED_KEYS);
// like the below i need
ps.setValue("GROUP",1);
ps.setValue("SOURCE",2)


ps.executeUpdate();
How to generate the build.xml in weblogic for our servers, can we write our own file or edit the existing one.
11 years ago
How to geneate build.xml. Can we manually edit the existing build.xml, and do the changes reflect.
11 years ago
I have set of datas in table format. I want to display it in tree format. Could any one Please tell me how to do this


Thank you
[ February 20, 2008: Message edited by: vinod balaji ]
12 years ago
JSP
Ok.. i got confused because in book it is simply mentioned as "instance".. now i got understood. thank you for your explanation
Ref:HFEJB pgno 586
Programmatic secuirty is used to restric access to specific instance(i.e., principal)..
Eg: Context.getCallerPrincipal();

Then it means we can restrict access on instance basis right.
HFEJB PGNO 593, QNO 1.
Whats true abt Security for EJB's ?

Ans given is Choice D. Secuirty Authorization can be bypassed on a method-by-method basis. It is possible to Provide security authorization even by instance basis through getCallerPrincipal() method, in this case i feel option E "Secuirty Authorization can be bypassed on a instance-by instance basix". Please clarify.

Thank you
I need some clarification regarding unspecified Transaction Context(UTC):

In my Understanding:

* for Session Beans: UTC are ejbCreate(),ejbActivate(),ejbPassivate(),ejbRemove()
* for Entity Beans: UTC are ejbActivate(),ejbPassivate(),ejbFind(),ejbSelect().

is it correct. Please correct me if iam wrong.

Thank You
Home business methods are used in the case where the client needs only the data and not the EJBObject. In cases where the client is not going to use the bean for no other purpose other that what he requested(like available tickets in flight) home buss method is used. if he wants to book ticket then EJBObject is used.. i think you got it.

However on the bottom of page 142, it says there may be multiple EJB Objects.



It doesnt say multiple EJB Objects, it says multiple bean..