Anyone know how to acesses the datasource connection remotely I am getting the
problem with getBinaryStream I kept the
use-java-contextfalse/use-java-context in my datasource file
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4055171#4055171
Reply to
Not really sure why you are getting an error with the getBinaryStream function,
but you really should not use this design. It is an anti pattern. Please look
at the footnote at the bottom of this wiki article.
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources
You definitly want to
Hi Jhowell,
Fell pleasure to see your reply thanks for your reply.Actually my application
is a desktop application .Ad when I made the mysql connection using datasource
nad if I keep use-java-contexttrue/use-java-context then I got the error
that the not able to lookup my jndi name.
My
I am using MDB which able tolisen on only one particular wqueue how will make
my single mdb to listen on more than on e queue I am trying it by using the
tag of destination-jndi-namequeue/D/destination-jndi-name but iis not
working it is working fine with onlye one mdb.
If anyone
I would like to thanks the way you reply me its pleasurable Well still I am
working on the same track as I said previouslly that I am getting the problem
with the geMessagecounter() metod that will get soloved as I used inside the
session stateless bean..
Well but still I alwayes get
I haven't worked with jms much, so i don't know, but i took a look at MBean
attributes, this one monitoring queue, and there are two attributes which are
the ones you need:
ScheduledMessageCount
InProcessMessageCount
But i don't know how they work, you must to check them.
Best regards
Hello
If you really need remote access you need to change one line in your code.
Change this line:
MBeanServer server = MBeanServerLocator.locateJBoss();
to this one:
MBeanServerConnection server = (MBeanServerConnection)
ictx.lookup(jmx/invoker/RMIAdaptor);
That should help.
Best regards.
yes ,, hay thanks for ur reply as I get confident from your reply because
before reading your reply I did the things which you mentioned but the thing
is that only the getQueueDepth is working which is nothing but the tolal
number fo the messages in the queue..Other attributes like the
milind.uc wrote : yes ,, hay thanks for ur reply as I get confidence from
your reply because before reading your reply I did the things which you
mentioned but the thing is that only the getQueueDepth is working which is
nothing but the tolal number fo the messages in the queue..Other
Hello
It looks that reference to this object cannot be sent outside JVM in which this
object lives. This is an simple object, not bean, so you cannot access it.
Honestly I don't know how to do that. From inside server you could access and
use that reference.
So... personally i would create
Well I jsut came here now I am going to try it with the ejbs lets see ,,, I
tried to serialize the object also but it didnt work . And yes do you have
idea that how to find the scheduled and pending message count for the
particular queue. As I said that as per our meanserver methods I am
milind.uc wrote : milind.uc wrote : Well I jsut came here now I am going to
try it with the ejbs lets see ,,, I tried to serialize the object also but it
didnt work . And yes do you have idea that how to find the scheduled and
pending message count for the particular queue. As I said that
Thanks for your reply.
The problem with my Queue was that described in section 2. I did not call
connection.start() method. My mistake.
If we talk about books: i haven't seen any good one.
I learned from Jboss wiki knowledgebase:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMX
If you have
Dear Victor,
Feel happy as ur problem get solved... Well I tried the code sample which you
have been written for me but I am getting problem in it.
|
| String domain = jboss.mq.destination;
| String service = service=Queue;
| String name = name=testQueue;
|
Hmm...
This line:
MBeanServer server = MBeanServerLocator.locateJBoss();
should work when calling from non-MBean, for example from EJB session bean in
the same JVM.
I don't think that you calling it in this way.
I have JBoss 4.0.5 GA, but that class was available in version 3.2.7 or even
yes ,, I think I am doing the mistake while using it actually I am using it fom
simple pojo class.
| public class Sender_Count
| {
|
|
|
|
|
| public static QueueConnectionFactoryfactory = null;
| public static QueueConnection
Hello
I have a solution for you. The key is JMX API.
As you know there is a MBean which you can view using jboss jmx console.
One thing we have to do is to acces that MBean. Here is some code i have
written for you:
String domain = jboss.mq.destination;
| String service =
17 matches
Mail list logo