Ajitha Rao

Greenhorn
+ Follow
since Aug 26, 2003
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 Ajitha Rao

I am working on a CIMD connect aplication.Out there if there is a error thrown by the SMSC the thread has to be interrupted and a new thread is started.The problem is that whenever the conn.stop() is called it throws a InterruptedException is thrown,which is not solving the purpose.Is there a way where I can avoid this exception and get things working fine.here is the code for start and stop methods.Help needed fast.
public void start() throws Exception
{
launcher.LOGGER.debug("CIMDCOnnection starting");
m_running = true;
smsc = new Socket(m_SMSCIP, m_SMSCPort);
bw = new BufferedWriter(new OutputStreamWriter(smsc.getOutputStream()));
is = smsc.getInputStream();
br = new BufferedReader(new InputStreamReader(is));
smscThread.start();
login();
kat.start();
launcher.LOGGER.debug("CIMDCOnnection started");
}
public void stop() throws Exception
{
launcher.LOGGER.debug("CIMDCOnnection stopping");
kat.stop();
m_running = false;
smscThread.interrupt();
smsc.shutdownOutput();
smsc.shutdownInput();
smsc.close();
launcher.LOGGER.debug("CIMDCOnnection stopped");
}
Thanks in advance.
HI,
Thanks for replying,I have just edited the jboss.jcml file.This is what I have added
<mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
<attribute name="Drivers">org.gjt.mm.mysql.Driver</attribute>
</mbean>
<mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=mySQLDB">
<attribute name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</attribute>
<!--
<attribute name="PoolName">DsMD</attribute>
<attribute name="URL">jdbc:mysql://localhost/databasename</attribute>
<attribute name="JDBCUser">aa</attribute>
<attribute name="Password">aa1</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="MaxSize">10</attribute>
<attribute name="GCEnabled">true</attribute>
<attribute name="InvalidateOnError">false</attribute>
<attribute name="TimestampUsed">true</attribute>
<attribute name="Blocking">true</attribute>
<attribute name="GCInterval">120000</attribute>
<attribute name="IdleTimeout">1800000</attribute>
<attribute name="IdleTimeoutEnabled">true</attribute>
<attribute name="LoggingEnabled">false</attribute>
<attribute name="MaxIdleTimeoutPercent">1.0</attribute>
<attribute name="MinSize">0</attribute>
</mbean>
That is all I have done.Another problem is when I run the jsp it says Attribute import has no value.PLease help.Do I need to modify any other file in jboss to indicate I am using beans??
Help req urgently.
Thanks,
Ajitha
20 years ago
Hi all,
I am using jboss2.4.3_tomcat3.2.3 and database Mysql.I have a bean thro which I make connection to Database- which is right now not happening.I have put the path in jboss.jcml.Do I need to do anything else??Help needed urgently.
Thanks,
Ajitha
20 years ago
PLease let me know how and where to register the Datasource and what to write in jboss.jcml file.I am using Mysql as database.I am new to jboss so I would really appreciate if u could elaborate on the procedure.
Thanks,Ajitha
20 years ago