[JBossWS] - Re: My WS doesn't send any attachment... why?
by mrostan
Hi Claudio.
Well, I've tested a case very similar to yours, in the same versions (JBoss 4.2.2 with the default JBossWS: 2.0.1 SP2)
I've changed one thing from my previous suggestion, annotate the dummy field with @XmlAttachmentRef:
| public class DocumentsSet {
| @XmlAttachmentRef
| String dummy;
|
| @XmlElement(name="Documents")
| List<Document> documents;
| }
|
The Document class is very similar:
| public class Document {
| public Document() {
| }
|
| public Document(String name, String fileUrl) {
| this.name = name;
| try {
| this.data = new DataHandler(new URL(fileUrl));
| } catch (MalformedURLException exc) {
| exc.printStackTrace();
| }
| }
|
| String name;
|
| @XmlAttachmentRef
| DataHandler data;
| }
|
And it works here, I see a multipart message as the response, I'm using soapUI to invoke it and I can see the attachments in the result also.
So, I believe it should work for you.
Regards,
Martin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131787#4131787
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131787
18 years, 1 month
[Microcontainer] - Re: To get Event when Jboss is called for shutdown
by alesj
"svsubramanyam007" wrote : I want to get event when jboss is called for shutdown.When i was walking through code i was not able to understand ..how to get event when it is about to shutdown...can anyone help me in understanding...whether it is possible to get event.
What's there to understand, it's a simple even/listener pattern:
| // Send a notification that server stop is initiated
| Notification msg = new Notification(STOP_NOTIFICATION_TYPE, this, 2);
| sendNotification(msg);
|
| List currentList;
| synchronized (lock) {
| currentList = listenerList;
| }
|
| final int size = currentList.size();
| for (int i = 0; i < size; i++) {
| ListenerInfo li = (ListenerInfo) currentList.get(i);
|
| if (li.filter == null
| || li.filter.isNotificationEnabled(notification)) {
| try {
| this.handleNotification(li.listener, notification,
| li.handback);
| } catch (Exception e) {
| trace("sendNotification",
| "exception from listener: " + e);
| }
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131785#4131785
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131785
18 years, 1 month
[Performance Tuning] - Re: [linux] Jboss - Nagios Help required
by santosh23681
Hi Friends,
I am using the check_jbossjmx nagios plugin to check jboss running on to of my servers. However, when I execute it from the host server it is giving me the correct output but when I try to execute the same command on command prompt of the monitoring nagios server it is giving me a wrong output.
Command run on the Jboss server
Server 1
Command
# ./check_jbossjmx1 APP02.jjmum.medd.gov.in 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50
Output received is
JMX ATTRIBUTE OK - jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:0
Server 2
Command
# ./check_jbossjmx1 APP01.jjmum.medd.gov.in 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50
Output received
JMX ATTRIBUTE OK - jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:0
Command run from the monitoring server
for server 1:
# ./check_nrpe -H APP01.jjmum.medd.gov.in -c check_jbossjmx1 -a 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50
Output received is:
JMX ATTRIBUTE CRITICAL - jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:
for server 2
# ./check_nrpe -H APP02.jjmum.medd.gov.in -c check_jbossjmx1 -a 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50
Output received is:
Unrecognized JBoss Version: InUseConnectionCount
Can any one check why is this error and two different outputs for the same command and help me in resolving this issue.
Thanks in advance
Regards
Santosh Balan
9819419509
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131780#4131780
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131780
18 years, 1 month
[Performance Tuning] - Re: [linux] Jboss - Nagios Help required
by santosh23681
Hi Friends,
I am using the check_jbossjmx nagios plugin to check jboss running on to of my servers. However, when I execute it from the host server it is giving me the correct output but when I try to execute the same command on command prompt of the monitoring nagios server it is giving me a wrong output.
Command run on the Jboss server
Server 1
Command
# ./check_jbossjmx1 APP02.jjmum.medd.gov.in 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50
Output received is
JMX ATTRIBUTE OK - jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:0
Server 2
Command
# ./check_jbossjmx1 APP01.jjmum.medd.gov.in 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50
Output received
JMX ATTRIBUTE OK - jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:0
Command run from the monitoring server
for server 1:
# ./check_nrpe -H APP01.jjmum.medd.gov.in -c check_jbossjmx1 -a 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50
Output received is:
JMX ATTRIBUTE CRITICAL - jboss.jca:name=DefaultDS,service=ManagedConnectionPool-InUseConnectionCount:
for server 2
# ./check_nrpe -H APP02.jjmum.medd.gov.in -c check_jbossjmx1 -a 3 "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" InUseConnectionCount 20 50
Output received is:
Unrecognized JBoss Version: InUseConnectionCount
Can any one check why is this error and two different outputs for the same command and help me in resolving this issue.
Thanks in advance
Regards
Santosh Balan
9819419509
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131779#4131779
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131779
18 years, 1 month