magesh sripathy

Greenhorn
+ Follow
since Apr 06, 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 magesh sripathy

Hi ,

I have made the domain,jms server name and the name(and jndi name) of the destinations diffrent in both the servers.
But Still I could able to get the connection.

Regards,
Magesh.S
11 years ago
Hi Suresh,

Should the Name of the queue in both the server should be different or the Jndi name of the queue.Could you please clarrify me?


Regards,
Magesh.S
11 years ago
Hi,

I have my web application deployed in weblogic(weblogic1) and I have my destinations(JMS Queue and connection factory) deployed in another weblogic(weblogic2).When I try to get the connection factory and destination through the JNDI from my webapplication,I could not able to get the connection.

However I could able to get the connection to weblogic2 when I try to get the context from a standalone java program.

I also tried Foriegn server in weblogic ,but nothing worked for me.

Do we need to set anything in weblogic admin console,so that code running in one weblogic server can get the context of the other weblogic?Can any one help me on this?



11 years ago
MY scenario is:

(1) My queue has old JMS object Message .Lets say the message in the queue has the serialized object of type class mail
(2)Due to a new requirement I have added a new method to the class mail
(3)Now if try to retrive the object mail from the old message in the queue,I get a "weblogic.jms.common.JMSException: Error deserializing object(local class incompatible: stream classdesc serialVersionUID = 500568024477408449, local class serialVersionUID = 3652857871964423418
)" .

Is there is any mechanism to overcome this since my requirement demands me to add a new method to the mail class.

Can any one please help me out .

Regards,

Magesh.S
Hi,

[Removed illegal request - Christophe]

Thanks,
Magesh.S
[ February 29, 2008: Message edited by: Christophe Verre ]
If you want your ejb to call the class in a webmodule,move those classes in the APP-INF directory of the application ,so that both your ejb module and your webmodule can able to access it now.
Is it possible to write the buisness method in the container managed entity beans other than the setter and getter methods of the persistence fields.
i have created a simple ejb and deployed it in Weblogic, using the generated .jar file.
I then created a webmodule containg a jsp and i have deployed in weblogic .
when i try to call the ejb from the jsp in the webmodule i am getting a
noclassdeffounderror.

my ejb-jar.xml

<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>sampleAccess</ejb-name>
<home>com.sampleejb.SampleejbHome</home>
<remote>com.sampleejb.Sampleejb</remote>
<ejb-class>com.sampleejb.SampleejbBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>

my weblogic-ejb-jar.xml looks like#
weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>sampleAccess</ejb-name>
<jndi-name>nickname</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>


my web-xml looks like

<web-app>
<ejb-ref>
<ejb-ref-name>ejb1</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.sampleejb.SampleejbHome</home>
<remote>com.sampleejb.Sampleejb</remote>
</ejb-ref>
</web-app>


my weblogic.xml looks like

<weblogic-web-app>
<reference-descriptor>
<resource-description>
<res-ref-name/>
<jndi-name/>
</resource-description>
<ejb-reference-description>
<ejb-ref-name>ejb1</ejb-ref-name>
<jndi-name>nickname</jndi-name>
</ejb-reference-description>
</reference-descriptor>
</weblogic-web-app>

if i include the ejb home and remote interface class in the webmodule it works fine.can you help in solving the above issue without adding the ejb interface in the webmodule....


Regards,
Magesh.s
can you also please tell me the link for downloading scjp logo....
Hi all,

I have cleared the scwcd with 92%..Thank you java ranch for the support..

Can anyone help me out how to get the scwcd logo..

[Let's keep things public. Thanks! - Marc Peabody]
[ October 25, 2006: Message edited by: Marc Peabody ]
Hi all,

i have gone through head first.is it necesaary to study servlet and jsp spec for the exam and if it is ,where i can get the specs.

Regards,
Magesh.s
you meant to say that two object of type dog has been created......
i dont think so........when I tried the example i got the correct output....can you please specify what you have in the context intialized method and what output you are getting......


Regards,
Magesh.s
Hi,

just have a look at the extension of the file name .It may be a text file instead of JSP file,So while saving te file ,enter the file name in double quotes ie "result.jsp" in the save as dialog box.Restart the Tomcat ,i hope now you will get the correct output.

Regards,
Magesh.s
SCJP-98%
SCWCD-Inprogress
Hi all,

i have a basic doubt of how to deploy the servlet in tomcat....

i have a servlet name sample.java in the folder structure
jdk 1.5/bin/com/example/web/sample.java..i need to compile this and i need to place the class files under the folder tomcat/webapps/sam/com/example/web ..
how i can do this....

when i compile this as below

d:/jdk1.5/bin> javac com/example/web/sample.java

it throws the numerous compile error like package javax.servlet and javax.servlet.http cannot be found ..please guide me as i am very new to servlet..


Regards,

Magesh.s
hi all,

i gave my scjp exam on may 7.But still i didn't got my certificate...please update me on to whome we should contact in case of
further delay.....



Regards,
Magesh.s
scjp-98%