Win a copy of Terraform in Action this week in the Cloud forum!

Srinivas Katta

Ranch Hand
+ Follow
since Feb 01, 2007
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 Srinivas Katta

Hi,

We have a requirement to list all the durable subscriptions from the JMS topic and written below code to get the Topic name

Topic topic = null;
Properties p = new Properties( );
p.put(Context.PROVIDER_URL, "jnp://localhost:1099");
p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES," org.jboss.naming:org.jnp.interfaces");

Context ctx = new InitialContext(p);

// Locate the Topic Connection Factory via JNDI
TopicConnectionFactory factory =
(TopicConnectionFactory) ctx.lookup(
"ConnectionFactory");

try
{
topic = (Topic) ctx.lookup("/topic/AB_MessageStore");
System.out.println("Topic Name:" + topic.getTopicName());
}
catch (NameNotFoundException exc)
{
exc.printStackTrace();
System.out.println("AB_MessageStore Topic not found");
}

Please let me know if anybody have any idea to list the subscriptions in that topic

Thanks
Srinivas

Hi All,

We have a requirement to send messages to the Web clients from the Server, We have chosen Java Web sockets to achieve this.

Our requirement is to use JBoss server

If Any body have exposure on this, can you pelase share your thoughts

Thanks
Srinivas
Hi,

I developed a Program to use Windows native commands from the Java to Copy Folders and files from one location to other location. Is there any way that I can preserve the Original file stamps for the files copied

Thanks
Srinivas
8 years ago
Hi,

I have a requirement to develop a batch file which checks whether JBoss is running on windows system, if it is running, I need to Stop the Jboss and Start the Jboss again

any body have did this before

thanks
Srinivas
8 years ago
Hi,

I need to execute a Java Program before JBoss Start up, Is it possible to have this piece in run.bat of JBoss

Thanks
Srinivas
8 years ago
Hi,

I have Configured Eclipse Indigo with JBoss 4 to Deploy Java Web Project. When Deploying it is Building war file into tmp folder then moving war file in zip format to the Deploy folder. I am running the Server in Debug mode and is working fine

When ever I changes a piece of code, it Re publishes the whole war file copies to tmp then moves to deploy folder and Re starting the JBoss

Is there any way that I set to publish only changes I did and not to Re start Jboss

Thanks
Srinivas
8 years ago
Hi,

I am unable to Deploy the war file from JBoss 4, The war file was built from Eclipse
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: D:\eclipse\jboss-4.0.0RC2\bin\\..

JAVA: C:\Program Files\Java\jdk1.6.0_21\bin\java

JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m

CLASSPATH: C:\Program Files\Java\jdk1.6.0_21\lib\tools.jar;D:\eclipse\jboss-4.
0.0RC2\bin\\run.jar
.
===============================================================================
.
06:45:13,359 INFO [Server] Starting JBoss (MX MicroKernel)...
06:45:13,375 INFO [Server] Release ID: JBoss [Zion] 4.0.0RC2 (build: CVSTag=HEA
D date=200409051753)
06:45:13,375 INFO [Server] Home Dir: D:\eclipse\jboss-4.0.0RC2
06:45:13,375 INFO [Server] Home URL: file:/D:/eclipse/jboss-4.0.0RC2/
06:45:13,375 INFO [Server] Library URL: file:/D:/eclipse/jboss-4.0.0RC2/lib/
06:45:13,390 INFO [Server] Patch URL: null
06:45:13,390 INFO [Server] Server Name: default
06:45:13,390 INFO [Server] Server Home Dir: D:\eclipse\jboss-4.0.0RC2\server\de
fault
06:45:13,390 INFO [Server] Server Home URL: file:/D:/eclipse/jboss-4.0.0RC2/ser
ver/default/
06:45:13,390 INFO [Server] Server Data Dir: D:\eclipse\jboss-4.0.0RC2\server\de
fault\data
06:45:13,406 INFO [Server] Server Temp Dir: D:\eclipse\jboss-4.0.0RC2\server\de
fault\tmp
06:45:13,406 INFO [Server] Server Config URL: file:/D:/eclipse/jboss-4.0.0RC2/s
erver/default/conf/
06:45:13,406 INFO [Server] Server Library URL: file:/D:/eclipse/jboss-4.0.0RC2/
server/default/lib/
06:45:13,406 INFO [Server] Root Deployment Filename: jboss-service.xml
06:45:13,437 INFO [Server] Starting General Purpose Architecture (GPA)...
06:45:17,578 INFO [ServerInfo] Java version: 1.6.0_21,Sun Microsystems Inc.
06:45:17,578 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 17.0-b17,Sun
Microsystems Inc.
06:45:17,578 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
06:45:24,984 INFO [Server] Core system initialized
06:46:14,296 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:log4j.xml
06:46:27,375 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=5
0, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jbo
ss.net.sockets.DefaultSocketFactory@ad093076
06:46:32,953 INFO [WebService] Using RMI server codebase: http://OSI-L-0030:808
3/
06:47:25,703 INFO [RARDeployment] Required license terms exist view the META-IN
F/ra.xml: file:/D:/eclipse/jboss-4.0.0RC2/server/default/deploy/jboss-local-jdbc
.rar
06:47:28,015 INFO [RARDeployment] Required license terms exist view the META-IN
F/ra.xml: file:/D:/eclipse/jboss-4.0.0RC2/server/default/deploy/jboss-xa-jdbc.rar
06:47:39,515 INFO [Embedded] Catalina naming disabled
06:47:44,921 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0
-8080
06:47:45,203 INFO [Catalina] Initialization processed in 3907 ms
06:47:45,203 INFO [StandardService] Starting service jboss.web
06:47:45,218 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.2
8
06:47:45,437 INFO [StandardHost] XML validation disabled
06:47:45,640 INFO [Catalina] Server startup in 437 ms
06:47:46,812 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/D:/ec
lipse/jboss-4.0.0RC2/server/default/deploy/http-invoker.sar/invoker.war/
06:47:55,906 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/D:/ecli
pse/jboss-4.0.0RC2/server/default/tmp/deploy/tmp3639620099034054675jboss-ws4ee-e
xp.war/
06:47:59,031 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/D:/eclipse/j
boss-4.0.0RC2/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
06:48:01,343 INFO [WrapperDataSourceService] Bound connection factory for resou
rce adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=Defa
ultDS to JNDI name 'java:DefaultDS'
06:48:05,156 INFO [WrapperDataSourceService] Bound connection factory for resou
rce adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=java
.hrTxDataSource to JNDI name 'java.hrTxDataSource'

It stays at last line for ever

Please help

Thanks
Srinivas
8 years ago
Hi,

I have a requirement where I need to get a Records those are greater than Current month and Year from Oracle Database

For ex:
We have a Column name requested_start_time which will store data like 01-DEC-12 09.00.00.000000000 AM, We need to have all the records that are scheduled in future from current Date


Any help in this regard is highly appreciated

Thanks
Srinivas
Hi,

We are using JBoss 4.0 in Linux environment with Java, We are planning to Upgrade JBoss


Can one of you suggest me what is the latest stable version of JBoss for Linux environment (We hosted Java application) and any performance hits

Thanks
Srinivas
10 years ago
Hi All,

What is the Recommended idle-timeout value for JBOss DB Connection Pooling, I know that it is 15 Mins as Default value

We are facing an issue with DB Connection Pooling as DB Connection are getting exhausted once in a while and unable to create teh DB Connections

Our Application is hosted on JBoss and Developed in Java

any help in this regard is Highly appreciated

Thanks
Srinivas
10 years ago
Hi,

I have Deployed the application in JBoss and trying to login from the application but we are getting DB Connectivity issues as below
---------------------------------------------------------------------------------
Caused by: java.sql.SQLException: The Network Adapter could not establish the connection
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:151)
-------------------------------------------------------------------------------------------

We have the Required Oracle Driver jar file in default/lib folder and tried having thsi jar in WEB-INF/lib folder also

I can ping the DB Server from App server and can telnet the port

Please let me know if anybody encountered this issue

Thanks
Srinivas
10 years ago
Thank You, I will Check this
10 years ago
Thank you for the Response

We have the Server configured in Cluster mode, Is there any way to access jmx-console

When I tried with <Domain name>/jmx-console it i snot accessible

Thanks
Srinivas
10 years ago
Hi All,

Is there any Way to Monitor DB Connection Pool usages while JBoss is running with Oracle DB using jmx-console, Can some one explain if this is Possible.

Thanks
Srinivas
10 years ago
The below is the oracle-ds.cml file entries
-----------------------------------------------------------------------------------
<datasources>
<local-tx-datasource>
<use-java-context>false</use-java-context>
<jndi-name>java.hrTxDataSource</jndi-name>
<connection-url>jdbc:oracle:thin:hruat/hruat@//hrdev-scan.1800registry.com:1531/HRDEV</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>

</local-tx-datasource>
</datasources>
----------------------------------------------------------------------------------------------

We are getting the below Error
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(ERR=1153)(VSNNUM=186647040)(ERROR_STACK=(ERROR=(CODE=1153)(EMFI=4)(ARGS='(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.50.162)(PORT=1521))(CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))null))'))(ERROR=(CODE=303)(EMFI=1)))))
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:161)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:508)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:207)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:534)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:396)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:299)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:448)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:838)


But The DB Server can Ping from the System where JBoss is running

Thanks
Srinivas
10 years ago