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 ProblemI 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'sWe 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
http://wiki.debian.org/Debian_GNU/kFreeBSD
a Debian distro using the FreeBSD kernel !
ObiWan wrote:
> kFreeBSD
>
> http://wiki.debian.org/Debian_GNU/kFreeBSD
>
> a Debian distro using the FreeBSD kernel !
Why use a BSD kernel? I hope the reason is more than, just because they
can. http://wiki.debian.org/Debian_GNU/kFreeBSD_why
It's easy to understand why the would want to use Debian packages. :)
--
Jimmy Johnson
Registered Linux User #380263
>> kFreeBSD
>>
>> http://wiki.debian.org/Debian_GNU/kFreeBSD
>>
...
NtCanuck's `TreeWalk' and AnalogX's `FastCache' Dns ServersHello 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.
http://www.nseindia.com/marketinfo/charting/HistStockChart.jsp?plot1=TRD_QTY&plot2=PRICE&symbol=colgate&indexname=S%26P+CNX+NIFTY&stdate=01&stm...
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...