This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!

Ganesh Gore

Greenhorn
+ Follow
since Jan 03, 2011
Ganesh likes ...
Eclipse IDE Spring Java
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
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ganesh Gore

You want folder structure or Objects structure ....?
8 years ago
JSP

dharma lingam s wrote:hi all,

i am running make command inside the Runtime.exec() command. but its not fully completed how to achieve this.



how to acheive this one. After the full completely execution of 'make' only it have to print. But its printing and exiting earlier. Any idea.???




Simply add the below line....
p1.destroy();
8 years ago
Your doubt is related to "Build/ Deployment and Software Configuration Management". There certain top notch Configuration/Versioning tools available like IBM Clearcase, Win CVS or free ones like Tortoise SVN, Subversion. These tools basically maintain a code repository(collection of resources like source code, documents on a network file system).

Every developer in the team takes code (which is to be modified) from this repository. This operation is called checkout. Once changes are done modified/new files are updated in the repository. This operation is called checkin. End of the day, the updated code in the repository is used to prepare build/package for deployment which will contain all the recent changes in the code. For all these tools there plugins available which can be integrated into IDEs like Eclipse.

In order to prepare built ANT or Maven can be used. Check http://www.java2s.com/Tutorial/Java/0520__Ant/Catalog0520__Ant.htm for more info on ANT.

8 years ago
<?xml version="1.0" encoding="UTF-8"?>
<!--
** This file was automatically generated by
** EJBGen WebLogic Server 10.0 SP0 Wed May 9 18:10:27 EDT 2007 933139
-->
<weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/10.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/10.0 http://www.bea.com/ns/weblogic/10.0/weblogic-ejb-jar.xsd">
<weblogic-enterprise-bean>
<ejb-name>EventQueueListener</ejb-name>
<message-driven-descriptor>
<pool>
<initial-beans-in-free-pool>2</initial-beans-in-free-pool>
<max-beans-in-free-pool>10</max-beans-in-free-pool>
</pool>
<destination-jndi-name>jms/FCBSchedularRequestQ</destination-jndi-name>
<connection-factory-jndi-name>
jms/FCBSchedularQM
</connection-factory-jndi-name>
<jms-polling-interval-seconds>
1
</jms-polling-interval-seconds>
</message-driven-descriptor>
<transaction-descriptor>
<trans-timeout-seconds>10</trans-timeout-seconds>
</transaction-descriptor>
<dispatch-policy>FCRJGefuSchedulerNHWM</dispatch-policy>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar id="ejb-jar_ID">
<display-name>FCRJGefuSchedulerNH</display-name>
<enterprise-beans>
<message-driven>
<ejb-name>EventQueueListener</ejb-name>
<ejb-class>com.iflex.fcr.nh.xface.EventQueueListener</ejb-class>
<transaction-type>Bean</transaction-type>
<acknowledge-mode>Auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
</message-driven>
</enterprise-beans>
</ejb-jar>
Hello,

Please find the error log below....


<Sep 2, 2013 2:45:13 PM GMT+05:30> <Warning> <EJB> <BEA-010096> <The Message-Driven EJB: EventQueueListener is unable to connect to the JMS destination or bind to JCA resource adapter: jms/FCBSchedularRequestQ. Connection failed after 2 attempts. The MDB will attempt to reconnect/rebind every 1 seconds. This log message will repeat every 600 seconds until the condition clears.>
<Sep 2, 2013 2:45:13 PM GMT+05:30> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB: EventQueueListener is unable to connect to the JMS destination: jms/FCBSchedularRequestQ. The Error was:
[EJB:011014]The Message-Driven EJB failed while creating a JMS Connection. The error was:
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '10.180.183.208:FCBSchedularQM'
Linked exception: com.ibm.mq.MQException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
Nested exception: com.ibm.mqservices.MQInternalException: MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009.
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '10.180.183.208:FCBSchedularQM'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2110)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1532)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:150)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:185)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:112)
at weblogic.ejb.container.internal.JMSConnectionPoller.getConnection(JMSConnectionPoller.java:487)
at weblogic.ejb.container.internal.JMSConnectionPoller.createJMSConnection(JMSConnectionPoller.java:1991)
at weblogic.ejb.container.internal.JMSConnectionPoller.connect(JMSConnectionPoller.java:826)
at weblogic.ejb.container.internal.MDConnectionManager.timerExpired(MDConnectionManager.java:170)
at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
NestedException Message is :MQJMS2005: failed to create MQQueueManager for '10.180.183.208:FCBSchedularQM'>


Anayonkar Shivalkar wrote:

Ganesh Gore wrote:Then where are the common methods like Equal and Hashcode are defined.


Did you specifically look for those methods? Because in Oracle's JDK, equals method is not native, but hashCode method is native.




Yes I wanted to see how hashcode is generated in hashcode method of Object class.
10 years ago
Thank you Jesper, this is the reply I was expecting .
10 years ago

Mahesh Kedari wrote:You need to add sources jar along with your binary jar into IDE for viewing the source code if not added by default.




I know that, I have the Oject.java file but there are method definitons inside. Then where are the common methods like Equal and Hashcode are defined. Because only their declaration is present as seen in source file. Please check and let me know.
10 years ago
Hello Ranchers,

I usually study java source to learn how it work at backend. But when I saw the Oject class I only found the method declaration and no definitions. Can anyone tell the reason or can provide the source for Oject class containing all methosddefinitions.


Thanks in advance.

10 years ago
I tried to check the stack trace through JConsole. Even after execution is finished it shows runnable state.


Name: Thread-3877
State: RUNNABLE
Total blocked: 0 Total waited: 0

Stack trace:
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(Unknown Source)
com.trilead.ssh2.crypto.cipher.CipherInputStream.fill_buffer(CipherInputStream.java:41)
com.trilead.ssh2.crypto.cipher.CipherInputStream.internal_read(CipherInputStream.java:52)
com.trilead.ssh2.crypto.cipher.CipherInputStream.getBlock(CipherInputStream.java:79)
com.trilead.ssh2.crypto.cipher.CipherInputStream.read(CipherInputStream.java:108)
com.trilead.ssh2.transport.TransportConnection.receiveMessage(TransportConnection.java:232)
com.trilead.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:670)
com.trilead.ssh2.transport.TransportManager$1.run(TransportManager.java:469)
java.lang.Thread.run(Unknown Source)
Yes even if I paste word code, can I get some code which will remove these special charactes before submitting the form.
Hello Ranchers,

When I try to copy data from a word document into a "textarea", the bullets in the document appear to be garbage characters when pasted into the textarea.

Thanks in advance.
Hey thank you Steve for your valuable reply. Will soon investigate the code and will get back to you soon.
Using a "ThreadPoolExecutor " can help in this case?
In such case the best option is to write some code in other JSPs and include them in your main JSP. And inlcude them using <jsp:include> and not <@ include>.
10 years ago
JSP