Advertisement

04.25.2008 at 04:22AM PDT, ID: 23353103 | Points: 500
[x]
Attachment Details
look up EJB on JBoss
Tags: Sun, Java, JBoss, 4.2.2GA, 1.5.13, EJB look-up
Hi,

I have created an EAR file using IBM RAD 7.0 and it works on Websphere. Now I am trying to deploy it on JBoss 4.2.2 GA.

During start-up, JBoss says that it "Bound EJB Home 'XYZ' to JNDI 'XYZ'". However, when I look up the EJB (from a Websphere client) using the following code, it does not work (though it works if the EJB is deployed on Websphere itself):

props.put ( Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory" ) ;
props.put ( Context.PROVIDER_URL, "iiop://IP-address:1098/" ) ;
props.put ( "org.omg.CORBA.ORBClass", "com.ibm.CORBA.iiop.ORB" ) ;
InitialContext context = new InitialContext ( props ) ;
Object o = context.lookup ( "XYZ" ) ;

The error is: "org.omg.CORBA.COMM_FAILURE: purge_calls:1844 Reason: CONN_ABORT (1), State: ABORT (5)"

- Is there any other JNDI name I need to use or some other set-up I need to do on JBoss before running?

Thanks,
Mayank.
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: mayankeagle
Question Asked On: 04.25.2008
Participating Experts: 3
Points: 500
Views: 0
Translate:
Loading Advertisement...
04.25.2008 at 05:07AM PDT, ID: 21438579

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.25.2008 at 07:34AM PDT, ID: 21439957

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.28.2008 at 03:18PM PDT, ID: 21458128

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.30.2008 at 08:08AM PDT, ID: 21471404

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.30.2008 at 08:37AM PDT, ID: 21471721

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.30.2008 at 10:01AM PDT, ID: 21472540

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.30.2008 at 11:51AM PDT, ID: 21473507

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
04.30.2008 at 11:58AM PDT, ID: 21473566

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 04:53AM PDT, ID: 21523878

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 12:14PM PDT, ID: 21527589

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.08.2008 at 09:55PM PDT, ID: 21530457

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
04.25.2008 at 05:07AM PDT, ID: 21438579
are you giving jndi port correct? is it 1098?

 
04.25.2008 at 07:34AM PDT, ID: 21439957
Yes.
 
04.28.2008 at 03:18PM PDT, ID: 21458128
your properties for initial context initialization should contain jboss properties instead of websphere properties.
It should be

 props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
        props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
        props.put(Context.PROVIDER_URL, "jnp://IP-address:1099");
        Context context = new InitialContext(props);

include also jbossall-client.jar file from JBOSS_HOME/client directory into your classpath
 
04.30.2008 at 08:08AM PDT, ID: 21471404
As I mentioned, the client is deployed on Websphere, so I don't have the JBoss JARs there. Are you saying that it is not possible to call an EJB deployed on JBoss from a Websphere client? That would defy the concept of "standards" which J2EE brings in.
 
04.30.2008 at 08:37AM PDT, ID: 21471721
until you don't put jboss client jar file you will not be able to call ejbs on jboss server.

J2EE defines standards for the development. So you use standard API in your business implementation.
But during runtime execution you need a client jar files of your application server in order to execute your beans
 
04.30.2008 at 10:01AM PDT, ID: 21472540
Can you point me to a link which says that I cannot call an EJB on a server infrastructure of one type from a client on another type of infrastructure? Eventually its using RMI or IIOP underneath and sharing common objects....
 
04.30.2008 at 11:51AM PDT, ID: 21473507
I'm not teoretical guy.
I'm very pragmatic.
From my experience you can't do it
 
04.30.2008 at 11:58AM PDT, ID: 21473566
No intention to divert from the question, I never called anybody theoretical or practical - I just need proof of the solution being posted. I know for myself that it will work if I include the JBoss client JARs but that is not the question at all - the question is whether I can call it from Websphere. I've practically done this kind of stuff even between .NET and Java before by sharing objects between streams so I am wondering why it cannot be done when both systems are Java-based. If somebody's done it before, pls post here. If you know that it cannot be done, pls point me to a Sun site or any trustworthy site (which says so) which would be practically true also.
 
05.08.2008 at 04:53AM PDT, ID: 21523878
I agree with ramazanyich. you cannot call EJB of Jboss from websphere client unless until you put jboss client jars in websphere runtime.
 
05.08.2008 at 12:14PM PDT, ID: 21527589
Wow, a colleague of mine is working on trying to get it to work. Will keep you updated with whether we achieved it or not. Meanwhile if you can point me to a "reliable" link which confirms what you said, we will stop the effort.
 
05.08.2008 at 09:55PM PDT, ID: 21530457
i cannot able to search for a reliable link, but upon my experience i am giving the information..
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628