[JBoss-user] [Clustering/JBoss] - Re: how to bind a serializable object into HA-JNDI

2004-06-29 Thread maroni
Sorry, thats a misunderstanding. I was not precise enough.
 
Using port 1100, thats what I did, and the name IS definitely in HA-JNDI. When I 
do a lookup on all the nodes of the cluster, the name is bound and there. But when I 
want to access the returned object, its null. 

For binding, I used the NonSerializableFactory class, and obviously thats the 
reason why this does not work (according to what I read in the forum). But what can I 
use instead? How can I bind an object to HA-JNDI so that it stays serializable?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840295#3840295

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840295


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - how to bind a serializable object into HA-JNDI

2004-06-28 Thread maroni
Hi,
Can anybody help me? This JNDI is driving me mad...
How can I bind a serializable(!) object to HA-JNDI, so that this object can be 
accessed and used clusterwide? Or is it just a dream I have?

I know that there is a NonSerializableFactory to bind things into (HA-)JNDI, but this 
solution only works on the local machine.
I just want to store a String object in HA-JNDI which tells everyone in the cluster 
which node is the master node so that the started singleton MBeans can be directly 
accessed.

How can I achieve that? Or has anybody got another idea of how to globalize this 
master information?

Thanks a lot,
Marion

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840095#3840095

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3840095


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - several singleton MBeans: can master node for each one be di

2004-06-22 Thread maroni
Hi,
In our cluster, we want to use several different singleton MBeans, lets say MBean 
A and MBean B should only be active on one node (master node) in the cluster. I have 
declared the following in my hasingleton-example-service.xml file:


  |   mbean code=org.jboss.ha.singleton.HASingletonController 
  |   name=jboss:service=HASingletonMBeanExample-HASingletonController
  |   dependsjboss:service=DefaultPartition/depends   
  |   dependsmyservice:service=MBeanA/depends
  |   attribute name=TargetNamemyservice:service=MBeanA/attribute
  |   attribute name=TargetStartMethodstartSingleton/attribute
  |   attribute name=TargetStopMethodstopSingleton/attribute
  |/mbean
  |
  |mbean code=org.jboss.ha.singleton.HASingletonController 
  |   name=jboss:service=HASingletonMBeanExample2-HASingletonController
  |   dependsjboss:service=DefaultPartition/depends   
  |   dependsmyservice:service=MBeanB/depends
  |   attribute name=TargetNamemyservice:service=MBeanB/attribute
  |   attribute name=TargetStartMethodstartSingleton/attribute
  |   attribute name=TargetStopMethodstopSingleton/attribute
  |/mbean
  | 

Both services are set to active state on the master node, and when the master node 
comes down, another master node is elected, thats okay. 

But what if there are multiple nodes in the cluster? Can I be sure that active MBeanA 
and MBeanB reside always on the same node??
Or does the notion of master node only refer to one singleton for sure?

Please tell me, does anybody know? Because I dont want to get bad surprises later.
Thanks
Marion 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3839532#3839532

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839532


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: several singleton MBeans: can master node for each one b

2004-06-22 Thread maroni
Thanks for your reply. 
But what if you have three nodes, and MBean A is only deployed on Node 1 and 2, and 
MBean B is deployed only on Node 2 and 3? When node 1 comes up first, then MBean B 
will not become active at all because its not running on the master node?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3839595#3839595

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3839595


---
This SF.Net email sponsored by Black Hat Briefings  Training.
Attend Black Hat Briefings  Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: How to bind an MBean to JNDI, then access from within ap

2004-06-15 Thread maroni
Hi James,
Thats exactly what I did, and I can see my service bound to JNDI in the JMX console, 
my client can fetch the service from JNDI, but then... 
The lookup is successful, no exception is thrown, but how can you invoke now methods 
on your mbean?? Because in my code, userManager is null. When I use the object, I get 
a NullPointerException.
Can you please tell me?
Thanks a lot,
Marion

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3838790#3838790

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838790


---
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: How to bind an MBean to JNDI, then access from within ap

2004-06-14 Thread maroni
Hi James,
Can you please tell me how you bound your MBean to JNDI and how you accessed it in 
your client application then?
Can you please show me some code? I was trying to do the same, but it does not work.

Thanks a lot,
Marion

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3838615#3838615

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838615


---
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Registering an MBean in JNDI

2004-06-09 Thread maroni
I want to register my mbean with JNDI so that a client can retrieve the JNDIName and 
use the mbean. It works when I use the RMIAdapter instead, but I wanted to try the 
JNDI way.

I bound my mbean to JNDI as follows (jndiname is inmemory/maps/MapTest2:

 
  |InitialContext rootCtx = new InitialContext();
  |Name fullName = rootCtx.getNameParser().parse(jndiName);
  |NonSerializableFactory.rebind(fullName, this, true);
  | 

And obviously, it could be bound successfully because when I look at the JNDIView list 
of names, I can see the following:

+- inmemory (class: org.jnp.interfaces.NamingContext)
  |   +- maps (class: org.jnp.interfaces.NamingContext)
  |   |   +- MapTest2 (class: mytest.mbean.JNDIMap)
  

My client application tries to access the service now as follows:


  | Object obj = getContext().lookup (inmemory/maps/MapTest2);
  | mytest.mbean.JNDIMap map = (mytest.mbean.JNDIMap)PortableRemoteObject.narrow(obj, 
mytest.mbean.JNDIMap.class);  
  | 

But it does not work. map is null. What is wrong with that code? Can anybody help me?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3838066#3838066

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838066


---
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Questions about standard MBean Example

2004-06-07 Thread maroni
Thanks for the reply, but it still does not work. I had already put all these files 
into the correct directory, but I still get a NoClassDefFound exception when deploying 
my mbean. But the same code works in my standalone client appliciation. 
Seems as if JBoss needs a special hint to know where to look for the classes, I dont 
know.
When I add the comm.jar file to my mbean SAR, then it works, but sorry, this cannot be 
the right way to do so???

What about the MBean access from a client? So you say that its possible to use the 
MBean directly, without using an adapter, but you dont say how this can be done. 
Would be nice to know. Please tell me.

And what about the HashMap access??


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3837714#3837714

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837714


---
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Questions about standard MBean Example

2004-06-03 Thread maroni
I have deployed the very simple standard MBean example of the JBoss Administration and 
Development Book (3.2.3) which binds a HashMap into JNDI, and then I played with it 
around, but I got some problems. So here are my questions:

1. The HashMap was successfully bound into JNDI, and I can see my service on the JMX 
console. Then I wrote a client which does a lookup on the HashMap, as follows:
map = (HashMap) getContext().lookup(inmemory/maps/MapTest2);

Seems to be okay, because I dont get any NamingException. But how can I use the 
HashMap then? How can I access the content now? When I want to use the map, I get a 
NullPointerException. Why is it null??

2. I would like to call functions on my mbean, from a client or another mbean. Do I 
have to use an adapter for that, or can I access the mbean directly via JNDI?? How can 
I give my mbean a JNDI name?

3. In the mbeans start() method I tried to create a serial connection to a PLC. But  
when I deploy the SAR file, the usage of the classes for the serial communication 
causes a NoClassDefFoundError Exception. But I added the javax.comm package to my 
Eclipse project, and when I put the same serial port access code into my client 
application (within the same project), it works and I dont get any exception. So why 
cant my mbean find these classes? Do I have to add something to the descriptor file??

I would really like to use my mbean...




View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3837356#3837356

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3837356


---
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Example File System RA

2004-05-26 Thread maroni
I tried to deploy the JCA example of JBOSS Administration and Development book chapter 
7 (File System Adapter) for JBoss 3.2.3, but I always get an Exception.

This is what I did:
I put the following files (generated by the delivered build.xml) into the deploy 
directory:
chap7-ex1.jar (EJB)
chap7-ex1.rar (Resource Adapter)
jboss-service.xml
notxfs-ds.xml

But I always get the following exeption:

[MainDeployer] Starting deployment of package: 
file:/W:/java/jboss-3.2.3/server/default/deploy/jboss-service.xml
[ServiceConfigurator] Problem configuring service 
jboss.jca:service=NoTxFS,name=filesystem
org.jboss.deployment.DeploymentException: No Attribute found with name: JndiName
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:334)
at .

It seems as if something is wrong with the jboss-service.xml file. But thats the 
example file of the book. I didnt change it. I didnt change any of the delivered 
files.

Can anybody tell me what went wrong?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3836237#3836237

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836237



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149alloc_id?66op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user