Clairifcation on EJB's Invoking Non-EJB's in App server

I am wondering if you someone from Team Sybase could clarify something for
me.  In a note below
Jonathan Baker replyed to this group saying that the CORBA method on calling
a PBNVO from an EJB was the "long way around" and directed the individual
with the question to follow the procedure outlined in Chapter 9 of the
Jaguar Programmers Guide "Invoking Non- EJB components from an EJB".

What would be the pros and cons of either approach? And do you have an idea
as to why the Jaguar documentation would only refer to to using the EJB
stubs ?

//////////  Message pasted in from another thread
> On Wed, 6 Nov 2002 13:12:23 -0500,
>  in sybase.public.easerver.general
> Jonathan Baker [Sybase] <> wrote:
> >You're going about this the long way.
> >
> >Look in the chapter 9 - EAServer EJB Interoperability - in the section
> >titled "Invoking non-EJB components from EJB clients".  This will give
> >the method to call the NVO as if it were an EJB (using the
> >method of calling, and having a fake home interface).
> >
> >
> >HTH
> >
> >
> >Jonathan
> >
> >
> >
> >--
> >--------------------
> >Jonathan Baker
> >eBusiness Division
> >Sybase, Inc.
> >
> >
> >"Mike Burnham" <> wrote in message
> >
> >> Problem I have no problems connecting my ejb to pb-nvo provided
> >> that the nvo's are NOT on the same server.
> >> Now I want the ejb running on box A to connect and run pb-nvo on box A.
> >> Tried both the lookup and create method with similar errors
> >>
> >> Here is my code
> >> try
> >> {
> >> String[] args={""};
> >> Properties props = new Properties( );
> >> props.put("org.omg.CORBA.ORBClass", "com.sybase.CORBA.ORB");
> >> props.put("org.omg.CORBA.NameServiceURL", is_iiop_connector);
> >> org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, props);
> >> org.omg.CORBA.Object ior =
> >orb.string_to_object("iiop://;
> >> Manager manager = ManagerHelper.narrow(ior);
> >> SessionManager.Session session = manager.createSession("jagadmin",
> >"blahblah");
> >> org.omg.CORBA.Object factObj = session.lookup("pb_isamm/n_isamm");
> >> file://org.omg.CORBA.Object factObj =
> >> Factory factory = FactoryHelper.narrow(factObj);
> >> org.omg.CORBA.Object myObj = factory.create();
> >> pb_isamm.n_isamm l_isam = pb_isamm.n_isammHelper.narrow(myObj);
> >> ls_rtn = l_isam.verify_user_exp(userid);
> >> }
> >> catch(Exception e)
> >> {
> >> e.printStackTrace( );
> >> gS_LastSystemError = e.toString();
> >> }
> >> Here is what I am getting in the jag log
> >> Nov 06 12:34:13 2002: Library: 'pbjag70.dll' for component type 'pb70'
> >> PB Unable to get component information from repository for
> >pb_isamm/n_isamm
> >> Nov 06 12:34:15 2002: PB Unable to get component information from
> >repository for
> >> pb_isamm/n_isamm
> >> Nov 06 12:34:20 2002: Out 1
> >> Nov 06 12:34:20 2002: java.lang.NullPointerException
> >> Nov 06 12:34:20 2002: at
> >> premier.samm.SammServerBean.userValidate(
> >> Nov 06 12:34:20 2002: at
> >>


2/18/2003 2:12:07 PM
sybase.easerver.general 7903 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 22


Similar Artilces:

Calling EJB's from EJB's...
When trying to make intercomponet calls, I am receiving an exception: javax.naming.NoInitialContextException: Need to specify class name in environment or system property: java.naming.factory.initial Here is the offending code, the exeption is generated on the ctx.lookup(): Properties props = sessionContext.getEnvironment(); Context ctx = new InitialContext(props); PersonHome phome = (PersonHome) ctx.lookup("Person"); PersonRemote person = phome.create(); Is this correct? Examples or guidance would be appreciated... Thanks! Aaron ...

EJB's Calling EJB's and Authentication Problem
I have a web application in EAServer 4.1.3. The user is forwarded to a servlet within my web application which connects to EAServer and authenticates them before forwarding them to a JSP page. The JSP page makes a call to a Session Bean also in EAServer. From my Session Bean I then make calls to another session bean. If i use the following code it does not work, it fails to find the second bean, presumably at authentication because I get the following error: javax.naming.Context ctx = new InitialContext(); Object obj = ctx.lookup("Package/Component"); ComponentHom...

EJB's and PB NVO's
We are currently on a migration path to full J2EE. Today we have a number of PB NVO's and now we are slowly converting them to EJB's. It is going to be impossible to convert everything to EJB's in one release. So, we are developing a migration plan. My question is, what is the best way to call a PB NVO from an EJB. Should I use the sessionManager? Or is there better method to instantiate NVO'? Short code samples would be a great help. Thanks in advance for the help. -mark Generate EJB stubs for the PB NVO and call them like they were an EJB. Now when a...

When EJB's and ASP's collide...
I'm working on a design for a "single sign-on" architecture. What I have in mind is an EJB with methods that use JNDI to talk to an LDAP server to return either a string that indicates a user's security profile for a given application or name/value pairs indicating the users security profiles for all supported applications. Some of the applications using this might be built on Active Server Pages. Is there any support for ASP clients to EJB's? If not I'm thinking about a PowerBuilder component that can be called from an ASP via CORBA and act as a bridge to...

Replace 1's and 0's in a gridview column with Yes's and No's
Is it possible to change the display of a column in a gridview to show a Yes for all 1's and a No for 0's that display in a particular column of a gridview bound to a database?  If so, can someone share the way with me?  I am using ASP.NET 2.0 with VB Code Behind.  Thanks One way you can do is thrrough  CASE in your select statement: Select YesNoColumn= CASE yourColumn WHEN 1 THEN 'Yes' WHEN 0 THEN 'No' ELSE '' END FROM YourtableLimno <Columns>     <asp:TemplateField HeaderText="yourHeader" SortExpression="yourDataField"> ...

It's Linux !? No, it's BSD ! No, no, it's...
kFreeBSD a Debian distro using the FreeBSD kernel ! ObiWan wrote: > kFreeBSD > > > > a Debian distro using the FreeBSD kernel ! Why use a BSD kernel? I hope the reason is more than, just because they can. It's easy to understand why the would want to use Debian packages. :) -- Jimmy Johnson Registered Linux User #380263 >> kFreeBSD >> >> >> ...

NtCanuck's `TreeWalk' and AnalogX's `FastCache' Dns Servers
Hello Global Friends, I have been using AnalogX's "FastCache" software as my Local Dns Server for all these years. For the last three years I did not see a new version of FastCache software. Recently I came to know of (Developers NT Canuck & ObiWan) "Tree Walk" Dns Server and started using it in the place of FastCache. Tree Walk works perfectly but some offline web pages could not load in IE6.

Help! I cannot access the DataGrid's ItemTemplate's LinkButton's Text Atrribute 's Value!!!!!!!!!!!
I write a datagrid's ItemDataBound method as follows:   private void dgTable_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)  {   if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)   {    if(!isRole("Manager"))    {     LinkButton tmp = (LinkButton)e.Item.FindControl("lbPassed");     if(tmp.Text == "Passed")     {      ((LinkBu...

Hyperlink's, ImageURL's, and OnError's
I created an ASP:Hyperlink and set the ImageURL attribute so the link will be the image.If the image is missing, I would like it to display a 'missing image' pic that I have.  I know you can use the OnError attribute of the <img> tag to run some javascript to change it.Unfortunately I can't find a way to access the Hyperlink's Image that is inside it, so I can add an Attribute so the resulting <img> tag will have an OnError attribute inside of it.Any help?If my Hyperlink is called 'foo'....would I do...  ((Image) foo.Controls[0]).Attributes.Add(&...

multiple SMTP's and different IP's, domain names to send email from this server using different SMTP's
Is anybody can help me with this 2 issues we have: 1. We need to have multiple SMTP's installed on our server - how do you do that 2. We need to rotate different IP's, domain names to send email from this server using different SMTP's          Thanks   Third party mail server.  Look at Smartermail or iMail, Exchange if you need that much. JeffPlease: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue. Is this only option? &n...

Guru's..?? Any do's and/or dont's for Zfd4 and Citrix..?
We've got a nw6/sp5 network with GW 6.5, bm3.7 and zfd 4.01 up'n'running.. Now we're adding a citrix server ( win2003) to the mix, will supply a couple off app's to users over the internal VPN in another city. Probably we'll skip the AD phase since we can not see any app and/or user with the need for AD. So,, any special considorations..? tip's'tricks..? known issues...? t.i.a... On Mon, 16 Aug 2004 15:57:10 GMT, Emerson wrote: > So,, any special considorations..? tip's'tricks..? known issues...? biggest one... zfd4.x d...

DataSet's DataTable's and TableAdapter's Oh My!
Here is my situation.  I am using VB as my programming language.I am creating a part of a website that will be the admin section.  I want the admin to be able to add/edit data in a set of tables that normal users can't.  There are 20 lookup tables that I use in the website that I want the admin to be able to manage (i.e. add, edit, delete, insert).  I don't want to create 20 separate web pages (one for each table).  I have one page that has links to all the tables.  Each link has a "table" querystring variable associated with it.  When the...

Who's show is SN? Steve's or Leo's?
I don't want to start anything (honestly)! Just want to ask a simple question. Does the Security Now podcast belong to Steve Gibson or Leo Laporte? Maybe I'm in a world all to myself, but when I listen to the excellent SN podcasts, I want to hear STEVE, not Leo. But especially in the past few shows, it seems Leo will repeatedly interrupt Steve in the middle of a sentence that I want to hear the rest of. I consider this very rude of Leo. Steve is making a point that I (we) want to hear, then looses his train of thought after Leo barges in and asks something. It...

EAServer invoking EJB's on clustered WLS instancesi
Maybe someone can help? ( I have also posted this on the J2EE group ) We are currently testing fail-over with the following set-up: EAServer 4.1.3 is invoking Weblogic 7.0 stateless session beans. EAServer is not clustered but uses a multiple IP DNS in its weblogic.url. We are using a PB client to connect and retrieve some information. Weblogic has been set up as a cluster with 2 servers participating. The EJB's are defined as clusterable in WLS. Situation at the moment is this: We start up both WLS servers as well as EAServer. We can now conn...

Web resources about - Clairifcation on EJB's Invoking Non-EJB's in App server - sybase.easerver.general

Community Journalism (@C4CJ) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Resources last updated: 12/30/2015 8:25:08 PM