Thanks. I'm aware of the fact that bean class is not needed on the client side.
One doesn't have to always have the remote and home interface classes on the
client side. For example, the following code works pretty well without those
interfaces on the client side (since there is no direct refere
Hi All,
Does the dynamic class downloading feature of RMI download any class that's not
available in the client's class path?
Let's say I have the following code on the client:
Object o = context.lookup("jndiName");
| ExampleHome h =
(ExampleHome)PortableRemoteObject.narrow(o,ExampleHome.cla
Did you mean to timeout on a statement execution (within a connection)?
If so, you can use Statement.setQueryTimeOut(int seconds). I don't think there
is any configurable way to set it on a statement via the -ds.xml or any other
way.
Thanks,
Kalyan.
View the original post :
http://www.jboss.
Since you are invoking EJBs from the init method of the Servlet, can I presume
that your EJBs here are only serving the application requirements, but not the
end user/client requirements? If that's the case, can you not use different
credentials to authenticate requests to those specific EJBs th
A small correction to the above logs. The second log is as shown below, but not
as shown in the first post:
Jul 11 14:50:26 INFO Deploying wmtp.FXTradeEntry
| Jul 11 14:50:26 INFO Deployed:
file:/home/wmtbuser/wmtp_wmtp-uat/ejbeans/fxtradeentry.jar
| Jul 11 14:50:27 INFO Deploying wmtp.Co
Hi All,
We are having a problem at times when our JBoss server does not deploy all the
beans listed in the jboss-serivce.xml file. For example, following is the log
from a server instance that hasn't deployed all the beans:
Jul 11 07:28:55 INFO Deploying wmtp.FXTradeEntry
| Jul 11 07:28:55 IN
Though I get the exception the newly created connection pool works. Moreover,
the stopDestroyAndRemoveMBean method first checks if the mbean is already
registered with the MBeanServer or not and only if it is registered, it will
try to stop, destroy and remove the mbean. It's strange that the
g
Hi,
I am writing an MBean to programmatically destroy an existing connection pool
and create a new one. As a part of this, I've implemented the below class and
deployed it on the JBoss AS 3.2.5.
import java.sql.Connection;
| import java.sql.Statement;
|
| import javax.management.*;
|
Hi,
Is there a way in which I can enable directory scanning in JBoss, so that
whenever I type in a URL in the browser like:
http://localhost:8080/config/files, I should be able to see what are the
contents of this config/files directory?
Thanks,
Kalyan.
View the original post :
http://www.j
Hi All,
We are running a JBoss server with sun.rmi.dgc.client.gcInterval and
sun.rmi.dgc.server.gcInterval values each set to 10 minutes. The following are
the Full GCs that are captured when the server is idle for about 110 minutes.
We have noticed that there is a constant rise of around 70MB
Thanks for your suggestions. I know that they won't compile. It's all pseudo
code. I'm sure if you have would have understood the context, you wouldn't have
tried to compile the class in your brain and you wouldn't have recited, what a
session bean does and what an entity bean is.
Regards,
Kaly
Thanks Scott,
Let's say, the Naming port is in clash and all the other ports are acquirable,
the server starts up with an exception on Naming port, but deploys all the
beans, creates the connection pools, etc. Now, when I invoke shutdown, I'm not
sure if all the connections are released from t
Hi,
If there is a port clash for any service, at the startup of the server, the
server throws an exception and carries forward with deploying the other
services. We would want the server to exit from starting up, whenever there is
a port clash during startup. Is there a way in which we can ach
Try as below:
|
|
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867436#3867436
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867436
---
SF
Let's say I have a singleton as below:
| public class Singleton
| {
| private TradeProcessor myProcessor = null; // SSB
| private static Singleton INSTANCE = new Singleton();
|
| private Singleton()
| {
| //lookup something and then create as below
|
Are your client and bean running in different VMs? If so, you can't access a
local ejbean from your client. Local beans are different from Remote beans.
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867107#3867107
Reply to the post :
http
You have to declare Libro sal, outside the try,catch block. Otherwise it's not
visible to the statements outside the block.
Libro sal = null;
try
{
Context contexto = new InitialContext();
Object ref = contexto.lookup("Libro");
LibroHome home =
(LibroHome) PortableRemoteObject.narrow(ref,Beans.L
One way I can think of is (though not exactly what you wanted):
1. Get all the Roles of the given user: appUser.appRoles()
2. Get all the Roles defined: appRole.fetchAllRoles()
Subtract 1 from 2, and you will have, all the roles that are not assigned to
the given user.
Moreover, you need to ha
You cannot access "Local" EJBs outside your app VM. Can you? I guess that could
be a reason for your exception.
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867024#3867024
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=po
Did you try using 'jnp.disableDisvoery=true' on your server?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867023#3867023
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867023
What's the exact exception?
Kalyan
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865309#3865309
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865309
---
This SF.
Can you not bind the key/name to the JNDI tree? If you do so, in clustering
scenarios, HA JNDI will take care of replicating the key/name to the other
JNDIs in the cluster.
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864383#3864383
Reply
The JMX Console shows you the number of connections used, created, etc. for the
Connection pool. Also, did you check if your database server has run out of
connections?
Thanks,
Kalyan
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3862055#3862055
Reply to t
We are using JBoss application server in our application as a middle-tier. We
are using JBoss JCA to create connection pools to the required databases. In
order to do this, we are generating a sybase-ds.xml file at the server startup
and then JBoss loads this service and creates the specified co
Hi,
We are having a problem while creating a new connection from a connection pool.
We have some temp tables that are to be created once the connection is created
and before it is returned to the user. We have specified these tables in the
new-connection-sql element of the *-ds.xml. For some of
Yes, this database mapping has been there for years and the corresponding code
is also there for years. We have a peculiar problem here. The following is what
we do currently:
1. During the server startup, create the required connection pools. For example
CP1, CP2 and CP3. Each of them has the
Hi,
Is there a way in which I can bind a data source (connection pool to a
relational database) to multiple jndi-names? We have a situation where the
developers do not know the actual jndi names of the data sources. They are
given a logical pool name (which is related to their functionality) an
Hi,
We have a stateful session bean, and we have deployed it in JBoss 3.2.5 AS. We
have noticed that when the server tries to passivate the bean, it tires to
serialize the bean (and it's instance variables) to the file system. Some of
our instance variables are not serializable and hence we ar
jbossmq.jar seems to be missing in your /lib directory.
I see the below error in you trace.
Caused by: java.lang.NoClassDefFoundError: org/jboss/mq/SpyDestination
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
at java.
Oops!! Yes you are right. My logic is incorrect.
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859471#3859471
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859471
-
I'm not sure if the setInvokerURL method is called after the startService
method is called or not. If the startService method is called first and then
the setInvokerURL is called later, your setting should work. Other way around,
will not work for you. From your exception, it seems as if setInv
The following is the method (in JBoss code) that's returning the internal ip
address:
protected void checkInvokerURL() throws UnknownHostException
|{
| if( invokerURL == null )
| {
| InetAddress addr = InetAddress.getLocalHost();
| String host = useH
Put this jar file in the default/deploy directory (if you are running the
default configuration server). Then this bean is ready for deployment. When you
start the server, this bean will get deployed and will be ready to be accessed
by your index.jsp. Make sure that you have the following entry
Are you able to get to the page : http://[public host name] (from your URL)
from outside? If not, you might have to look at this page:
http://www.jboss.org/wiki/Wiki.jsp?page=UsingJBossBehindAFirewall
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtop
What do you want to know? Are you not sure about the configuration of JBoss or
about how to write code for EJB?
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859290#3859290
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=po
Are you having the updated bean remote interface in the client class path?
What's your client class path setup to?
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858215#3858215
Reply to the post :
http://www.jboss.org/index.html?module=bb&o
Thanks for your suggestion genman. Right now, we are using 3.2.5. How different
is 3.2.6 from 3.2.5? Probably I'll have to go through the release notes.
Meanwhile, to update you, Scott, we did another round of testing with the JVM
IL. The results are excellent. For my testcase, with the same lo
Thanks for your reply Scott.
We have figured out that the deadlock is because of the method
validateSoftReferenceDepth method in MessageCache. We have commented out the
calls to that method and the server works fine. We have run 225 clients , each
hitting the server every 100 secs for 2.5 days
Thanks for the reply Scott
Yes, we are aware that a connection has to be closed once it's usage is over.
In fact, there are no threads hanging in the server if the clients are all
killed. That part of the functionality is working fine. The problem is with the
number of threads alive when the cl
Hi,
We are running a test case where in the following happens:
1. Client creates a temporary queue and sends the name to a stateless session
bean
2. The session bean does some work and puts back the result on the temporary
queue.
3. The client receives the message.
When testing this behaviour
Hi,
We are running a test application to simulate a load test of 100 clients
connecting to one instance of JBoss server using temporary queues. In this
setup each client sends a request to the server every 100 seconds. So, we are
simulating a situation of 1 hit/sec on the server.
In the test s
Look at this thread
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=31894
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856718#3856718
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856718
Thanks a lot Adrian
Regards,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856350#3856350
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856350
---
SF emai
Thanks for the reply Adrian
I have searched the forums with the words "minimum connection" ,
"min-pool-size", "pool filler" in various combinations, but couldn't get to see
many posts that have any answer to my question. So, I'm resorting back to you,
if you can provide me of any links, or sear
Thanks Scott,
I had missed a property on the server side for Dynamic Classloading. The
DownloadServerClasses property of jboss:service=Webservice MBean was set to
false. I changed it to true and now I see that the classes are being downloaded
from the server (I had put some log statements in th
Look at this:
http://jakarta.apache.org/commons/pool/
May be this might be of help.
Like scott said, it would be an overkill to use JCA unless you require all the
three features provided by JCA:
1. Connection management
2. Transaction management
3. Security
Thanks,
Kalyan.
View the original
Do a :
System.setSecurityManager(new RMISecurityManager())
in your client code.
Also include a policy file with "all" permissions.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855692#3855692
Reply to the post :
http://www.jboss.org/index.html?module=bb
Hi,
I'm accessing a relational database using JBoss JCA. In the *-ds.xml I have
mentioned the min-pool-size to be 5. But I notice that these connections not
are created until a query is executed for the first time (that requires a
connection from this connection pool).
I have a situation wher
What's the exception it gives while deploying the second one?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855609#3855609
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855609
---
You might have to take a look at 'spring framework' by Rod Johnson. It's
getting famous these days.
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855535#3855535
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=
Look at my replies for similar posts. I too had the same problem, and solved it
using the approach that I have mentioned:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=52269
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=56560
HTH,
Thanks,
Kalyan
View the original post :
Essentially there are three ports are to be visible across the firewall.
(Without JMS in the picture).
1. rmi object port
2. rmi port
3. naming port
Depending on the Invocation Layer you use, you might also require to open a
port for JMS.
4. UIL2 server bind port.
Look at the following link:
For every message that comes into the JMS Server via UIL2, the SocketManager
seems to be starting two threads: One ReadTask and another WriteTask. So, you
are seeing two threads for every message.
Your test is a good one. But for every run, you are creating the following:
1) Connection
2) Sessio
This could be of help:
http://www.jboss.org/wiki/Wiki.jsp?page=ConfiguringMultipleJBossInstancesOnOneMachine
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855459#3855459
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posti
To my knowledge, the SocketManager spawns a thread for every request or message
that comes in (via JMS). Once it returns back the result, it must remove the
corresponding resources. I'm sure the code would be doing this as well.
How did you increase the no. of clients to 50? Is the client you a
The downloaded version of 3.2.5 works pretty well out of the box. So, you need
not feel that it's incomplete.
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855357#3855357
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=post
What do you mean by reconnecting to a queue?
Also, this is a problem with the server side JMS code, that you would have
written. This could be a problem because of the proliferation of queue
connections or queue sessions.
If you are doing something like below, for every message you send back,
Can you not include the jars in the class path? The entry can be made in the
conf/jboss-service.xml file.
Extract the jars in the ear file to a location (ex: /home/mylib/)
Include the following line in the jboss-service.xml file:
This way the jars are in the classpath and hence available to a
No one has ever got this problem? Are there any places where I can check if my
configuration is correct or not?
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855061#3855061
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=p
Adding or restating to what Mike said:
If the three queries ( to the db and to the two external applications), can
happen concurrently, create 3 MDBs one for the db and one each for the two
external applications. Create 3 temporary queues and send the message (or
command wrapped in a message) t
Thanks Scott
Regards,
Kalyan
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855024#3855024
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855024
---
This SF.Net ema
Hi,
Today I have seen a situation where the client, automatically picks up the
local host to execute a bean call, even if you specify the PROVIDER_URL to be
pointing to someother machine (and in case the remote server is down).
This is how it happened:
I had a test ejb deployed on a remote ma
That's true. Hot deploy doesn't seem to be working all the times. Even we have
faced the same issue with hot deploy. Though the server says (from the log),
that it undeployed the bean, it actually doesn't seem to be doing so.
We've tried to look around, and found some stuff in the tmp directory
I wrote a simple test bean, and even that doesn't work: For those curious,
below is the code:
(Please note that the client is running on Windows and the server is on a
solaris machine)
Client:
| package test.ejb.client;
|
| import java.lang.reflect.Method;
| import java.util.Properti
Though a crosspost, I thought that this is the appropriate forum. Please see
below:
Hi,
I am running a client that accesses a bean that is deployed on a JBoss 3.2.5
server. I get a ClassNotFoundException for the bean home class while looking it
up using JNDI. I have looked at the previous pos
I have gone through the documentation of JBoss, and figured out that this can
be done. But I don't see how this can be implemented (from the documentation).
Can someone please let me know if this is possible or not?
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?mod
Hi,
I am running a client that accesses a bean that is deployed on a JBoss 3.2.5
server. I get a ClassNotFoundException for the bean home class while looking it
up using JNDI. I have looked at the previous posts on the same issue, and we
have installed the RMISecurityManager on the client and h
Hi,
Is there a way to access the same bean deployed in JBoss server, over both JNP and
HTTP? We have ejbeans deployed on a JBoss server, which are accessed by users both
inside and outside the firewall. For those inside the firewall, we want them to use
JNP as it is more efficient and for those
I **guess** this feature is provided to faciliate the creation of NamingContext in
clustering scenarios. Looks like HA JNDI is used as the JNDI provider in clusters and
hence, even if you do not provide PROVIDER_URL value, it will try to obtain a
NamingContext, if it could find any server in the
Why can't a SAR be deployed with PrefixDeploymentSorter? I don't see any reason for
not employing this technique.
>From what you say (or from the comments in jboss-service.xml), it appears that, SARs
>should get deployed first. But from the exception that's mentioned, it shows that the
>SARs a
I got it!! I can give specify each and every service separately in the
conf/jboss-service.xml file of each server instance. That will solve my problem.
Thanks,
Kalyan
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852857#3852857
Reply to the post :
http://w
You could probably use URLDeploymentSorter in your conf/jboss-service.xml file and
make your jboss-jca.sar file get deployed before anyother services are deployed.
For example:
| org.jboss.deployment.scanner.PrefixDeploymentSorter
|
|
| 1.deploy/jboss-jca.sar
|
|
HTH,
Kalyan.
You can deploy your 2 instances of the EAR files in a single instance of JBoss. The
required configuration depends on what specific things you are doing within your EAR
files. (Like JDBC, JMS, etc.).
For a simple test of whether they are getting deployed or not, place them under the
JBOSS_HOME
Hi,
we require two jboss servers running with different beans deployed in each of them.
One of the servers require JMS / Mail services and the other doesn't require them. We
have configured JBoss in such a way that, we'll have the same root bin, lib, and
deploy directories for both the servers
Curious to know. Why did j2ee.jar cause the problem?
Thanks,
Kalyan.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852819#3852819
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852819
---
75 matches
Mail list logo