Win a copy of Spring Boot in Practice this week in the Spring forum!

manish syal

Greenhorn
+ Follow
since Jul 17, 2001
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 manish syal

There are two ways to call a method from session bean .
One is client look for each bean and call methods from the beans one after other
Other is bean itself looks for the methods in other beans and then client only calls the reqired method.
Which of this is the right appraoch and when to use them
I am working with the beanManaged basic example of Weblogic. When the client runs it try's to find any data is present or not in database
"Trying to find account with id: ID: 0
There was an exception while creating and using the Accounts.
This indicates that there was a problem communicating with the server: java.rmi.
RemoteException: ; nested exception is:
weblogic.rjvm.PeerGoneException:
- with nested exception:
[java.net.SocketException: Connection reset by peer: JVM_recv in socket input st
ream read]"

At the server side it shows output
setEntityContex called
ejbFindByPrimaryKey (ID: 0)
ejbFindByPrimaryKey: AccountBean (ID: 0) not found
After that the server crashes giving Application error that instruction at "0x77f8ed61" referenced at memory at "0x00000010".The memory could not be written.
Click OK to terminate
----It goes till ejbFindByPrimaryKey() method in the AccountBean implementation file. After that it crashes.
Can anyone tell me the possible solution.
I created a stateless bean and used ejbc to make the jar file . Then opened this jar file in the weblogic 5.1 deployer . When I added this file in the container it gave me a error
Compiler failed executable.exec([Ljava.lang.String;[C:/weblogic/bin/ejbc.exe, -classpath, "C:\weblogic\myserver\serverclasses;C:\weblogic\jre1_2\lib\tools.jar;C:\weblogic\jre1_2\jre\lib\rt.jar;C:\weblogic\jre1_2\jre\lib\i18n.jar;C:\weblogic\license;C:\weblogic\classes\b oot;C:\weblogic\classes;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\eval\cloudscape\lib\cloudscape.jar;C:\weblogic\license;C:\weblogic\classes;C:\weblogic\myserver\serverclasses;C: \weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\j2efinal.jar;C:\
When I deployed it , it was successfully deployed and I was able to connect with the client
Why was it is giving the error when I added the jar file in the container???
I am using weblogic 5.1 server and I am creating a new jar file through weblogic deployer tool . I am using the stateless session bean example to create my own jar file
In weblogic deployer tool I am adding the following file in the jar file
Trader.class(Remote class)
TraderBean.class (Bean class)
TradeResult.class
TraderHome.class(Home class)
ProcessingErrorException.class
ejb-jar.xml
weblogic-ejb-jar.xml
After giving the JNDI name and then add it into the container . The files are added into the container sucessfully and are deployed sucessfully .
But it does not create the stub and the skelton files which are created by ejbc . Due to this I am not able to connect through client. Why stub and skelton are not created whereas through ejbc it is created