Profile

Cover photo
28 followers|5,035 views
AboutPostsPhotosVideos

Stream

OW2 JOnAS

Shared publicly  - 
1
Add a comment...

OW2 JOnAS

Shared publicly  - 
1
Add a comment...

OW2 JOnAS

Shared publicly  - 
1
Sahab Shahab's profile photo
 
Hello friends,
I try to write a simple code to publish a message.

The problem in in this line of code:
TopConnectionFactory factory =
                        (TopConnectionFactory)ctx.
lookup("JTCF");
The Error is:
Exception in thread "main" java.lang.ClassCastException:
org.objectweb.carol.jndi.wrapping.UnicastJNDIReferenceWrapper_Stub
cannot be cast to javax.jms.TopicConnectionFactory
        at TopicClient.main(TopicClient.java:24)
I also changes the code and tried other types of ConnectionFactory,
and tried JCF instead of JCTF but the problem still exist!
my jonas.properties entry is as follow:
#
###################### JOnAS JMS service configuration
#
#  Set the name of the implementation class of the jms service
jonas.service.jms.class        org.objectweb.jonas.jms.JmsServiceImpl

#  Indicates the Jms service must be started with this class for
administering the mom
jonas.service.jms.mom    org.objectweb.jonas_jms.JmsAdminForJoram

#  Set the Jms Server launching mode
#  If set to 'true'  it is launched in the same JVM as Application Server
#  If set to 'false' Jms Server is launched in a separate JVM
jonas.service.jms.collocated    true

#  Set to the url connexion when the Jms server is not collocated
#jonas.service.jms.url    joram://localhost:16010

# Set the list of administered objects topics to be created at
Application Server launching time
# Note : When using resource service (default configuration), topics
should go in joram-admin.cfg file
jonas.service.jms.topics    sampleTopic

# Set the list of administered objecst queuess to be created at
Application Server launching time
# Note : When using resource service (default configuration), queues
should go in joram-admin.cfg file
jonas.service.jms.queues    sampleQueue

#########################


Please help me how to remove this error.
Thank you for your sympathy.
Add a comment...

OW2 JOnAS

Shared publicly  - 
1
Add a comment...
Have them in circles
28 people

OW2 JOnAS

Shared publicly  - 
1
Add a comment...

OW2 JOnAS

Shared publicly  - 
 
The JOnAS Team is very pleased to reveal you the new look and feel of the JOnAS web site.

The access URL remains unchanged : http://jonas.ow2.org
It's even simpler as we removed an extra redirection : you won't see anymore 'http://wiki.jonas.ow2.org' URL in your navigation bar :)

Old URLs are still available to ensure compatibility:
* http://wiki.jonas.ow2.org
* http://wiki.jonas.objectweb.org
* http://jonas.ow2.org/ns
* http://jonas.ow2.org/dtds

For thoses who have write access to the wiki, their credentials remains unchanged.

Technically we've moved to a super old, unmaintained and (we have to admit it) not user friendly XWiki version to a top notch XWiki: Welcome to the beautiful Bootstrap based style, Kudos to the new syntax that mades pages easier to write and maintain, and much much more ...

Thanks +XWiki SAS for your hard work on XWiki !

Enjoy your new web site !
3
1
Add a comment...

OW2 JOnAS

Shared publicly  - 
 
JOnAS 5.2.2 maintenance release available
1
Add a comment...
People
Have them in circles
28 people
Contact Information
Contact info
Email
Story
Tagline
JOnAS OpenSource Java EE Application Server
Introduction
JOnAS is a leading edge Java EE 6 Web Profile certified Open Source OSGi Enterprise Server developed by Bull and OW2.

The License used by JOnAS is the LGPL.