JMS Configuration Help Needed for Publish Subscribe Messaging
Hi,
I am new to JMS and need help to configure JMS from the sun admin console. As of now i have configured the topic and the connection factory from the JMS Resources under the Resources tab(here too i just specified the topic name and guest and password and jndi and similarly the connection factory name but have not specified any port or anything else), but i guess something is missing as i can publish but cannot subscribe nor can i view the messages on the topic..I think some sort of configuration is also need on the Java Message Service header under the Configuration tab.I have searched for this on the net but have not been able to find any sort of detailed help.If someone could give a detailed picture as too how to go about this configuration with an example it would be of great help.
Vaishali Shah
Sai,
Seen this:
http://tinyurl.com/pbshe
Good Luck,
Avi.
Similar Messages
-
E17 configuration help needed for UK keyboard [RESOLVED]
I downloaded and installed reverie's packages for Enlightenment DR17 at http://ftp.takhis.net/arch (ie. 'pacman -Sy e17-cvs efl-cvs e17-extra-cvs').
Thanks for taking the time and effort to make the packages available reverie
I've been exploring E17 for about the past 2-3 days now and IT ROCKS!
However, I've noticed that its default keyboard layout is US (Shift+2 gives @ instead of "). I tried Configuration > Configuration Panel > Language Settings but I could see no other options (in fact the list was completely blank). I presume this is where I set the keyboard.
Please could someone tell me how I can get my E17 install configured for my UK keyboard?US is simply the default layout for X.org, you need to add
Option "XkbLayout" "uk"
to the InputDevice section for your keyboard in /etc/X11/xorg.conf.
I'm not sitting in front of an E desk right now, but if I recall there was also a keyboard switching module? (enable under modules then add to a shelf (hit shelves//configure shelf contents)). Dunno if it works though, or, well, if it's there at all So... go the xorg route...
Oh, and thx mon -
1941W configuration help needed
Our Deployment Scenario:-
1941W Gigabit Ethernet 0/0 is connected to the PPOE connection of the ISP.
Gigabit Ethernet 0/1 is connected to the wired LAN
I have created 2 wireless radio Cisco_Kamran_BGN which is operating at 2.4 Ghz Devices and Cisco_Kamran_A which is operating at 5Ghz Devices.
I have created 2 VLans for the Wireless.
Vlan 10 for Cisco_Kamran_A 192.168.10.x
Vlan 11 for Cisco _Kamran_BGN 192.168.11.X
The problem is the Wireless users are not getting the IP address from the respective DHCP server which has been configured on the Router.
Can please any from the community help me and show me where I am missing the configuration.
Please find my router & ap configuration below.
Router Configuration
Router#
sh run
Building configuration...
Current configuration : 3022 bytes
! No configuration change since last restart
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname Router
boot-start-marker
boot-end-marker
enable secret 5 $1$TdQt$npYeaf/W0kRElcfMggzJ31
no aaa new-model
service-module wlan-ap 0 bootimage autonomous
no ipv6 cef
ip source-route
ip cef
ip dhcp excluded-address 192.168.1.1 192.168.1.50
ip dhcp excluded-address 192.168.10.1 192.168.10.10
ip dhcp excluded-address 192.168.11.1 192.168.11.10
ip dhcp pool DHCP
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 195.229.241.222 213.42.20.20
ip dhcp pool Cisco_Kamran_A
network 192.168.11.0 255.255.255.0
default-router 192.168.11.1
dns-server 195.229.241.222 213.42.20.20
ip dhcp pool Cisco_Kamran_BGN
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 195.225.241.222 213.42.20.20
multilink bundle-name authenticated
crypto pki token default removal timeout 0
license udi pid CISCO1941W-E/K9 sn FCZ1553C1VK
hw-module ism 0
redundancy
bridge irb
interface Embedded-Service-Engine0/0
no ip address
shutdown
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
interface wlan-ap0
description Service module interface to manage the embedded AP
ip unnumbered GigabitEthernet0/0
arp timeout 0
no mop enabled
no mop sysid
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
pppoe enable group global
pppoe-client dial-pool-number 1
interface Wlan-GigabitEthernet0/0
description Internal switch interface connecting to the embedded AP
switchport mode trunk
no ip address
interface Vlan1
no ip address
interface Vlan10
ip address 192.168.10.1 255.255.255.0
ip access-group DSL_ACCESSLIST in
ip nat inside
ip virtual-reassembly in
interface Vlan11
ip address 192.168.11.1 255.255.255.0
ip access-group DSL_ACCESSLIST in
ip nat inside
ip virtual-reassembly in
interface Dialer1
ip address negotiated
ip nat outside
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
ppp authentication pap callin
ppp pap sent-username xxxxxx password 0 xxxxxx
ppp ipcp route default
ip forward-protocol nd
no ip http server
no ip http secure-server
ip nat inside source list DSL_ACCESSLIST interface Dialer1 overload
ip access-list extended DSL_ACCESSLIST
permit ip 192.168.0.0 0.0.255.255 any
control-plane
line con 0
password xxxxxx
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line 67
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
line vty 0 4
password xxxxxx
login
transport input all
scheduler allocate 20000 1000
end
Router#
Router#
Router#
Access Point Configuration
ap#
ap#
ap#
sh run
Building configuration...
Current configuration : 2603 bytes
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname ap
enable secret 5 $1$JxdQ$a2/00bWJuhUKP9QLC94YD/
no aaa new-model
dot11 syslog
dot11 ssid Cisco_Kamran_A
authentication open
authentication key-management wpa
guest-mode
wpa-psk ascii 7 1045081417161C5A555C7A7B
dot11 ssid Cisco_Kamran_BGN
authentication open
authentication key-management wpa
guest-mode
wpa-psk ascii 7 020D05561907017015165949
username Cisco password 7 14341B180F0B
bridge irb
interface Dot11Radio0
description 802.11bgn radio
no ip address
no ip route-cache
encryption mode ciphers aes-ccm
broadcast-key change 3600
ssid Cisco_Kamran_BGN
antenna gain 0
station-role root
bridge-group 11
bridge-group 11 subscriber-loop-control
bridge-group 11 block-unknown-source
no bridge-group 11 source-learning
no bridge-group 11 unicast-flooding
bridge-group 11 spanning-disabled
interface Dot11Radio1
description 802.11a radio
no ip address
no ip route-cache
encryption mode ciphers aes-ccm
ssid Cisco_Kamran_A
antenna gain 0
no dfs band block
channel dfs
station-role root
bridge-group 10
bridge-group 10 subscriber-loop-control
bridge-group 10 block-unknown-source
no bridge-group 10 source-learning
no bridge-group 10 unicast-flooding
bridge-group 10 spanning-disabled
interface GigabitEthernet0
description the embedded AP GigabitEthernet 0 is an internal interface connecting AP with the host router
no ip address
no ip route-cache
bridge-group 1
no bridge-group 1 source-learning
bridge-group 1 spanning-disabled
interface GigabitEthernet0.10
description 802.11a bridge
encapsulation dot1Q 10
no ip route-cache
bridge-group 10
bridge-group 10 subscriber-loop-control
bridge-group 10 block-unknown-source
no bridge-group 10 source-learning
no bridge-group 10 unicast-flooding
bridge-group 10 spanning-disabled
interface GigabitEthernet0.11
description 802.11bgn bridge
encapsulation dot1Q 11
no ip route-cache
bridge-group 11
bridge-group 11 subscriber-loop-control
bridge-group 11 block-unknown-source
no bridge-group 11 source-learning
no bridge-group 11 unicast-flooding
bridge-group 11 spanning-disabled
interface BVI1
ip address dhcp client-id GigabitEthernet0
no ip route-cache
ip http server
no ip http secure-server
ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
bridge 1 route ip
line con 0
no activation-character
line vty 0 4
login local
end
ap#
ap#
ap#Hi Stepehen,
Did the configuration as per your advice but i am getting the below mentioned error which i have highlighted it in red. Please advice what needs to be done.
Home
Re: 1941W configuration help needed
created by Stephen Rodriguez in Getting Started with Wireless - View the full discussion
conf t
interface Dot11Radio0
no ssid Cisco_Kamran_BGN
no encryption mode ciphers aes-ccm
exit
interface Dot11Radio1
no encryption mode ciphers aes-ccm
no ssid Cisco_Kamran_A
exit
dot11 ssid Cisco_Kamran_A
vlan 10
dot11 ssid Cisco_Kamran_BGN
vlan 11
exit
interface Dot11Radio0
encryption vlan 11 mode ciphers aes
ssid Cisco_Kamran_BGN
exit
interface dot11radio0.1
encapsulation dot1q 1 native
bridge-group 1
interface dot11radio 0.11
encapsulation dot1q 11
bridge-group 11
Configuration of subinterfaces and main interface
within the same bridge group is not permitted
exit
interface Dot11Radio1
encryption vlan 10 mode ciphers aes-ccm
ssid Cisco_Kamran_A
interface dot11radio1.1
encapsulation dot1q 1 native
bridge-group 1
interface dot11radio1.10
encapuslation dot1q 10
bridge-group 10
Configuration of subinterfaces and main interface
within the same bridge group is not permitted
end
wr
Reply to this message by going to Home
Start a new discussion in Getting Started with Wireless at Home -
Multiple ethernet network adaptors + MySQL/php5: configuration help needed
I would be grateful if someone could give me some advice on how to configure multiple ethernet adapters under OS X 10.5.6
I have set up my system to work nicely with two ethernet network adapters, each with its own fixed IP. This bit works just fine. The machine supports two separate servers - a mail server and the OS X Apache2 server. I have configured the mail server to only listen to one of the IPs, and the Apache2 server to listen to the other (via httpd.conf). The system also has MySQL and php5 installed / enabled, and these services are only used by the Apache2 server.
The problem I have is that when I start the machine, initially the php5 system cannot connect reliably to the MySQL database system. The fix I have found is to temporarily make the ethernet adapter connected to the mail server 'inactive'. While this is so, the php5/MySQL connection to Apache2 works. Curiously, once an initial connection between php5 and MySQL has been made, subsequently I can make the mail server's ethernet adapter active again without further problems.
I initially thought this might be due to 'service order' issues - but changing the service order (e.g. putting the Apache adapter 'above' the mail adapter in the service order does not help. The fix only works by making the mail adapter inactive temporarily.
I suspect that there is some configuration change I can make to clarify the setup I have. The MySQL and Apache installations only need to talk to the Apache server - but I am not sure how to record this configuration in the OS X system.
Thanks in advance for any assistance that you can provide.
Message was edited by: Gavin LawrieHi Stepehen,
Did the configuration as per your advice but i am getting the below mentioned error which i have highlighted it in red. Please advice what needs to be done.
Home
Re: 1941W configuration help needed
created by Stephen Rodriguez in Getting Started with Wireless - View the full discussion
conf t
interface Dot11Radio0
no ssid Cisco_Kamran_BGN
no encryption mode ciphers aes-ccm
exit
interface Dot11Radio1
no encryption mode ciphers aes-ccm
no ssid Cisco_Kamran_A
exit
dot11 ssid Cisco_Kamran_A
vlan 10
dot11 ssid Cisco_Kamran_BGN
vlan 11
exit
interface Dot11Radio0
encryption vlan 11 mode ciphers aes
ssid Cisco_Kamran_BGN
exit
interface dot11radio0.1
encapsulation dot1q 1 native
bridge-group 1
interface dot11radio 0.11
encapsulation dot1q 11
bridge-group 11
Configuration of subinterfaces and main interface
within the same bridge group is not permitted
exit
interface Dot11Radio1
encryption vlan 10 mode ciphers aes-ccm
ssid Cisco_Kamran_A
interface dot11radio1.1
encapsulation dot1q 1 native
bridge-group 1
interface dot11radio1.10
encapuslation dot1q 10
bridge-group 10
Configuration of subinterfaces and main interface
within the same bridge group is not permitted
end
wr
Reply to this message by going to Home
Start a new discussion in Getting Started with Wireless at Home -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re
Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
System: Windows 7
Adobe CS5
Printer: Epson Stylus Photo 1400
Paper: Inkjet matte presentation paper with slight luster
Installed latest patch for Adobe CS5
Epson driver up to date
After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
The files I am printing are photographs of dogs with lots of detail I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
When I change to these settings in printer window: Color Handling: Printer manages color. Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
Also I am confused as to what ICM color management system to use with this printer and CS5:
What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
Do I embed the ICM I choose into the new files I create?
Do I view all files in the CS5 workspace in this default ICM?
Do I set my monitor setting to the same ICM?
If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
Is using the same ICM for all devices what is called a consistent workflow?
I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
I hope this may help............... -
File missing (file\BCD error code 0Xc0000034 help need for work!
file missing (file\BCD error code 0Xc0000034 help need for work! what can i do?
have an p 2000 notebook pcHi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
What is the model or product number of your notebook? What version of Windows is installed?
Guide to finding your product number
Which Windows operating system am I running?
TwoPointOh
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
Help me for activate I message and facetime ! iOS 7(7.1.2) iphone 4 ! Urgent plss help !
Hello Mohd,
Thank you for using Apple Support Communities.
Sorry I couldn't get to your issue quicker, but the following article should help you to activate your iMessage and FaceTime:
iOS: Troubleshooting FaceTime and iMessage activation
Regards,
Jeff D. -
Help need for force to signout All session ! how...
hi
help need for force to signout All session ! how ??
Solved!
Go to Solution.Hi and welcome to the Skype Community,
To force a signout of all instances your Skype is signed into please change your password: https://support.skype.com/en/faq/FA95/how-do-i-change-my-password
Follow the latest Skype Community News
↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓ -
Help need for webserver configuration
Hi
i need configuration help from your side..I need to configuration for allowing traffic for webserver. topology was router-> firewall-->ace--> webserevr
-
Multiple listeners don't work for publish subscribe?
We wrote a publish/subscribe system based on JMS. It works fine so long as there is only one subscriber/listener. Normally this listener resides in the ejb space. Once we introduce another listener (e.g. by running another java program on the same host), the
original listener STOPPED receiving messages -- is this a WLS bug ?
Well pub/sub wouldn't be pub/sub unless it allowed for multiple
subscribers.
I think that 6.1SP2 had problems with certain combinations of listeners,
in particular MDB and non-MDB. (Not sure.)
What is your version and service-pack level?
kin wrote:
> We wrote a publish/subscribe system based on JMS. It works fine so long as there is only one subscriber/listener. Normally this listener resides in the ejb space. Once we introduce another listener (e.g. by running another java program on the same host), the
> original listener STOPPED receiving messages -- is this a WLS bug ?
-
Help needed for using BASIC authentication through JDBCRealm
Help needed.
Hello,
I am doing a degree project, so far it works fine in my local machine, I need to try it on my virtual hosting (as it is a live server).
My project requires JDBCRealm, that is BASIC authentication loading access data from mysql database. Normally this setup can be done in Server.xml file, because my Tomcat hosting is a virtual one, I only have permission to access the web.xml file.
My question is: is it possible to get it done in an alternative way? In web.xml? Some properties file maybe?
Thank you very much.You can set this up for your context using META-INF/context.xml instead of working with server.xml.
Make a directory called META-INF under your webapp ( it'll be at the same level as WEB-INF ). Under this, add a context.xml with all your context specific configuration including the realm. A sample is below
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/myApp" reloadable="true">
<Realm
className="org.apache.catalina.realm.JDBCRealm"
driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
connectionURL="jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=myDB;SelectMethod=Cursor;"
connectionName="username" connectionPassword="password"
digest="MD5" userTable="users" userNameCol="userid" userCredCol="userpassword"
userRoleTable="user_roles" roleNameCol="rolename"
/>
</Context>Hope this helps.
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
---------------------------------------------------------------- -
Being a LONG TIME Mac User (yes, I owned a Lisa in the early 80’s and it still runs!) I have lived thru the transition from OS 6 and 7, then 8, 9 and finally the upgrade to OSX and thru its incarnations up to my current Maverick (aka OS 10.9.4). I am no stranger to changes on the Mac OS. But the new Contacts file within iCloud has me lost. For many years my spouse and I would cross share portions of our personal AddressBook using that softwares publish/subscribe function. It worked great! I could have a list of his relatives/names/phones/addresses in case I needed them - and he had the same for me. With a glance he could see that my sisters middle name was Louise and she hated it. Useful info for when she was being icy to him on a phone call. <grin> We had the shared groups identified as coming from my AddressBook or his, and we could share subgroups or the entire thing as we might choose.
When we went to iCloud and now Maverick, there is no longer a way to share the contact info short of buying the Apple Server software and setting up our own server in house. While I might be able to justify doing so, it is a huge hassle for a very small gain in our case. So that is a last-resort solution, so far.
I would again like to be able to share portions (groups/or sub-groups) of my contact database files with specific individuals, using something like a publish/subscribe feature that would require both parties to agree to the sharing and then once that was done, it should implement automatically and update every time an items is changed, added, deleted on the owners main copy of Contacts. Ideally this would work thru iCloud and its “push update” function. But just to have it working is the goal here. I really do not care HOW it works.
Ive searched, even called a buddy who works the Genius Bar at my local Apple Store. So far, no one seems to have any suggestion other than the aforementioned Maverick Server idea. Frankly with three computers, two printers, a few iPads and iPhones, and a couple of Apple TVs in the house, I am hard pressed to justify the time and energy running a server would require. There has to be a better way to do this. If friends can push their Contact Info to their Android Phones, I should be able to share my Contact files with my spouse! Thanks for your thoughts/suggestions/and hopefully for a solution.Is the disk cache and the memory cache enabled?
You can check these prefs on the about:config page.
* http://kb.mozillazine.org/browser.cache.disk.enable
* http://kb.mozillazine.org/browser.cache.memory.enable
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
Your More system details list shows two outdated Flash plugins that you should remove and update to Flash 10.1 r102 or at least remove 10.0 r45 and wait until your distribution offers a 10.1 r102 update.
# Shockwave Flash 10.0 r45
# Shockwave Flash 10.1 r85
Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
*http://www.adobe.com/software/flash/about/ -
Help Needed - FINAL PROJECT - SAAJ MESSAGING
Hi there!
currently im doing my final project and it involves sending and receiving soap messages.
im working with sun java studio creator for the first time.
i have done this example (excuse me for possible dumb errors im just a noobie):
* Page1.java
* Created on 6 de Novembro de 2006, 12:40
package webapplication1;
import com.sun.rave.web.ui.appbase.AbstractPageBean;
import com.sun.rave.web.ui.component.Body;
import com.sun.rave.web.ui.component.Form;
import com.sun.rave.web.ui.component.Head;
import com.sun.rave.web.ui.component.Html;
import com.sun.rave.web.ui.component.Link;
import com.sun.rave.web.ui.component.Page;
import javax.faces.FacesException;
import com.sun.rave.web.ui.component.Button;
import com.sun.rave.web.ui.component.TextArea;
//soap saaj
import javax.xml.*;
import javax.xml.soap.*;
import java.net.URL;
import java.net.*;
import java.util.*;
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPElement;
// add this import if you need soapaction
import javax.xml.soap.MimeHeaders;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamResult;
import com.sun.xml.messaging.saaj.*;
import java.net.URL;
import javax.xml.soap.*;
import java.util.Iterator;
import javax.xml.soap.Name;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.messaging.ReqRespListener;
import java.text.NumberFormat;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamResult;
import com.sun.xml.messaging.saaj.*;
* <p>Page bean that corresponds to a similarly named JSP page. This
* class contains component definitions (and initialization code) for
* all components that you have defined on this page, as well as
* lifecycle methods and event handlers where you may add behavior
* to respond to incoming events.</p>
import javax.xml.messaging.JAXMServlet;
//extends JAXMServlet
public class Page1 extends AbstractPageBean implements ReqRespListener{
// <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
private int __placeholder;
* <p>Automatically managed component initialization. <strong>WARNING:</strong>
* This method is automatically generated, so any user-specified code inserted
* here is subject to being replaced.</p>
private void _init() throws Exception {
private Page page1 = new Page();
public Page getPage1() {
return page1;
public void setPage1(Page p) {
this.page1 = p;
private Html html1 = new Html();
public Html getHtml1() {
return html1;
public void setHtml1(Html h) {
this.html1 = h;
private Head head1 = new Head();
public Head getHead1() {
return head1;
public void setHead1(Head h) {
this.head1 = h;
private Link link1 = new Link();
public Link getLink1() {
return link1;
public void setLink1(Link l) {
this.link1 = l;
private Body body1 = new Body();
public Body getBody1() {
return body1;
public void setBody1(Body b) {
this.body1 = b;
private Form form1 = new Form();
public Form getForm1() {
return form1;
public void setForm1(Form f) {
this.form1 = f;
private Button button1 = new Button();
public Button getButton1() {
return button1;
public void setButton1(Button b) {
this.button1 = b;
private TextArea textArea1 = new TextArea();
public TextArea getTextArea1() {
return textArea1;
public void setTextArea1(TextArea ta) {
this.textArea1 = ta;
private TextArea textArea2 = new TextArea();
public TextArea getTextArea2() {
return textArea2;
public void setTextArea2(TextArea ta) {
this.textArea2 = ta;
// </editor-fold>/*
public MessageFactory messageFactSent= null;
public MessageFactory messageFactReply=null;
public MessageFactory messageFactReceiv= null;
public SOAPConnectionFactory soapConnectionFact;
public URL URLendpoint;
public SOAPConnection connection ;
public SOAPMessage messageSent;
public SOAPPart soapPartSent;
public SOAPEnvelope soapEnvelopeSent;
public SOAPBody SoapBodySent;
public SOAPMessage messageReceiv;
public SOAPPart soapPartReceiv;
public SOAPEnvelope soapEnvelopeReceiv;
public SOAPBody SoapBodyReceiv;
public SOAPMessage messageReply;
public SOAPPart soapPartReply;
public SOAPEnvelope soapEnvelopeReply;
public SOAPBody SoapBodyReply;
public SOAPMessage reply;
public String StringAux="";
public final String theURI = "http://172.16.5.223:8080/WebApplication1/";
//public final String theURI = "http://172.16.5.223:8080/WebApplication1/";
//public final String theURI = "http://172.16.5.193:8080/WebApplication1/";
//http://localhost:8080/WebApplication1/faces/Page1.jsp
public SOAPMessage onMessage(SOAPMessage message) {
StringAux=StringAux+"On message called in receiving servlet\n";
this.textArea1.setValue(StringAux);
try {
soapPartReceiv = message.getSOAPPart( );
soapEnvelopeReceiv = soapPartReceiv.getEnvelope();
SoapBodyReceiv = soapEnvelopeReceiv.getBody();
//analise...if needed
// Create the reply message
messageReply = messageFactReply.createMessage();
soapEnvelopeReply = messageReply.getSOAPPart().getEnvelope();
SoapBodyReply= soapEnvelopeReply.getBody();
// Remove empty header from the Envelope
soapEnvelopeReply.getHeader().detachNode();
Name bodyName = soapEnvelopeReply.createName("GetLastTradePrice",
"m", "http://wombat.ztrade.com");
SOAPBodyElement gltp = SoapBodyReply.addBodyElement(bodyName);
Name name = soapEnvelopeReply.createName("symbol");
SOAPElement symbol = gltp.addChildElement(name);
symbol.addTextNode("SUNW");
// Return a reply message back to the JAXM client
StringAux=StringAux+"devolveu menssagem\n";
this.textArea1.setValue(StringAux);
return messageReply ;
} catch(Exception e) {
StringAux=StringAux+"Error in processi ng or replying to a message - e: " + e+"\n";
this.textArea1.setValue(StringAux);
return null;
//this.getBean(name)
public Page1() {
// Service serve=new Service();
// Client cli=new Client();
// this.textArea1.setValue(serve.GetAux());
// this.textArea2.setValue(cli.GetAux());
// Create a MessageFactory
try {
URLendpoint=new URL(theURI);
StringAux=StringAux+"depois de criar o endpoint \n";
//Create SOAP connection
soapConnectionFact = SOAPConnectionFactory.newInstance();
connection = soapConnectionFact.createConnection();
// Create a message from the message factory.
messageFactSent = MessageFactory.newInstance();
messageFactReply = MessageFactory.newInstance();
messageFactReceiv = MessageFactory.newInstance();
StringAux=StringAux+"depois de criar as message factory \n";
this.textArea1.setValue(StringAux);
} catch(Throwable e) {
StringAux="erro2!\n"+StringAux+e.toString()+"\n";
this.textArea1.setValue(StringAux);
* <p>Return a reference to the scoped data bean.</p>
protected ApplicationBean1 getApplicationBean1() {
return (ApplicationBean1)getBean("ApplicationBean1");
* <p>Return a reference to the scoped data bean.</p>
protected RequestBean1 getRequestBean1() {
return (RequestBean1)getBean("RequestBean1");
* <p>Return a reference to the scoped data bean.</p>
protected SessionBean1 getSessionBean1() {
return (SessionBean1)getBean("SessionBean1");
* <p>Callback method that is called whenever a page is navigated to,
* either directly via a URL, or indirectly via page navigation.
* Customize this method to acquire resources that will be needed
* for event handlers and lifecycle methods, whether or not this
* page is performing post back processing.</p>
* <p>Note that, if the current request is a postback, the property
* values of the components do <strong>not</strong> represent any
* values submitted with this request. Instead, they represent the
* property values that were saved for this view when it was rendered.</p>
public void init() {
// Perform initializations inherited from our superclass
super.init();
// Perform application initialization that must complete
// before managed components are initialized
// TODO - add your own initialiation code here
// <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
// Initialize automatically managed components
// Note - this logic should NOT be modified
try {
_init();
} catch (Exception e) {
log("Page1 Initialization Failure", e);
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
// </editor-fold>
// Perform application initialization that must complete
// after managed components are initialized
// TODO - add your own initialization code here
* <p>Callback method that is called after the component tree has been
* restored, but before any event processing takes place. This method
* will <strong>only</strong> be called on a postback request that
* is processing a form submit. Customize this method to allocate
* resources that will be required in your event handlers.</p>
public void preprocess() {
* <p>Callback method that is called just before rendering takes place.
* This method will <strong>only</strong> be called for the page that
* will actually be rendered (and not, for example, on a page that
* handled a postback and then navigated to a different page). Customize
* this method to allocate resources that will be required for rendering
* this page.</p>
public void prerender() {
* <p>Callback method that is called after rendering is completed for
* this request, if <code>init()</code> was called (regardless of whether
* or not this was the page that was actually rendered). Customize this
* method to release resources acquired in the <code>init()</code>,
* <code>preprocess()</code>, or <code>prerender()</code> methods (or
* acquired during execution of an event handler).</p>
public void destroy() {
public String button1_action() {
try {
StringAux=StringAux+"antes de criar a messagem para enviar\n";
messageSent = messageFactSent.createMessage();
soapEnvelopeSent = messageSent.getSOAPPart().getEnvelope();
//SoapBodySent = messageSent.getSOAPPart().getEnvelope().getBody();
SoapBodySent = soapEnvelopeSent.getBody();
Name bodyName = soapEnvelopeSent .createName("GetLastTradePrice",
"m", "http://wombat.ztrade.com");
SOAPBodyElement gltp = SoapBodySent.addBodyElement(bodyName);
Name name = soapEnvelopeSent.createName("symbol");
SOAPElement symbol = gltp.addChildElement(name);
symbol.addTextNode("SUNW");
StringAux=StringAux+"\nContent of the message: \n"+messageSent.toString()+"\n";
// Send the SOAP message and get reply
StringAux=StringAux+"Sending message to URL: \n"+ URLendpoint+"\n"+this.URLendpoint.getPath()+"\n";
reply = connection.call(messageSent,URLendpoint);
StringAux=StringAux+"\n\n Content of the reply message: \n"+reply.toString()+"\n";
this.textArea1.setValue(StringAux);
//tratamento da resposta
connection.close();
} catch(Throwable e) {
StringAux="erro!\n"+StringAux+e.toString()+"\n";
this.textArea1.setValue(StringAux);
return null;
Very simple , on a click of the button a message was supost to be sent. and receive on the other machine. i have launched the same war file on both pcs
but now nothing happens just a exception message
com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP
....could someone help me out here ,even share a wprking project with this goal
thank you in advance
DMS
Message was edited by:
DaniDaOneOne time, after quitting IM and re-launching it later, my project disappeared from the project list.
Apple Support told me to do this.
1) quit IM
2) with the finder, move the project out of the project directory
3) launch IM
4) quit IM
5) with the finder, put the project back into the project directory
6) launch IM
My project re-appeared. He said these steps forces a project index to be rebuilt.
Your symptoms are different but maybe the cure is the same --- good luck. -
Help Needed for T42 Start-up Problem
Urgent help need!!!
I have a ThinkPad T42 with Windows XP installed. It works perfectly for a while without ever have any problem or error message. Then suddenly it won’t work anymore. The symptom is following:
After power on the laptop the Microsoft window would show up and it prompt me for window logon password. After I type in the password it then shows “window is loading your personal setting”. After a long while nothing would show up on the screen other than the background of the normal screen. There is no window bar at the bottom or any icon on the screen. If I start in safe mode then everything would show up. I don’t know what is going on.
This happened two months ago and I ended up restoring a backup image to get it work again. It happens again today with the same symptom. I am really tired of having to restore image backup every 2 months.
I would really appreciate it if any of your experts can offer me some insight into this problem. I am desperate in need of help.
Thanks very much!wangy26, welcome to the forum,
Have a look at this thread to see if my post there helps. The problem seems to mostly occur at the start of a month, why I don't know. Unfortunately the member didin't report back whether or not this was a viable solution for them.
Andy ______________________________________
Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
Deutsche Community Comunidad en Español English Community Русскоязычное Сообщество
PepperonI blog
Maybe you are looking for
-
Procedure for upgrading to 3.5?
Assuming version 2 is legally installed on my machine, Will I encounter any problems considering verion 2 does not run on intel macs? Does it simply have to be installed, and then the 3.5 upgrade will install fine after that? Also, just so I have thi
-
Ods object must be regenerated
hi bcsgurus lemme know when does this error occur n how do i eradicate it i am copying the databasis and generating it. ods object must be regenerated data may get lost when this is is regeneated. i tried activating the ods again too. thanks
-
Hi all , i want to save a text file on user local sytem without user interaction usiing file Refrence class in flash , how it could be do that ,please help me out frm this probelm,any suggestion will be thankful for me ..)
-
Stock transfer between the two manufacturing plants
Dear Experts, I am doing the stock transfer between the 2 excisable plants 1.First we will transfer the Semi finished material from one manufacturing plant to another manufacturing plants. 2.After receiving the material in the receiving plant,
-
I have an iPhone under my parents account. Now that I have my own, I would like to change the Apple id on the phone to my own (new) account. If I do so, will I lose all of my apps, music, contacts, etc?