Naveen Chowdary

Greenhorn
+ Follow
since May 25, 2010
Merit badge: grant badges
For More
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 Naveen Chowdary

Hibernate DAO:


Hibernate POJO:


hbm.xml:


Table:


With the above one it should get 1 row. But it returns only zero rows all the while.
and below is the sql generated by Hibernate

Hibernate: select appsrespon0_.ID as ID0_, appsrespon0_.NAME as NAME0_, appsrespon0_.MODULES as MODULES0_, appsrespon0_.SERVICES as SERVICES0_ from Apps_Responsibilities appsrespon0_
Size is:0


I am tired of looking into it again and again. PLease help me
Hi,

for our application we are using weblogic 8.1 as application server and are connecting to IBM DB2. However everything works fine in DB operations until suddenly we got this exception

java.sql.SQLException:[BEA][DB2 JDBC Driver]:End of Stream was detected on a read

later on for every insert/read on DB2 we are getting this exception

java.sql.SQLException:[BEA][DB2 JDBC Driver]:Write Failed: Broken Pipe

can you please help me in this issue.

Thank You,
Naveen Chowdary
13 years ago
Hi....
Our application works on weblogic 8.1(Linux) and uses 6 managed servers across 2 physical machines.

Problem is we need to maintain a cache across all the 6 managed servers and we are making use of distributed topic for this purpose.So whenever a managed server gets a request it updates its cache and notifies all the other managed servers using distributed topic. We made use of MDBs for listening to these messages on topic and everything works fine.But suddenly sometimes say 2 managed servers will not be notified while the remaining servers will be notified.We are not getting any error as I checked both our application and weblogic console logs.We made use of weblogic JMS services.Please help us
Thanks and Regards
Naveen Chowdary
13 years ago
I have the following doubt..

say i have an application wherein the EJBs are deployed as a jar in 1 application server.

now say my web components are deployed in another machine as war file.

inorder to access the services of ejb we do jndi lookup wherein i use the following

Properties prop= new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY,"some here");
prop.put(Context.PROVIDER_URL,"jnp://172.20.175.52:1099");
Context ctx = new InitialContext(prop);

now to do lookup

try
{
Object obj = ctx.lookup("some lookup url");
AddBeneficiaryEjbHome home = (AddBeneficiaryEjbHome) javax.rmi.PortableRemoteObject.narrow(obj,AddBeneficiaryEjbHome.class);
remote = (AddBeneficiaryEjb)home.create();
}
catch(Exception ex)
{
ex.printStackTrace();
}

now my doubt is to get home interface i do casting wherein to work properly i am importing it....now if the ejbs are not deployed in the machine as web components how do the lookup and import statements work?

please answer this................