Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!

ravi inguva

Ranch Hand
+ Follow
since Feb 07, 2002
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ravi inguva

I want to write a typical ql for two EJBs
i have a relation between to EJBs A -> B(CMR)
i want to write a finder method which in A's home which shud gete all the B's on a certain condition on B's Field
where my A's finder methods parameter is A itself
can somebody help me in this regard
[ March 22, 2003: Message edited by: ravi inguva ]
Hi friends,
i have an stateless session bean, in that i have business method which removes all the entity beans related to a particular ID, but before deleting each entity i peform a validation, if that fails i want to roll back all the records which were deleted prior to the last failed validation
can you please tell me the better way of rolling back all the record
the two ways i know is
1. ebjcontext.setrollbackonly and
2. throwing a new system exception
can somebody guide me how to handle this situation for rolling back.
Thanks in Advace
[ January 24, 2003: Message edited by: ravi inguva ]
Thanks Kyle for your optimum solution
oh sorry i missed a point actually it is many - many relation not one to many
and the ejb-jar documentation says as follows
The cascade-delete element specifies that, within a particular
relationship, the lifetime of one or more entity beans is dependent
upon the lifetime of another entity bean. The cascade-delete element
can only be specified for an ejb-relationship-role element contained
in an ejb-relation element in which the other ejb-relationship-role
element specifies a multiplicity of One.
Used in: ejb-relationship-role
<!ELEMENT cascade-delete EMPTY>
now how should i go about this
Dear Friends
i facing a peculiar problem,
i am having CMR with one to many cardinality
here is the piece of code
Collection stackZonePKs = _zoneService.findPKsByParent(rowZone);
System.out.println("YardConfigurationServiceBean 4:: RowID"+aRowId);

for (Iterator i = stackZonePKs.iterator(); i.hasNext()
Zone stackZone = _zoneService.findById(((BigDecimal);
System.out.println("YardConfigurationServiceBean 6:: RowID"+stackZone.getName());
in the code what i am doing is i am deleting all the child node or rows in the table getting the collections of primarykeys to remove the main node
what is happening is the transaction is getting timed out before deleting all the child nodes and the transaction is getting rolled back as a result of it can u please suggest me how t rectify this problem
i am using weblogic 7.0
Thanks in advnace
can anyone tell me
can v make a an same EJB as both remote and local with same jndi name
if yes can u please let me know
Thanks in Advance
Dear Freinds,
I have a doubt i am developing an web application as one of the requirement need to be as follows...
upon some search criteria i will query the database and retrive the resultset which contains thousands of records now i have to display the records on the clients browser in page-by-page iterator fashion
now my doubt is should i go for valuelist hander - caching like to display 50 records every time the user clicks next without hitting the database for every incrmental 50 records.if so then how should i handle this cahcing ....
should i keep the valuelisthandler object in the user session if so will it not harm applications performance as v are keeping the such huge object containing thousands of records in the session

or use a stateful session bean
or keep hitting the database to retrive every next 50 records
i want a best approach to handle such situations
i hope u people got my problem right....
thanks in advance
can stateful session beans be re-entrant??
if so why with brief reasoning
Thanks in advance
I have a doubt for getting the initial context is it always required to metion the properties specific to appserver as below
if (initContext == null) {
try {
Properties properties = new Properties();
// Get location of name service
bundle.getString(“providerUrl” );
// Get name of initial context factory
bundle.getString(“nameService” );
initContext = new InitialContext(properties);
} catch (Exception e) {
// Error getting the initial context…
to get the reference of an EJB
but i followed a process by just creating the initial context object as below in a JSP or servlet
InitailContext ctx = new InitailContext()
it worked for me without specifying the properties

can anybody say me the advantages and disadvantages of both the approaches and also which the best approach
Thanks in advance
can anybody post the steps to be followed for configuring the iplanet4.0 with websphere 3.5
any links to PDF are welcome
Thanks in advance
Hi I am using Websphere 3.5 with fix pack 2 on Win2000 and database is InstantDB
The description for Event ID ( 0 ) in Source ( Websphere ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: IBM WS AdminServer status: 997 Unable to start WebSphere Administration Server in 3 tries, service exiting.
I have tried to solve like this
1)restarted the system
18 years ago
hi friends,
i have a doubt.whether an ejb or JSP or servlet of one ear file can access local EJB of another ear file???
thanks in advance
I got 79% previously.but now it is 545 i felt test was real tough.
my first 30 questions were lengthy and tough thread questions where i lost all my time in the test
hi what is the minimum pass percentage??
18 years ago
hi what is the minimum pass percentage???
in the exam first 30 questions were on Threads and were real tough to answer in the stipulated time.
which dropped my score drastically.....
thank and regards.
Can somebody explain me abt CMR , when they are used, how to decide abt the relationship....
what can be achieved with them conversely what is not possible without CMR(EJB 2.0)