Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Sharmila Punde

Ranch Hand
+ Follow
since Dec 26, 2007
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 Sharmila Punde

Dear All,
Will it benefit to the professional java developer to learn OLAP-MDX, PENTAHO to
improve carrier opportunities? How much demand the OLAP-MDX, PENTAHO have in
job sector?
9 years ago
Dear All,
Can someone give book name or links which can explain how a spring,struts,hibernate application involving database and servlets and jsp can be designed with UML.
Thanks
9 years ago
Dear All,
Database table structure is as -

Please take a look at code which works fine -

I can see output of line #1 with list of 2 employees,
But somehow persistence provider do not initialize Employee.officeBranches , so the 'empsOfficeBranches'
on line #2 get initialized to null.
What is the problem with the above code? Why Employee.officeBranches does not get initialized
with list of OfficeBranch after en.refresh(ob) method call on line #0.

Thanks

Dear Ivan,
Thank you very much!. Yes that is nice idea to read Glassfish3.0 documentation. And your
are true, i do not need to go in such details just now. I am just doing small simple examples and trying to
figure out how container handles things.

Dear Ivan,
Thank you very much! Thanks for giving new idea about NRU and LRU. I will take a look at that. So should i conclude that
how and when to passivate bean is completely decided by container on the basis NRU and LRU policy, and may be on the basis of other parameters?
Dear All,
It is solved, i can save that entity. There were two databases in my machine. One was installed
for NetBeans IDE 6.9.1, another was installed by me in /root/. I changed the port and now connected
to right database.
Thanks.
Try EJB 3.0 in Action by Debu Panda, it has good explanation. Just need to collect
deployment information from it's site. http://java.boot.by/scbcd5-guide/ by Mikalai Zaikin will help.
Dear All,
Please take look at following Entity which compiles fine. Users table exists into schema 'app'.
I am using glassfish 3.0.1, Eclipse Persistence Services - 2.0.1 as provider, javadb


The code in servlet which is compiled -


The code in tracker bean as-


When servlet code is executed i get following error

Internal Exception: java.sql.SQLSyntaxErrorException: 'USER_ID' is not a column in table or VTI 'APP.USERS'.
Error Code: -1
Call: INSERT INTO app.users (user_id, username, category, password) VALUES (?, ?, ?, ?)
bind => [1, somename, 4, passsomeone]
Query: InsertObjectQuery(examples.entities.User[id=1, somename, passsomeone, 4])



What is problem, why i am getting this exception?

Thanks
Dear All,
I have stateful bean business interface and class as -


am using glassfish 3.0.1. Using administration tool(http://localhost:4848/common/index.jsf) to configure cache for ejb from
" Common Tasks->Configuration->EJB Container"
I have configured the cache related data as -

Max Cache Size: 2
Cache Resize Quantity: 1
Removal Timeout: 5400
Removal Selection Policy: fifo
Cache Idle Timeout: 40

Beans can be accessed successfully 3 times causes "postconstruct" to print 3 times. But it does not passivate if it is idle for more than 40 seconds. I could never see "prepassivate" unless glassfish is shutdown.

Can someone explains why bean does not passivate if it is idle for more than 40 seconds?

Thanks in advance!


Thanks Jeanne,
EJB 3 IN ACTION has good explanation on most topic. But the way Head First make you learn fast without
offering sleep and save your time is amazing. Head First does what reader want, and not what
author want.


Dear All,
I have stateful bean business interface and class as -


I am using glassfish 3.0.1. Using administration tool(http://localhost:4848/common/index.jsf) to configure cache for ejb from
" Common Tasks->Configuration->EJB Container"
I have configured the cache related data as -

Max Cache Size: 2
Cache Resize Quantity: 1
Removal Timeout: 5400
Removal Selection Policy: fifo
Cache Idle Timeout: 40

Beans can be accessed successfully 3 times causes "postconstruct" to print 3 times. But it does not passivate if it is idle for more than 40 seconds. I could never see "prepassivate" unless glassfish is shutdown.

Can someone explains why bean does not passivate if it is idle for more than 40 seconds?

Thanks in advance!
Dear All,
There are two questions-
1] I need to access a bean deployed into the glassfish from remote ACC. Therefore need to put value of java.naming.factory.initial property in jndi.properties file. The value of property must be context factory class name. How someone determines the appropriate ContextFactory class for a particular container? Where is the document which mentions the ContextFactory class name for a particular container? I have glassfish, and i do not know which file or place mentions the name of ContextFactory class.
2] How to define java.naming.provider.url for a providers?
Thanks
Dear amarshi mohanty,
Thanks, Both application servers are glassfish. Yesterday got littlebit idea about RMI and JNDI in 'EJB 3 in action' book Appendix A. But not sure how exactly it should be done. Can we get some book on that?

Dear All,
Suppose i have a application server with stateless ejb of the name 'first'. And on another machine on the same LAN i have a another application server with stateless ejb of the name 'second'. Which configuration steps i have to follow to inject first into second. I am using glassfish server.
Do i have to configure JNDI properties somewhere?
How do i access remote ejb using JNDI?
Please give some guidance where to start reading about this? What exact steps need to follow?
Thanks